Save File Window navigation controls
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
1ab521ecc0
commit
21965b3c90
@ -100,6 +100,7 @@ InputGroup AiL::KEY_MENU;
|
|||||||
InputGroup AiL::KEY_SCROLLUP;
|
InputGroup AiL::KEY_SCROLLUP;
|
||||||
InputGroup AiL::KEY_SCROLLDOWN;
|
InputGroup AiL::KEY_SCROLLDOWN;
|
||||||
InputGroup AiL::KEY_BACK;
|
InputGroup AiL::KEY_BACK;
|
||||||
|
InputGroup AiL::KEY_START;
|
||||||
|
|
||||||
#ifndef __EMSCRIPTEN__
|
#ifndef __EMSCRIPTEN__
|
||||||
::discord::Core*Discord{};
|
::discord::Core*Discord{};
|
||||||
@ -2394,6 +2395,11 @@ void AiL::InitializeDefaultKeybinds(){
|
|||||||
KEY_SCROLLDOWN.AddKeybind({KEY,NP2});
|
KEY_SCROLLDOWN.AddKeybind({KEY,NP2});
|
||||||
KEY_SCROLLDOWN.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::R2)});
|
KEY_SCROLLDOWN.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::R2)});
|
||||||
KEY_SCROLLDOWN.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::R1)});
|
KEY_SCROLLDOWN.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::R1)});
|
||||||
|
|
||||||
|
KEY_START.AddKeybind({KEY,RETURN});
|
||||||
|
KEY_START.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::START)});
|
||||||
|
KEY_SELECT.AddKeybind({KEY,ESCAPE});
|
||||||
|
KEY_SELECT.AddKeybind({CONTROLLER,static_cast<int>(GPButtons::SELECT)});
|
||||||
}
|
}
|
||||||
|
|
||||||
void AiL::SetBossNameDisplay(std::string name,float time){
|
void AiL::SetBossNameDisplay(std::string name,float time){
|
||||||
|
|||||||
@ -83,6 +83,10 @@ public:
|
|||||||
static InputGroup KEY_UP;
|
static InputGroup KEY_UP;
|
||||||
static InputGroup KEY_DOWN;
|
static InputGroup KEY_DOWN;
|
||||||
static InputGroup KEY_MENU;
|
static InputGroup KEY_MENU;
|
||||||
|
|
||||||
|
static InputGroup KEY_START;
|
||||||
|
static InputGroup KEY_SELECT;
|
||||||
|
|
||||||
static float SIZE_CHANGE_SPEED;
|
static float SIZE_CHANGE_SPEED;
|
||||||
double levelTime;
|
double levelTime;
|
||||||
Camera2D camera;
|
Camera2D camera;
|
||||||
|
|||||||
@ -90,7 +90,8 @@ void Menu::InitializeMainMenuWindow(){
|
|||||||
|
|
||||||
mainMenuWindow->SetupKeyboardNavigation(
|
mainMenuWindow->SetupKeyboardNavigation(
|
||||||
{
|
{
|
||||||
{game->KEY_BACK,{"",[](MenuType type){}}},
|
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
|
||||||
|
{game->KEY_BACK,{"Back",[](MenuType type){}}},
|
||||||
}
|
}
|
||||||
,{
|
,{
|
||||||
{"New Game Button",{
|
{"New Game Button",{
|
||||||
|
|||||||
@ -30,7 +30,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|||||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
SUCH DAMAGE.
|
SUCH DAMAGE.
|
||||||
|
|
||||||
Portions of this software are copyright © 2023 The FreeType
|
Portions of this software are copyright <EFBFBD> 2023 The FreeType
|
||||||
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -52,4 +52,23 @@ void Menu::InitializeSaveFileWindow(){
|
|||||||
SaveFile::SaveGame();
|
SaveFile::SaveGame();
|
||||||
return true;
|
return true;
|
||||||
})END;
|
})END;
|
||||||
|
|
||||||
|
|
||||||
|
saveFileWindow->SetupKeyboardNavigation(
|
||||||
|
{
|
||||||
|
{game->KEY_START,{"Confirm Name",[](MenuType type){
|
||||||
|
Component<MenuComponent>(type,"Continue Button")->Click();
|
||||||
|
}}},
|
||||||
|
{game->KEY_SELECT,{"Return to Title Screen",[](MenuType type){
|
||||||
|
Component<MenuComponent>(type,"Back Button")->Click();
|
||||||
|
}}},
|
||||||
|
}
|
||||||
|
,{
|
||||||
|
{"Continue Button",{
|
||||||
|
.left="Back Button",
|
||||||
|
.right="Back Button",}},
|
||||||
|
{"Back Button",{
|
||||||
|
.left="Continue Button",
|
||||||
|
.right="Continue Button",}},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
0
Adventures in Lestoria/loc.sh
Normal file → Executable file
0
Adventures in Lestoria/loc.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user