mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-21 05:24:32 +03:00
feat(ui): add background support for character creation screen
This commit is contained in:
1 parent
e08b41a133
commit
77cb9ed966
4 files changed
+92
-7
No files matched your search
@@ -5,6 +5,7 @@
|
||||
#include "clientobject/Player_C.hpp"
|
||||
#include "db/Db.hpp"
|
||||
|
||||
int32_t CCharacterCreation::m_selectedClassID;
|
||||
int32_t CCharacterCreation::m_existingCharacterIndex;
|
||||
int32_t CCharacterCreation::m_raceIndex;
|
||||
CSimpleModel* CCharacterCreation::m_charCustomizeFrame;
|
||||
@@ -95,6 +96,12 @@ void CCharacterCreation::ResetCharCustomizeInfo() {
|
||||
// TODO
|
||||
|
||||
CCharacterCreation::m_raceIndex = -1;
|
||||
for (uint32_t i = 0; i < CCharacterCreation::m_races.Count(); ++i) {
|
||||
if (CCharacterCreation::m_races[i] == CCharacterCreation::m_character->m_data.m_info.raceID) {
|
||||
CCharacterCreation::m_raceIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ class ChrClassesRec;
|
||||
class CCharacterCreation {
|
||||
public:
|
||||
// Static variables
|
||||
static int32_t m_selectedClassID;
|
||||
static int32_t m_existingCharacterIndex;
|
||||
static int32_t m_raceIndex;
|
||||
static CSimpleModel* m_charCustomizeFrame;
|
||||
|
||||
Reference in new issue
Block a user