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

26 lines
512 B
C++
Raw Normal View History

2017-02-04 12:42:12 -05:00
#pragma once
namespace Components
{
class Changelog : public Component
{
public:
Changelog();
2017-02-04 15:52:49 -05:00
~Changelog();
2017-02-04 12:42:12 -05:00
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() override { return "Changelog"; };
#endif
2017-02-04 15:52:49 -05:00
static void LoadChangelog();
2017-02-04 12:42:12 -05:00
private:
2017-02-04 15:52:49 -05:00
static std::mutex Mutex;
static std::vector<std::string> Lines;
2017-02-04 12:42:12 -05:00
static unsigned int GetChangelogCount();
static const char* GetChangelogText(unsigned int item, int column);
static void SelectChangelog(unsigned int index);
};
}