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

27 lines
595 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
2017-01-19 16:23:59 -05:00
namespace Components
{
class ModList : public Component
{
public:
ModList();
~ModList();
2018-12-17 08:29:18 -05:00
static void RunMod(const std::string& mod);
2017-01-19 16:23:59 -05:00
private:
static std::vector<std::string> Mods;
static unsigned int CurrentMod;
2018-12-17 08:29:18 -05:00
static bool HasMod(const std::string& modName);
2017-01-19 16:23:59 -05:00
static unsigned int GetItemCount();
static const char* GetItemText(unsigned int index, int column);
static void Select(unsigned int index);
static void UIScript_LoadMods(UIScript::Token);
static void UIScript_RunMod(UIScript::Token);
static void UIScript_ClearMods(UIScript::Token);
};
}