83 void DrawAttrStr(
const char* desc, std::string
const& str)
const;
Central state/object manager and communications hub.
A database of user-installed content alias 'mods' (vehicles, terrains...)
Global forward declarations.
Core data structures for simulation; Everything affected by by either physics, network or user intera...
std::map< LoaderType, int > m_last_selected_category
Last category-combobox position for each loader type.
std::string m_filter_guid
Used for skins.
int m_selected_sectionconfig
const float PREVIEW_SIZE_RATIO
std::map< LoaderType, int > m_last_selected_entry
Stores the last manually selected entry index for each loader type.
static bool CatComboItemGetter(void *data, int idx, const char **out_text)
CacheEntryPtr m_advertised_entry
Always shown on top, even if not existing in modcache (i.e. dummy default skin)
const float LEFT_PANE_WIDTH
void UpdateDisplayLists()
DisplayEntryVec m_display_entries
CacheSearchMethod m_search_method
int m_selected_cid
Category ID.
bool m_searchbox_was_active
DisplayCategoryVec m_display_categories
void DrawAttrInt(const char *desc, int val) const
void DrawAttrStr(const char *desc, std::string const &str) const
void DrawAttrFloat(const char *desc, float val) const
std::map< LoaderType, int > m_last_selected_cid
Last selected category-ID for each loader type.
Str< 500 > m_search_input
static bool ScComboItemGetter(void *data, int idx, const char **out_text)
void UpdateSearchParams()
std::vector< DisplayEntry > DisplayEntryVec
void DrawAttrSpecial(bool val, const char *label) const
void Show(LoaderType type, std::string const &filter_guid="", CacheEntryPtr advertised_entry=nullptr)
int m_selected_category
Combobox position (uses display list)
std::string m_search_string
std::vector< DisplayCategory > DisplayCategoryVec
Wrapper for classic c-string (local buffer) Refresher: strlen() excludes '\0' terminator; strncat() A...
LoaderType
< Search mode for ModCache::Query() & Operation mode for GUI::MainSelector
@ NONE
Ignore the search string and find all.
Str< 50 > sde_addtime_str
Str< 50 > sde_filetime_str
Str< 50 > sde_driveable_str