Brought the UIStack over from the previous game to use here.

This commit is contained in:
Zed A. Shaw 2026-04-08 23:01:05 -04:00
parent 25e3935170
commit 6aa1a877c9
7 changed files with 241 additions and 0 deletions

View file

@ -52,6 +52,7 @@ namespace guecs {
};
struct Rectangle {
// BUG: confirm that padding is being used correctly here
int padding = THEME.PADDING;
sf::Color color = THEME.FILL_COLOR;
sf::Color border_color = THEME.BORDER_COLOR;
@ -62,6 +63,9 @@ namespace guecs {
void render(sf::RenderTarget& window, sf::Shader *shader_ptr);
};
// BUG: meter needs a backing rectangle of one color for the full bar, then
// another rectangle for the current setting.
// BUG: the meter will be past the end, probably a floating point error
struct Meter {
float percent = 1.0f;
sf::Color color = THEME.BG_COLOR_DARK;
@ -95,6 +99,7 @@ namespace guecs {
void stop(bool hover);
};
// BUG: it should be _way_ easier to set the background and change it
struct Background {
float x = 0.0f;
float y = 0.0f;