From a5acd4c9a3b24c9d5af3a8f504e5af053fa7fa09 Mon Sep 17 00:00:00 2001 From: boris Date: Thu, 20 Dec 2018 21:38:04 +1300 Subject: yo is this loss --- .../csgo-client/UserExperience/UserInterface.hpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'csgo-loader/csgo-client/UserExperience/UserInterface.hpp') diff --git a/csgo-loader/csgo-client/UserExperience/UserInterface.hpp b/csgo-loader/csgo-client/UserExperience/UserInterface.hpp index 332b042..bea8b45 100644 --- a/csgo-loader/csgo-client/UserExperience/UserInterface.hpp +++ b/csgo-loader/csgo-client/UserExperience/UserInterface.hpp @@ -5,24 +5,28 @@ #include #include -namespace UserExperience { +namespace UserExperience +{ // Execution states define a moment in the execution of the loader. // These may be changed externally by other threads. - enum ExecutionState : uint16_t { + enum ExecutionState : uint16_t + { EXECUTION_WAITING, // Displays the message 'please wait...'. EXECUTION_ERROR, // Displays an error. EXECUTION_LOG_IN, // Displays the log-in dialog. EXECUTION_CHOOSE // Displays the game selection dialog. }; - enum ErrorReason : uint16_t { + enum ErrorReason : uint16_t + { ERROR_GENERIC_ERROR, ERROR_INVALID_HWID, ERROR_SHADOW_BAN }; // Structure that holds global data that will be used by the UI. - struct UserExperienceData { + struct UserExperienceData + { // Holds the current execution state of the loader. ExecutionState m_ExecutionState = EXECUTION_WAITING; @@ -41,7 +45,8 @@ namespace UserExperience { }; // User experience handler. - class UserInterface { + class UserInterface + { public: UserExperienceData m_Data; @@ -51,7 +56,7 @@ namespace UserExperience { // Creates an UI thread, call only once. void RunUiFrame(); }; - + using UserInterfacePtr = std::unique_ptr; } -- cgit v1.2.3