mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-22 01:44:36 -05:00
27 lines
530 B
C++
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 |