ServiceMenu: arreglos de colorets
This commit is contained in:
@@ -14,7 +14,7 @@ class MenuOption;
|
||||
class MenuRenderer
|
||||
{
|
||||
public:
|
||||
MenuRenderer(std::shared_ptr<Text> element_text, std::shared_ptr<Text> title_text);
|
||||
MenuRenderer(const ServiceMenu *menu_state, std::shared_ptr<Text> element_text, std::shared_ptr<Text> title_text);
|
||||
|
||||
// Métodos principales de la vista
|
||||
void render(const ServiceMenu *menu_state);
|
||||
@@ -33,8 +33,11 @@ private:
|
||||
std::shared_ptr<Text> title_text_;
|
||||
|
||||
// --- Variables de estado de la vista (layout y animación) ---
|
||||
ServiceMenu::Aspect aspect_ = ServiceMenu::Aspect::ALPHA;
|
||||
SDL_FRect rect_{};
|
||||
Color bg_color_ = SERV_MENU_BG_COLOR;
|
||||
SDL_FRect border_rect_{};
|
||||
Color bg_color_ = SERV_MENU_BG_COLOR_ALPHA;
|
||||
Uint8 bg_alpha_ = 240;
|
||||
Color title_color_ = SERV_MENU_TITLE_COLOR;
|
||||
Color text_color_ = SERV_MENU_TEXT_COLOR;
|
||||
Color selected_color_ = SERV_MENU_SELECTED_COLOR;
|
||||
@@ -61,6 +64,7 @@ private:
|
||||
int group_menu_widths_[5]{};
|
||||
|
||||
// --- Métodos privados de la vista ---
|
||||
void init(const ServiceMenu *menu_state);
|
||||
void setAnchors(const ServiceMenu *menu_state);
|
||||
SDL_FRect calculateNewRect(const ServiceMenu *menu_state);
|
||||
void resize(const ServiceMenu *menu_state);
|
||||
@@ -70,4 +74,5 @@ private:
|
||||
int getMenuWidthForGroup(ServiceMenu::SettingsGroup group) const;
|
||||
Color getAnimatedSelectedColor();
|
||||
void updateColorCounter();
|
||||
SDL_FRect setRect(SDL_FRect rect);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user