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

26 lines
806 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();
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);
2022-08-24 10:38:14 -04:00
static void UIScript_LoadMods([[maybe_unused]] const UIScript::Token& token, [[maybe_unused]] const Game::uiInfo_s* info);
static void UIScript_RunMod([[maybe_unused]] const UIScript::Token& token, [[maybe_unused]] const Game::uiInfo_s* info);
static void UIScript_ClearMods([[maybe_unused]] const UIScript::Token& token, [[maybe_unused]] const Game::uiInfo_s* info);
2017-01-19 16:23:59 -05:00
};
}