Lamthai/game/interface/ui_elements.h

21 lines
516 B
C
Raw Normal View History

2025-07-12 17:28:49 +02:00
struct Text {
Font font;
const char *text;
Vector2 position;
float fontSize, spacing;
Color tint;
};
struct Button {
Rectangle rectangle;
Color color;
Text text;
};
Button create_button(int type_arg, int size_arg, const std::vector<float>& position_arg, const char *text_arg, const std::vector<int>& screen_arg);
void draw_buttons(const std::vector<Button>& buttons_arg);
std::vector<float> button_size(int size_arg, const std::vector<int>& screen_arg);
float text_size(int size_arg);