iw4x-client/src/Components/Modules/ModList.hpp
/dev/root 124e86387b [General] Fixed line endings
- converted all line endings in cpp/hpp files to dos
2016-11-25 13:00:48 +01:00

28 lines
651 B
C++

namespace Components
{
class ModList : public Component
{
public:
ModList();
~ModList();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() { return "ModList"; };
#endif
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();
};
}