mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-08-22 16:55:10 -05:00
Working on main menu
This commit is contained in:
26
include/button_handler.h
Normal file
26
include/button_handler.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef BUTTON_HANDLER_H
|
||||
#define BUTTON_HANDLER_H
|
||||
|
||||
#include <tonc.h>
|
||||
|
||||
class Button
|
||||
{
|
||||
public:
|
||||
Button();
|
||||
Button(OBJ_ATTR *L, OBJ_ATTR *R, u32 tidL, u32 tidR);
|
||||
void set_location(int x, int y);
|
||||
void set_highlight(bool highlight);
|
||||
void hide();
|
||||
void show();
|
||||
|
||||
private:
|
||||
int x;
|
||||
int y;
|
||||
bool highlighted;
|
||||
OBJ_ATTR *button_L;
|
||||
OBJ_ATTR *button_R;
|
||||
u32 tidL;
|
||||
u32 tidR;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user