mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Languages selection menu (#232)
* Adding Languages section * Added LanguagesSection * Register the Cvar * Added switcher method * Added Language selection menu + function * function ref. * Conflict fixes to be sure nothing else is modded * space removed * no need to have conditions since ID are the same
This commit is contained in:
parent
e646f80f41
commit
18d2bac409
6 changed files with 41 additions and 3 deletions
|
@ -422,7 +422,9 @@ void GameState_Update(GameState* gameState) {
|
|||
int32_t prevTime = CVar_GetS32("gPrevTime", gSaveContext.dayTime);
|
||||
gSaveContext.dayTime = prevTime;
|
||||
}
|
||||
|
||||
|
||||
//since our CVar is same value and properly default to 0 there is not problems doing this in single line.
|
||||
gSaveContext.language = CVar_GetS32("gLanguages", 0);
|
||||
|
||||
gameState->frames++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue