diff --git a/.gitignore b/.gitignore index 4cb0ca10..f9c749a5 100644 --- a/.gitignore +++ b/.gitignore @@ -381,4 +381,5 @@ Crawler/out /Adventures in Lestoria/.vscode /Adventures in Lestoria/.vscode/settings.json /Adventures in Lestoria/x64 -/Adventures in Lestoria/saves \ No newline at end of file +/Adventures in Lestoria/saves +/Adventures in Lestoria/assets/tmpsaves diff --git a/Adventures in Lestoria/BlacksmithCraftingWindow.cpp b/Adventures in Lestoria/BlacksmithCraftingWindow.cpp index ce3a8367..5bb0c090 100644 --- a/Adventures in Lestoria/BlacksmithCraftingWindow.cpp +++ b/Adventures in Lestoria/BlacksmithCraftingWindow.cpp @@ -172,7 +172,7 @@ void Menu::InitializeBlacksmithCraftingWindow(){ auto moneyIcon=blacksmithWindow->ADD("Money Icon",MenuIconButton)({moneyIconPos,{24,24}},GFX["money.png"].Decal(),DO_NOTHING,IconButtonAttr::NOT_SELECTABLE|IconButtonAttr::NO_OUTLINE|IconButtonAttr::NO_BACKGROUND)END; std::string moneyText=std::to_string(game->GetPlayer()->GetMoney()); vf2d moneyTextSize=game->GetTextSizeProp(moneyText)*2; - auto moneyDisplay=blacksmithWindow->ADD("Money Label",PlayerMoneyLabel)({moneyIconPos-vf2d{2+moneyTextSize.x,-2},moneyTextSize},2,ComponentAttr::SHADOW|ComponentAttr::LEFT_ALIGN)END; + auto moneyDisplay=blacksmithWindow->ADD("Money Label",PlayerMoneyLabel)({moneyIconPos-vf2d{2+moneyTextSize.x,-2},moneyTextSize},2,ComponentAttr::SHADOW|ComponentAttr::LEFT_ALIGN|ComponentAttr::FIT_TO_LABEL)END; moneyDisplay->SetRightAlignment(true); Player::AddMoneyListener(moneyDisplay); #pragma endregion diff --git a/Adventures in Lestoria/ConsumableCraftingWindow.cpp b/Adventures in Lestoria/ConsumableCraftingWindow.cpp index e7547404..5f4052fe 100644 --- a/Adventures in Lestoria/ConsumableCraftingWindow.cpp +++ b/Adventures in Lestoria/ConsumableCraftingWindow.cpp @@ -123,7 +123,7 @@ void Menu::InitializeConsumableCraftingWindow(){ auto moneyIcon=consumableCraftingWindow->ADD("Money Icon",MenuIconButton)({moneyIconPos,{24,24}},GFX["money.png"].Decal(),DO_NOTHING,IconButtonAttr::NOT_SELECTABLE|IconButtonAttr::NO_OUTLINE|IconButtonAttr::NO_BACKGROUND)END; std::string moneyText=std::to_string(game->GetPlayer()->GetMoney()); vf2d moneyTextSize=game->GetTextSizeProp(moneyText)*2; - auto moneyDisplay=consumableCraftingWindow->ADD("Money Label",PlayerMoneyLabel)({moneyIconPos-vf2d{2+moneyTextSize.x,-2},moneyTextSize},2,ComponentAttr::SHADOW|ComponentAttr::LEFT_ALIGN)END; + auto moneyDisplay=consumableCraftingWindow->ADD("Money Label",PlayerMoneyLabel)({moneyIconPos-vf2d{2+moneyTextSize.x,-2},moneyTextSize},2,ComponentAttr::SHADOW|ComponentAttr::LEFT_ALIGN|ComponentAttr::FIT_TO_LABEL)END; moneyDisplay->SetRightAlignment(true); Player::AddMoneyListener(moneyDisplay); #pragma endregion diff --git a/Adventures in Lestoria/InventoryWindow.cpp b/Adventures in Lestoria/InventoryWindow.cpp index 24be24ef..0e2fd053 100644 --- a/Adventures in Lestoria/InventoryWindow.cpp +++ b/Adventures in Lestoria/InventoryWindow.cpp @@ -127,7 +127,7 @@ void Menu::InitializeInventoryWindow(){ auto moneyIcon=inventoryWindow->ADD("Money Icon",MenuIconButton)({moneyIconPos,{24,24}},GFX["money.png"].Decal(),DO_NOTHING,IconButtonAttr::NOT_SELECTABLE|IconButtonAttr::NO_OUTLINE|IconButtonAttr::NO_BACKGROUND)END; std::string moneyText=std::to_string(game->GetPlayer()->GetMoney()); vf2d moneyTextSize=game->GetTextSizeProp(moneyText)*2; - auto moneyDisplay=inventoryWindow->ADD("Money Label",PlayerMoneyLabel)({moneyIconPos-vf2d{2+moneyTextSize.x,-2},moneyTextSize},2,SHADOW|LEFT_ALIGN)END; + auto moneyDisplay=inventoryWindow->ADD("Money Label",PlayerMoneyLabel)({moneyIconPos-vf2d{2+moneyTextSize.x,-2},moneyTextSize},2,SHADOW|LEFT_ALIGN|FIT_TO_LABEL)END; moneyDisplay->SetRightAlignment(true); Player::AddMoneyListener(moneyDisplay); #pragma endregion diff --git a/Adventures in Lestoria/Item.cpp b/Adventures in Lestoria/Item.cpp index 0ac9055b..21b197c0 100644 --- a/Adventures in Lestoria/Item.cpp +++ b/Adventures in Lestoria/Item.cpp @@ -124,7 +124,7 @@ void ItemInfo::InitializeItems(){ castTime=float(data[key][keyName].GetReal()); }else if(keyName=="Cooldown Time"){ - castTime=float(data[key][keyName].GetReal()); + cooldownTime=float(data[key][keyName].GetReal()); }else if(keyName=="Slot"){ for(auto&val:data[key][keyName].GetValues()){ diff --git a/Adventures in Lestoria/MerchantWindow.cpp b/Adventures in Lestoria/MerchantWindow.cpp index 415917fd..218fe2e2 100644 --- a/Adventures in Lestoria/MerchantWindow.cpp +++ b/Adventures in Lestoria/MerchantWindow.cpp @@ -209,7 +209,7 @@ void Menu::InitializeMerchantWindow(){ auto moneyIcon=merchantWindow->ADD("Money Icon",MenuIconButton)({moneyIconPos,{24,24}},GFX["money.png"].Decal(),DO_NOTHING,IconButtonAttr::NOT_SELECTABLE|IconButtonAttr::NO_OUTLINE|IconButtonAttr::NO_BACKGROUND)END; std::string moneyText=std::to_string(game->GetPlayer()->GetMoney()); vf2d moneyTextSize=game->GetTextSizeProp(moneyText)*2; - auto moneyDisplay=merchantWindow->ADD("Money Label",PlayerMoneyLabel)({moneyIconPos-vf2d{2+moneyTextSize.x,-2},moneyTextSize},2,ComponentAttr::SHADOW|ComponentAttr::LEFT_ALIGN)END; + auto moneyDisplay=merchantWindow->ADD("Money Label",PlayerMoneyLabel)({moneyIconPos-vf2d{2+moneyTextSize.x,-2},moneyTextSize},2,ComponentAttr::SHADOW|ComponentAttr::LEFT_ALIGN|ComponentAttr::FIT_TO_LABEL)END; moneyDisplay->SetRightAlignment(true); Player::AddMoneyListener(moneyDisplay); #pragma endregion diff --git a/Adventures in Lestoria/Player.h b/Adventures in Lestoria/Player.h index bcb476f5..f2535774 100644 --- a/Adventures in Lestoria/Player.h +++ b/Adventures in Lestoria/Player.h @@ -56,9 +56,9 @@ class MenuComponent; struct CastInfo{ std::string name="???"; - float castTimer; - float castTotalTime; - vf2d castPos; + float castTimer=0.f; + float castTotalTime=0.f; + vf2d castPos{}; }; class EntityStats{ diff --git a/Adventures in Lestoria/PlayerMoneyLabel.h b/Adventures in Lestoria/PlayerMoneyLabel.h index 26176821..39f2b574 100644 --- a/Adventures in Lestoria/PlayerMoneyLabel.h +++ b/Adventures in Lestoria/PlayerMoneyLabel.h @@ -51,7 +51,7 @@ public: inline virtual void OnPlayerMoneyUpdate(uint32_t newMoney)final{ SetLabel(std::to_string(newMoney)); std::string moneyText=std::to_string(newMoney); - vf2d moneyTextSize=game->GetTextSizeProp(moneyText)*scale; + vf2d moneyTextSize=game->GetTextSizeProp(moneyText)*scale; rect.pos.x=anchorPointX-moneyTextSize.x; rect.size=moneyTextSize; } diff --git a/Adventures in Lestoria/TODO.txt b/Adventures in Lestoria/TODO.txt index 7402165e..0ad98a37 100644 --- a/Adventures in Lestoria/TODO.txt +++ b/Adventures in Lestoria/TODO.txt @@ -20,6 +20,8 @@ Settings Menu remove that bind from the list. Up to two keys may be binded per action. -We have to save keybinds to the save file. -Smooth Movement +-Click on title screen should not process as input immediately. +-Investigate why frame rate matters for intro screen. January 31st ============ diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index 9a1ddcd3..d03e1962 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 0 #define VERSION_MINOR 2 #define VERSION_PATCH 1 -#define VERSION_BUILD 5389 +#define VERSION_BUILD 5395 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Adventures in Lestoria/assets/config/configuration.txt b/Adventures in Lestoria/assets/config/configuration.txt index 8da84c2f..b4d9b8ca 100644 --- a/Adventures in Lestoria/assets/config/configuration.txt +++ b/Adventures in Lestoria/assets/config/configuration.txt @@ -14,8 +14,8 @@ Interface 9PatchSize = 24,24 } -# Save File Server Name -save_server = http://projectdivar.com/AiL +# Save File Server Name +save_server = https://projectdivar.com:4505/AiL # Map Files Loading Config map_config = levels.txt diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index adf0f5ad..54ff5fcb 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ