iw4x-client/src/Components/Modules/ModList.hpp

28 lines
651 B
C++
Raw Normal View History

2016-07-22 06:52:12 -04:00
namespace Components
{
class ModList : public Component
{
public:
ModList();
~ModList();
2016-08-15 10:40:30 -04:00
2016-09-16 05:04:28 -04:00
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() { return "ModList"; };
2016-08-15 10:40:30 -04:00
#endif
2016-07-22 06:52:12 -04:00
static void RunMod(std::string mod);
private:
static std::vector<std::string> Mods;
static unsigned int CurrentMod;
static bool HasMod(std::string modName);
static unsigned int GetItemCount();
static const char* GetItemText(unsigned int index, int column);
static void Select(unsigned int index);
static void UIScript_LoadMods();
static void UIScript_RunMod();
static void UIScript_ClearMods();
};
}