Added wrapping menu macro functionality. Implemented controller compatibility for level complete window. Added right alignment for menu labels. Added ProgressBar component. Added XP-related functions for callbacks to other components in-game. Fix giant normalized vector issue with Wolf AI script. Release Build 7041.

This commit is contained in:
2024-02-10 18:56:22 -06:00
parent 52a01d04ad
commit 22b1557c05
23 changed files with 583 additions and 72 deletions
+3 -3
View File
@@ -253,10 +253,10 @@ void SaveFile::LoadFile(){
}
}
game->ChangePlayerClass(classutils::StringToClass(loadFile["Player"]["Class"].GetString()));
game->GetPlayer()->level=loadFile["Player"]["Level"].GetInt();
game->GetPlayer()->SetLevel(loadFile["Player"]["Level"].GetInt());
game->GetPlayer()->SetMoney(loadFile["Player"]["Money"].GetInt());
game->GetPlayer()->currentLevelXP=loadFile["Player"]["Current EXP"].GetInt();
game->GetPlayer()->totalXPEarned=loadFile["Player"]["Total EXP"].GetInt();
game->GetPlayer()->SetXP(loadFile["Player"]["Current EXP"].GetInt());
game->GetPlayer()->SetTotalXPEarned(loadFile["Player"]["Total EXP"].GetInt());
for(auto&[key,data]:loadFile["Player"]["Base Stats"].GetOrderedKeys()){
game->GetPlayer()->SetBaseStat(key,data.GetReal());
}