diff --git a/Adventures in Lestoria/CharacterInfoWindow.cpp b/Adventures in Lestoria/CharacterInfoWindow.cpp index 67f8e2d2..9299d1c1 100644 --- a/Adventures in Lestoria/CharacterInfoWindow.cpp +++ b/Adventures in Lestoria/CharacterInfoWindow.cpp @@ -55,7 +55,7 @@ void Menu::InitializeClassInfoWindow(){ auto label=classInfoWindow->ADD("Class Name",MenuLabel)(geom2d::rect{{0,0},{classInfoWindow->size.x-1,24}},data.className,2,ComponentAttr::SHADOW|ComponentAttr::OUTLINE|ComponentAttr::BACKGROUND)END; - classInfoWindow->ADD("Rotating Character Display",CharacterRotatingDisplay)(geom2d::rect{{15,48},{72,120}},GFX[data.classFullImgName].Decal())END; + classInfoWindow->ADD("Rotating Character Display",CharacterRotatingDisplay)(geom2d::rect{{-20,30},{144,180}},GFX[data.classFullImgName].Decal())END; vf2d healthDisplayLabelPos={classInfoWindow->size.x/3,label->GetPos().y+24}; vf2d labelSize={2*classInfoWindow->size.x/3-1,16}; @@ -72,4 +72,18 @@ void Menu::InitializeClassInfoWindow(){ classInfoWindow->ADD("Right Click Ability Display",CharacterAbilityPreviewComponent)(geom2d::rect{healthDisplayLabelPos+vf2d{0,32*3}+abilityIconOffsets,labelSize*vf2d{1,2}},data.rightClickAbility)END; classInfoWindow->ADD("Back Button",MenuComponent)(geom2d::rect{{classInfoWindow->center().x/2,healthDisplayLabelPos.y+32*4+abilityIconOffsets.y+12},{classInfoWindow->size.x/2,16}},"Back",[](MenuFuncData data){Menu::CloseMenu();return true;})END; + + classInfoWindow->SetupKeyboardNavigation( + [](MenuType type,Data&returnData){ //On Open + returnData="Back Button"; + + }, + { //Button Key + {game->KEY_BACK,{"Back",[](MenuType type){ + Component(type,"Back Button")->Click(); + }}}, + } + ,{ //Button Navigation Rules + + }); } \ No newline at end of file diff --git a/Adventures in Lestoria/CharacterMenuWindow.cpp b/Adventures in Lestoria/CharacterMenuWindow.cpp index d75f81bc..0b12bd85 100644 --- a/Adventures in Lestoria/CharacterMenuWindow.cpp +++ b/Adventures in Lestoria/CharacterMenuWindow.cpp @@ -60,7 +60,7 @@ void Menu::InitializeCharacterMenuWindow(){ characterMenuWindow->ADD("Character Label",MenuLabel)(geom2d::rect{{0,-4},{float(windowSize.x)-1,24}},"Character",2,ComponentAttr::SHADOW|ComponentAttr::OUTLINE|ComponentAttr::BACKGROUND)END; characterMenuWindow->ADD("Equip Slot Outline",MenuComponent)(geom2d::rect{{0,28},{120,windowSize.y-37}},"",DO_NOTHING,ButtonAttr::UNSELECTABLE)END; - characterMenuWindow->ADD("Character Rotating Display",CharacterRotatingDisplay)(geom2d::rect{{125,18},{130,windowSize.y-28}},GFX[classutils::GetClassInfo(game->GetPlayer()->GetClassName()).classFullImgName].Decal())END; + characterMenuWindow->ADD("Character Rotating Display",CharacterRotatingDisplay)(geom2d::rect{{118,18},{130,windowSize.y-28}},GFX[classutils::GetClassInfo(game->GetPlayer()->GetClassName()).classFullImgName].Decal())END; const static std::arraydisplayAttrs{ "Health", diff --git a/Adventures in Lestoria/MenuType.h b/Adventures in Lestoria/MenuType.h index 2bd338ec..c90e30b3 100644 --- a/Adventures in Lestoria/MenuType.h +++ b/Adventures in Lestoria/MenuType.h @@ -41,9 +41,9 @@ enum MenuType{ /////////////////////////////////////////////////////////// /*DO NOT REMOVE!!*/ENUM_START,/////////////////////////////// /////////////////////////////////////////////////////////// - // 15% Controller Compatibility. (100 total items, 4 items per menu * 25 menus) + // 19% Controller Compatibility. (100 total items, 4 items per menu * 25 menus) INVENTORY_CONSUMABLES, //100% Controller Compatibility - CLASS_INFO, //0% Controller Compatibility + CLASS_INFO, //100% Controller Compatibility CLASS_SELECTION, //0% Controller Compatibility MAIN_MENU, //100% Controller Compatibility OVERWORLD_LEVEL_SELECT, //75% Controller Compatibility - Scrolling for keyboard? diff --git a/Adventures in Lestoria/TODO.txt b/Adventures in Lestoria/TODO.txt index a00a1daa..079b559d 100644 --- a/Adventures in Lestoria/TODO.txt +++ b/Adventures in Lestoria/TODO.txt @@ -2,9 +2,6 @@ January 1st =========== - XP Bar -- Mouse click keybind changes should be possible and mouse buttons should show up in the list along with keyboard mappings. - - If a mouse click is reassigned, it is removed from any other inputs with that mouse click. - - Implement escape menu during gameplay. - If you leave a stage, the stage complete window still shows up, showing only the loot you obtained that session. diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index 276acfdd..2aa0a864 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 3 #define VERSION_PATCH 0 -#define VERSION_BUILD 6956 +#define VERSION_BUILD 6961 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Adventures in Lestoria/assets/knight_full_render1.png b/Adventures in Lestoria/assets/knight_full_render1.png index eb6c4dba..31f32648 100644 Binary files a/Adventures in Lestoria/assets/knight_full_render1.png and b/Adventures in Lestoria/assets/knight_full_render1.png differ diff --git a/Adventures in Lestoria/assets/wizard_full_render.png b/Adventures in Lestoria/assets/wizard_full_render.png index b90038c5..e7aaebbd 100644 Binary files a/Adventures in Lestoria/assets/wizard_full_render.png and b/Adventures in Lestoria/assets/wizard_full_render.png differ diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index afe10dff..a6abe692 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ