fixed progress bar
This commit is contained in:
18
src/ui/UIConstants.h
Normal file
18
src/ui/UIConstants.h
Normal file
@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
static constexpr int MENU_BTN_COUNT = 5;
|
||||
static constexpr float MENU_SMALL_THRESHOLD = 700.0f;
|
||||
static constexpr float MENU_BTN_WIDTH_LARGE = 300.0f;
|
||||
static constexpr float MENU_BTN_WIDTH_SMALL_FACTOR = 0.4f; // multiplied by LOGICAL_W
|
||||
static constexpr float MENU_BTN_HEIGHT_LARGE = 70.0f;
|
||||
static constexpr float MENU_BTN_HEIGHT_SMALL = 60.0f;
|
||||
static constexpr float MENU_BTN_Y_OFFSET = 40.0f; // matches MenuState offset
|
||||
static constexpr float MENU_BTN_SPACING_FACTOR_SMALL = 1.15f;
|
||||
static constexpr float MENU_BTN_SPACING_FACTOR_LARGE = 1.05f;
|
||||
static constexpr float MENU_BTN_CENTER = (MENU_BTN_COUNT - 1) / 2.0f;
|
||||
// Settings button metrics
|
||||
static constexpr float SETTINGS_BTN_OFFSET_X = 60.0f;
|
||||
static constexpr float SETTINGS_BTN_X = 1200 - SETTINGS_BTN_OFFSET_X; // LOGICAL_W is 1200
|
||||
static constexpr float SETTINGS_BTN_Y = 10.0f;
|
||||
static constexpr float SETTINGS_BTN_W = 50.0f;
|
||||
static constexpr float SETTINGS_BTN_H = 30.0f;
|
||||
Reference in New Issue
Block a user