Poke_Transporter_GB/include/button_handler.h
The Gears of Progress 290fdf22a4 Updating DreamDex
2024-06-28 16:24:01 -04:00

27 lines
530 B
C++

#ifndef BUTTON_HANDLER_H
#define BUTTON_HANDLER_H
#include <tonc.h>
class Button
{
public:
Button();
Button(OBJ_ATTR *L, OBJ_ATTR *R, int nLeft_button_width); // wide buttons
Button(OBJ_ATTR *B); // short button
bool isWide;
void set_location(int x, int y);
void set_highlight(bool highlight);
void hide();
void show();
int x;
int y;
private:
int left_button_width;
bool highlighted;
OBJ_ATTR *button_L;
OBJ_ATTR *button_R;
};
#endif