Add sequences for simple common menu properties

This commit is contained in:
Jan
2021-11-01 13:30:12 +01:00
parent 2aa0eb2a8c
commit be4e489118
3 changed files with 171 additions and 7 deletions

View File

@ -4,6 +4,7 @@
#include <vector>
#include "CommonItemDef.h"
#include "CommonMenuTypes.h"
namespace menu
{
@ -11,9 +12,35 @@ namespace menu
{
public:
std::string m_name;
CommonRect m_rect;
int m_style;
int m_border;
double m_border_size;
CommonColor m_back_color;
CommonColor m_fore_color;
CommonColor m_border_color;
CommonColor m_focus_color;
std::string m_background;
int m_owner_draw;
int m_owner_draw_flags;
std::string m_sound_loop;
double m_fade_clamp;
int m_fade_cycle;
double m_fade_amount;
double m_fade_in_amount;
double m_blur_radius;
std::string m_allowed_binding;
bool m_full_screen;
bool m_screen_space;
bool m_decoration;
bool m_out_of_bounds_click;
bool m_popup;
bool m_legacy_split_screen_scale;
bool m_hidden_during_scope;
bool m_hidden_during_flashbang;
bool m_hidden_during_ui;
bool m_text_only_focus;
std::vector<std::unique_ptr<CommonItemDef>> m_items;
};

View File

@ -13,4 +13,14 @@ namespace menu
};
double array[4];
};
struct CommonRect
{
double x;
double y;
double w;
double h;
int horizontalAlign;
int verticalAlign;
};
}