Working on main menu

This commit is contained in:
Starport75
2023-08-10 17:16:07 -05:00
parent 647d3565f4
commit 0db001a730
25 changed files with 345 additions and 32 deletions

26
include/button_handler.h Normal file
View 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