Added UI class and UI rendering class

This commit is contained in:
2025-12-11 16:46:54 +08:00
parent 7b098e0542
commit 6637d0f850
15 changed files with 459 additions and 19 deletions

View File

@@ -0,0 +1,33 @@
#include "Button.h"
Button::Button()
{
}
void Button::setText(const std::string& text, TextStyle style) {
m_buttonData.text = text;
m_buttonData.textstytle = style;
}
void Button::setBackgroundColor(SDL_Color normal) {
m_buttonData.backgroundColor = normal;
}
void Button::setBorder(int thickness, SDL_Color color) {
m_buttonData.borderThickness = thickness;
m_buttonData.borderColor = color;
}
void Button::update(float deltaTime) {
}