Setup Palm trees to be foreground objects. Prepare all Artificer window dialogs. Release Build 10424.
This commit is contained in:
parent
f7984af2bc
commit
d7b9d2670e
@ -726,6 +726,30 @@
|
|||||||
<ClCompile Include="Ability.cpp" />
|
<ClCompile Include="Ability.cpp" />
|
||||||
<ClCompile Include="Animation.cpp" />
|
<ClCompile Include="Animation.cpp" />
|
||||||
<ClCompile Include="Arrow.cpp" />
|
<ClCompile Include="Arrow.cpp" />
|
||||||
|
<ClCompile Include="ArtificerDisassembleConfirmWindow.cpp">
|
||||||
|
<SubType>
|
||||||
|
</SubType>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerDisassembleWindow.cpp">
|
||||||
|
<SubType>
|
||||||
|
</SubType>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerEnchantConfirmWindow.cpp">
|
||||||
|
<SubType>
|
||||||
|
</SubType>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerEnchantWindow.cpp">
|
||||||
|
<SubType>
|
||||||
|
</SubType>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerRefineConfirmWindow.cpp">
|
||||||
|
<SubType>
|
||||||
|
</SubType>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerRefineWindow.cpp">
|
||||||
|
<SubType>
|
||||||
|
</SubType>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="ArtificerWindow.cpp" />
|
<ClCompile Include="ArtificerWindow.cpp" />
|
||||||
<ClCompile Include="AttributableStat.cpp">
|
<ClCompile Include="AttributableStat.cpp">
|
||||||
<SubType>
|
<SubType>
|
||||||
|
@ -1163,6 +1163,24 @@
|
|||||||
<ClCompile Include="ArtificerWindow.cpp">
|
<ClCompile Include="ArtificerWindow.cpp">
|
||||||
<Filter>Source Files\Interface</Filter>
|
<Filter>Source Files\Interface</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerRefineWindow.cpp">
|
||||||
|
<Filter>Source Files\Interface</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerRefineConfirmWindow.cpp">
|
||||||
|
<Filter>Source Files\Interface</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerDisassembleWindow.cpp">
|
||||||
|
<Filter>Source Files\Interface</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerDisassembleConfirmWindow.cpp">
|
||||||
|
<Filter>Source Files\Interface</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerEnchantWindow.cpp">
|
||||||
|
<Filter>Source Files\Interface</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="ArtificerEnchantConfirmWindow.cpp">
|
||||||
|
<Filter>Source Files\Interface</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="cpp.hint" />
|
<None Include="cpp.hint" />
|
||||||
|
65
Adventures in Lestoria/ArtificerDisassembleConfirmWindow.cpp
Normal file
65
Adventures in Lestoria/ArtificerDisassembleConfirmWindow.cpp
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
#pragma region License
|
||||||
|
/*
|
||||||
|
License (OLC-3)
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Copyright 2024 Joshua Sigona <sigonasr2@gmail.com>
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions or derivations of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions or derivative works in binary form must reproduce the above
|
||||||
|
copyright notice. This list of conditions and the following disclaimer must be
|
||||||
|
reproduced in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software without specific
|
||||||
|
prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||||
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||||
|
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
Portions of this software are copyright © 2024 The FreeType
|
||||||
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
||||||
|
All rights reserved.
|
||||||
|
*/
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
|
#include "Menu.h"
|
||||||
|
#include "AdventuresInLestoria.h"
|
||||||
|
|
||||||
|
INCLUDE_game
|
||||||
|
|
||||||
|
void Menu::InitializeArtificerDisassembleConfirmWindow(){
|
||||||
|
Menu*artificerDisassembleConfirmWindow=CreateMenu(ARTIFICER_DISASSEMBLE_CONFIRM,CENTERED,vi2d{144,144});
|
||||||
|
|
||||||
|
artificerDisassembleConfirmWindow->SetupKeyboardNavigation(
|
||||||
|
[](MenuType type,Data&returnData){ //On Open
|
||||||
|
returnData="";
|
||||||
|
},
|
||||||
|
{ //Button Key
|
||||||
|
{game->KEY_SCROLL,{"Navigate",[](MenuType type){}}},
|
||||||
|
{game->KEY_BACK,{"Stay",[](MenuType type){
|
||||||
|
Menu::CloseMenu();
|
||||||
|
}}},
|
||||||
|
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
|
||||||
|
}
|
||||||
|
,{ //Button Navigation Rules
|
||||||
|
{"Sample Button",{
|
||||||
|
.up="",
|
||||||
|
.down="",
|
||||||
|
.left="",
|
||||||
|
.right="",}},
|
||||||
|
});
|
||||||
|
}
|
65
Adventures in Lestoria/ArtificerDisassembleWindow.cpp
Normal file
65
Adventures in Lestoria/ArtificerDisassembleWindow.cpp
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
#pragma region License
|
||||||
|
/*
|
||||||
|
License (OLC-3)
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Copyright 2024 Joshua Sigona <sigonasr2@gmail.com>
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions or derivations of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions or derivative works in binary form must reproduce the above
|
||||||
|
copyright notice. This list of conditions and the following disclaimer must be
|
||||||
|
reproduced in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software without specific
|
||||||
|
prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||||
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||||
|
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
Portions of this software are copyright © 2024 The FreeType
|
||||||
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
||||||
|
All rights reserved.
|
||||||
|
*/
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
|
#include "Menu.h"
|
||||||
|
#include "AdventuresInLestoria.h"
|
||||||
|
|
||||||
|
INCLUDE_game
|
||||||
|
|
||||||
|
void Menu::InitializeArtificerDisassembleWindow(){
|
||||||
|
Menu*artificerDisassembleWindow=CreateMenu(ARTIFICER_DISASSEMBLE,CENTERED,vi2d{144,144});
|
||||||
|
|
||||||
|
artificerDisassembleWindow->SetupKeyboardNavigation(
|
||||||
|
[](MenuType type,Data&returnData){ //On Open
|
||||||
|
returnData="";
|
||||||
|
},
|
||||||
|
{ //Button Key
|
||||||
|
{game->KEY_SCROLL,{"Navigate",[](MenuType type){}}},
|
||||||
|
{game->KEY_BACK,{"Stay",[](MenuType type){
|
||||||
|
Menu::CloseMenu();
|
||||||
|
}}},
|
||||||
|
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
|
||||||
|
}
|
||||||
|
,{ //Button Navigation Rules
|
||||||
|
{"Sample Button",{
|
||||||
|
.up="",
|
||||||
|
.down="",
|
||||||
|
.left="",
|
||||||
|
.right="",}},
|
||||||
|
});
|
||||||
|
}
|
65
Adventures in Lestoria/ArtificerEnchantConfirmWindow.cpp
Normal file
65
Adventures in Lestoria/ArtificerEnchantConfirmWindow.cpp
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
#pragma region License
|
||||||
|
/*
|
||||||
|
License (OLC-3)
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Copyright 2024 Joshua Sigona <sigonasr2@gmail.com>
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions or derivations of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions or derivative works in binary form must reproduce the above
|
||||||
|
copyright notice. This list of conditions and the following disclaimer must be
|
||||||
|
reproduced in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software without specific
|
||||||
|
prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||||
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||||
|
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
Portions of this software are copyright © 2024 The FreeType
|
||||||
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
||||||
|
All rights reserved.
|
||||||
|
*/
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
|
#include "Menu.h"
|
||||||
|
#include "AdventuresInLestoria.h"
|
||||||
|
|
||||||
|
INCLUDE_game
|
||||||
|
|
||||||
|
void Menu::InitializeArtificerEnchantConfirmWindow(){
|
||||||
|
Menu*artificerEnchantConfirmWindow=CreateMenu(ARTIFICER_ENCHANT_CONFIRM,CENTERED,vi2d{144,144});
|
||||||
|
|
||||||
|
artificerEnchantConfirmWindow->SetupKeyboardNavigation(
|
||||||
|
[](MenuType type,Data&returnData){ //On Open
|
||||||
|
returnData="";
|
||||||
|
},
|
||||||
|
{ //Button Key
|
||||||
|
{game->KEY_SCROLL,{"Navigate",[](MenuType type){}}},
|
||||||
|
{game->KEY_BACK,{"Stay",[](MenuType type){
|
||||||
|
Menu::CloseMenu();
|
||||||
|
}}},
|
||||||
|
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
|
||||||
|
}
|
||||||
|
,{ //Button Navigation Rules
|
||||||
|
{"Sample Button",{
|
||||||
|
.up="",
|
||||||
|
.down="",
|
||||||
|
.left="",
|
||||||
|
.right="",}},
|
||||||
|
});
|
||||||
|
}
|
65
Adventures in Lestoria/ArtificerEnchantWindow.cpp
Normal file
65
Adventures in Lestoria/ArtificerEnchantWindow.cpp
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
#pragma region License
|
||||||
|
/*
|
||||||
|
License (OLC-3)
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Copyright 2024 Joshua Sigona <sigonasr2@gmail.com>
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions or derivations of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions or derivative works in binary form must reproduce the above
|
||||||
|
copyright notice. This list of conditions and the following disclaimer must be
|
||||||
|
reproduced in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software without specific
|
||||||
|
prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||||
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||||
|
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
Portions of this software are copyright © 2024 The FreeType
|
||||||
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
||||||
|
All rights reserved.
|
||||||
|
*/
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
|
#include "Menu.h"
|
||||||
|
#include "AdventuresInLestoria.h"
|
||||||
|
|
||||||
|
INCLUDE_game
|
||||||
|
|
||||||
|
void Menu::InitializeArtificerEnchantWindow(){
|
||||||
|
Menu*artificerEnchantWindow=CreateMenu(ARTIFICER_ENCHANT,CENTERED,vi2d{144,144});
|
||||||
|
|
||||||
|
artificerEnchantWindow->SetupKeyboardNavigation(
|
||||||
|
[](MenuType type,Data&returnData){ //On Open
|
||||||
|
returnData="";
|
||||||
|
},
|
||||||
|
{ //Button Key
|
||||||
|
{game->KEY_SCROLL,{"Navigate",[](MenuType type){}}},
|
||||||
|
{game->KEY_BACK,{"Stay",[](MenuType type){
|
||||||
|
Menu::CloseMenu();
|
||||||
|
}}},
|
||||||
|
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
|
||||||
|
}
|
||||||
|
,{ //Button Navigation Rules
|
||||||
|
{"Sample Button",{
|
||||||
|
.up="",
|
||||||
|
.down="",
|
||||||
|
.left="",
|
||||||
|
.right="",}},
|
||||||
|
});
|
||||||
|
}
|
65
Adventures in Lestoria/ArtificerRefineConfirmWindow.cpp
Normal file
65
Adventures in Lestoria/ArtificerRefineConfirmWindow.cpp
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
#pragma region License
|
||||||
|
/*
|
||||||
|
License (OLC-3)
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Copyright 2024 Joshua Sigona <sigonasr2@gmail.com>
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions or derivations of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions or derivative works in binary form must reproduce the above
|
||||||
|
copyright notice. This list of conditions and the following disclaimer must be
|
||||||
|
reproduced in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software without specific
|
||||||
|
prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||||
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||||
|
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
Portions of this software are copyright © 2024 The FreeType
|
||||||
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
||||||
|
All rights reserved.
|
||||||
|
*/
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
|
#include "Menu.h"
|
||||||
|
#include "AdventuresInLestoria.h"
|
||||||
|
|
||||||
|
INCLUDE_game
|
||||||
|
|
||||||
|
void Menu::InitializeArtificerRefineConfirmWindow(){
|
||||||
|
Menu*artificerRefineConfirmWindow=CreateMenu(ARTIFICER_REFINE_CONFIRM,CENTERED,vi2d{144,144});
|
||||||
|
|
||||||
|
artificerRefineConfirmWindow->SetupKeyboardNavigation(
|
||||||
|
[](MenuType type,Data&returnData){ //On Open
|
||||||
|
returnData="";
|
||||||
|
},
|
||||||
|
{ //Button Key
|
||||||
|
{game->KEY_SCROLL,{"Navigate",[](MenuType type){}}},
|
||||||
|
{game->KEY_BACK,{"Stay",[](MenuType type){
|
||||||
|
Menu::CloseMenu();
|
||||||
|
}}},
|
||||||
|
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
|
||||||
|
}
|
||||||
|
,{ //Button Navigation Rules
|
||||||
|
{"Sample Button",{
|
||||||
|
.up="",
|
||||||
|
.down="",
|
||||||
|
.left="",
|
||||||
|
.right="",}},
|
||||||
|
});
|
||||||
|
}
|
65
Adventures in Lestoria/ArtificerRefineWindow.cpp
Normal file
65
Adventures in Lestoria/ArtificerRefineWindow.cpp
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
#pragma region License
|
||||||
|
/*
|
||||||
|
License (OLC-3)
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Copyright 2024 Joshua Sigona <sigonasr2@gmail.com>
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions or derivations of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions or derivative works in binary form must reproduce the above
|
||||||
|
copyright notice. This list of conditions and the following disclaimer must be
|
||||||
|
reproduced in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software without specific
|
||||||
|
prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||||
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||||
|
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
Portions of this software are copyright © 2024 The FreeType
|
||||||
|
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
||||||
|
All rights reserved.
|
||||||
|
*/
|
||||||
|
#pragma endregion
|
||||||
|
|
||||||
|
#include "Menu.h"
|
||||||
|
#include "AdventuresInLestoria.h"
|
||||||
|
|
||||||
|
INCLUDE_game
|
||||||
|
|
||||||
|
void Menu::InitializeArtificerRefineWindow(){
|
||||||
|
Menu*artificerRefineWindow=CreateMenu(ARTIFICER_REFINE,CENTERED,vi2d{144,144});
|
||||||
|
|
||||||
|
artificerRefineWindow->SetupKeyboardNavigation(
|
||||||
|
[](MenuType type,Data&returnData){ //On Open
|
||||||
|
returnData="";
|
||||||
|
},
|
||||||
|
{ //Button Key
|
||||||
|
{game->KEY_SCROLL,{"Navigate",[](MenuType type){}}},
|
||||||
|
{game->KEY_BACK,{"Stay",[](MenuType type){
|
||||||
|
Menu::CloseMenu();
|
||||||
|
}}},
|
||||||
|
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
|
||||||
|
}
|
||||||
|
,{ //Button Navigation Rules
|
||||||
|
{"Sample Button",{
|
||||||
|
.up="",
|
||||||
|
.down="",
|
||||||
|
.left="",
|
||||||
|
.right="",}},
|
||||||
|
});
|
||||||
|
}
|
@ -50,14 +50,15 @@ void Menu::InitializeArtificerWindow(){
|
|||||||
Menu*artificerWindow=CreateMenu(ARTIFICER,CENTERED,vi2d{144,144});
|
Menu*artificerWindow=CreateMenu(ARTIFICER,CENTERED,vi2d{144,144});
|
||||||
|
|
||||||
artificerWindow->ADD("Refine Button",MenuComponent)(geom2d::rect<float>{{0.f,4.f},{144.f,24.f}},"Refine",[](MenuFuncData data){
|
artificerWindow->ADD("Refine Button",MenuComponent)(geom2d::rect<float>{{0.f,4.f},{144.f,24.f}},"Refine",[](MenuFuncData data){
|
||||||
|
Menu::OpenMenu(MenuType::ARTIFICER_REFINE);
|
||||||
return true;
|
return true;
|
||||||
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END;
|
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END;
|
||||||
artificerWindow->ADD("Disassemble Button",MenuComponent)(geom2d::rect<float>{{0.f,32.f},{144.f,24.f}},"Disassemble",[](MenuFuncData data){
|
artificerWindow->ADD("Disassemble Button",MenuComponent)(geom2d::rect<float>{{0.f,32.f},{144.f,24.f}},"Disassemble",[](MenuFuncData data){
|
||||||
|
Menu::OpenMenu(MenuType::ARTIFICER_DISASSEMBLE);
|
||||||
return true;
|
return true;
|
||||||
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END;
|
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END;
|
||||||
artificerWindow->ADD("Enchant Button",MenuComponent)(geom2d::rect<float>{{0.f,60.f},{144.f,24.f}},"Enchant",[](MenuFuncData data){
|
artificerWindow->ADD("Enchant Button",MenuComponent)(geom2d::rect<float>{{0.f,60.f},{144.f,24.f}},"Enchant",[](MenuFuncData data){
|
||||||
|
Menu::OpenMenu(MenuType::ARTIFICER_ENCHANT);
|
||||||
return true;
|
return true;
|
||||||
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END;
|
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END;
|
||||||
artificerWindow->ADD("Help Button",MenuComponent)(geom2d::rect<float>{{0.f,88.f},{144.f,24.f}},"Help",[](MenuFuncData data){
|
artificerWindow->ADD("Help Button",MenuComponent)(geom2d::rect<float>{{0.f,88.f},{144.f,24.f}},"Help",[](MenuFuncData data){
|
||||||
|
@ -119,6 +119,12 @@ void Menu::InitializeMenus(){
|
|||||||
InitializeDeathWindow();
|
InitializeDeathWindow();
|
||||||
InitializeCreditsWindow();
|
InitializeCreditsWindow();
|
||||||
InitializeArtificerWindow();
|
InitializeArtificerWindow();
|
||||||
|
InitializeArtificerRefineWindow();
|
||||||
|
InitializeArtificerRefineConfirmWindow();
|
||||||
|
InitializeArtificerDisassembleWindow();
|
||||||
|
InitializeArtificerDisassembleConfirmWindow();
|
||||||
|
InitializeArtificerEnchantWindow();
|
||||||
|
InitializeArtificerEnchantConfirmWindow();
|
||||||
|
|
||||||
for(MenuType type=MenuType(int(MenuType::ENUM_START)+1);type<MenuType::ENUM_END;type=MenuType(int(type+1))){
|
for(MenuType type=MenuType(int(MenuType::ENUM_START)+1);type<MenuType::ENUM_END;type=MenuType(int(type+1))){
|
||||||
if(menus.count(type)==0){
|
if(menus.count(type)==0){
|
||||||
|
@ -69,13 +69,12 @@ using ToggleFunc=std::function<bool(ToggleFuncData)>;
|
|||||||
|
|
||||||
#define DEFAULT_DEPTH -999999
|
#define DEFAULT_DEPTH -999999
|
||||||
#define STARTING_DEPTH 999999
|
#define STARTING_DEPTH 999999
|
||||||
#define MAX_MENUS 32
|
#define MAX_MENUS 64
|
||||||
|
|
||||||
using Data=std::variant<ButtonName,std::weak_ptr<MenuComponent>>;
|
using Data=std::variant<ButtonName,std::weak_ptr<MenuComponent>>;
|
||||||
using MenuDataFunc=std::function<void(MenuType,Data&)>;
|
using MenuDataFunc=std::function<void(MenuType,Data&)>;
|
||||||
using ButtonNavigationGroups=std::map<ButtonName,Navigation>;
|
using ButtonNavigationGroups=std::map<ButtonName,Navigation>;
|
||||||
|
|
||||||
|
|
||||||
struct Navigation{
|
struct Navigation{
|
||||||
std::variant<ButtonName,MenuDataFunc>up;
|
std::variant<ButtonName,MenuDataFunc>up;
|
||||||
std::variant<ButtonName,MenuDataFunc>down;
|
std::variant<ButtonName,MenuDataFunc>down;
|
||||||
@ -113,6 +112,12 @@ class Menu:public IAttributable{
|
|||||||
static void InitializeDeathWindow();
|
static void InitializeDeathWindow();
|
||||||
static void InitializeCreditsWindow();
|
static void InitializeCreditsWindow();
|
||||||
static void InitializeArtificerWindow();
|
static void InitializeArtificerWindow();
|
||||||
|
static void InitializeArtificerRefineWindow();
|
||||||
|
static void InitializeArtificerRefineConfirmWindow();
|
||||||
|
static void InitializeArtificerDisassembleWindow();
|
||||||
|
static void InitializeArtificerDisassembleConfirmWindow();
|
||||||
|
static void InitializeArtificerEnchantWindow();
|
||||||
|
static void InitializeArtificerEnchantConfirmWindow();
|
||||||
|
|
||||||
friend class AiL;
|
friend class AiL;
|
||||||
friend class ItemInfo;
|
friend class ItemInfo;
|
||||||
|
@ -70,6 +70,12 @@ enum MenuType{
|
|||||||
DEATH, //100% Controller Compatibility
|
DEATH, //100% Controller Compatibility
|
||||||
CREDITS, //100% Controller Compatibility
|
CREDITS, //100% Controller Compatibility
|
||||||
ARTIFICER, //100% Controller Compatibility
|
ARTIFICER, //100% Controller Compatibility
|
||||||
|
ARTIFICER_REFINE,
|
||||||
|
ARTIFICER_REFINE_CONFIRM,
|
||||||
|
ARTIFICER_DISASSEMBLE,
|
||||||
|
ARTIFICER_DISASSEMBLE_CONFIRM,
|
||||||
|
ARTIFICER_ENCHANT,
|
||||||
|
ARTIFICER_ENCHANT_CONFIRM,
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
/*DO NOT REMOVE!!*/ENUM_END////////////////////////////////
|
/*DO NOT REMOVE!!*/ENUM_END////////////////////////////////
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
@ -39,7 +39,7 @@ All rights reserved.
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_PATCH 3
|
#define VERSION_PATCH 3
|
||||||
#define VERSION_BUILD 10421
|
#define VERSION_BUILD 10424
|
||||||
|
|
||||||
#define stringify(a) stringify_(a)
|
#define stringify(a) stringify_(a)
|
||||||
#define stringify_(a) #a
|
#define stringify_(a) #a
|
||||||
|
@ -1,37 +1,82 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<tileset version="1.10" tiledversion="1.10.1" name="palm_trees" tilewidth="24" tileheight="24" tilecount="84" columns="14">
|
<tileset version="1.10" tiledversion="1.10.2" name="palm_trees" tilewidth="24" tileheight="24" tilecount="84" columns="14">
|
||||||
<image source="commercial_assets/palm_trees.png" width="336" height="144"/>
|
<image source="commercial_assets/palm_trees.png" width="336" height="144"/>
|
||||||
<tile id="71">
|
<tile id="7" type="ForegroundTile"/>
|
||||||
|
<tile id="8" type="ForegroundTile"/>
|
||||||
|
<tile id="9" type="ForegroundTile"/>
|
||||||
|
<tile id="10" type="ForegroundTile"/>
|
||||||
|
<tile id="11" type="ForegroundTile"/>
|
||||||
|
<tile id="12" type="ForegroundTile"/>
|
||||||
|
<tile id="14" type="ForegroundTile"/>
|
||||||
|
<tile id="15" type="ForegroundTile"/>
|
||||||
|
<tile id="16" type="ForegroundTile"/>
|
||||||
|
<tile id="17" type="ForegroundTile"/>
|
||||||
|
<tile id="18" type="ForegroundTile"/>
|
||||||
|
<tile id="19" type="ForegroundTile"/>
|
||||||
|
<tile id="21" type="ForegroundTile"/>
|
||||||
|
<tile id="22" type="ForegroundTile"/>
|
||||||
|
<tile id="23" type="ForegroundTile"/>
|
||||||
|
<tile id="24" type="ForegroundTile"/>
|
||||||
|
<tile id="25" type="ForegroundTile"/>
|
||||||
|
<tile id="26" type="ForegroundTile"/>
|
||||||
|
<tile id="28" type="ForegroundTile"/>
|
||||||
|
<tile id="29" type="ForegroundTile"/>
|
||||||
|
<tile id="30" type="ForegroundTile"/>
|
||||||
|
<tile id="31" type="ForegroundTile"/>
|
||||||
|
<tile id="32" type="ForegroundTile"/>
|
||||||
|
<tile id="33" type="ForegroundTile"/>
|
||||||
|
<tile id="36" type="ForegroundTile"/>
|
||||||
|
<tile id="37" type="ForegroundTile"/>
|
||||||
|
<tile id="38" type="ForegroundTile"/>
|
||||||
|
<tile id="39" type="ForegroundTile"/>
|
||||||
|
<tile id="40" type="ForegroundTile"/>
|
||||||
|
<tile id="42" type="ForegroundTile"/>
|
||||||
|
<tile id="43" type="ForegroundTile"/>
|
||||||
|
<tile id="44" type="ForegroundTile"/>
|
||||||
|
<tile id="45" type="ForegroundTile"/>
|
||||||
|
<tile id="46" type="ForegroundTile"/>
|
||||||
|
<tile id="47" type="ForegroundTile"/>
|
||||||
|
<tile id="50" type="ForegroundTile"/>
|
||||||
|
<tile id="53" type="ForegroundTile"/>
|
||||||
|
<tile id="54" type="ForegroundTile"/>
|
||||||
|
<tile id="57" type="ForegroundTile"/>
|
||||||
|
<tile id="59" type="ForegroundTile"/>
|
||||||
|
<tile id="60" type="ForegroundTile"/>
|
||||||
|
<tile id="63" type="ForegroundTile"/>
|
||||||
|
<tile id="64" type="ForegroundTile"/>
|
||||||
|
<tile id="67" type="ForegroundTile"/>
|
||||||
|
<tile id="68" type="ForegroundTile"/>
|
||||||
|
<tile id="71" type="ForegroundTile">
|
||||||
<objectgroup draworder="index" id="2">
|
<objectgroup draworder="index" id="2">
|
||||||
<object id="1" x="16" y="0" width="8" height="24"/>
|
<object id="1" x="16" y="0" width="8" height="24"/>
|
||||||
</objectgroup>
|
</objectgroup>
|
||||||
</tile>
|
</tile>
|
||||||
<tile id="73">
|
<tile id="73" type="ForegroundTile">
|
||||||
<objectgroup draworder="index" id="2">
|
<objectgroup draworder="index" id="2">
|
||||||
<object id="1" x="22" y="0" width="2" height="24"/>
|
<object id="1" x="22" y="0" width="2" height="24"/>
|
||||||
</objectgroup>
|
</objectgroup>
|
||||||
</tile>
|
</tile>
|
||||||
<tile id="74">
|
<tile id="74" type="ForegroundTile">
|
||||||
<objectgroup draworder="index" id="2">
|
<objectgroup draworder="index" id="2">
|
||||||
<object id="1" x="0" y="0" width="7" height="24"/>
|
<object id="1" x="0" y="0" width="7" height="24"/>
|
||||||
</objectgroup>
|
</objectgroup>
|
||||||
</tile>
|
</tile>
|
||||||
<tile id="77">
|
<tile id="77" type="ForegroundTile">
|
||||||
<objectgroup draworder="index" id="2">
|
<objectgroup draworder="index" id="2">
|
||||||
<object id="1" x="21" y="0" width="3" height="24"/>
|
<object id="1" x="21" y="0" width="3" height="24"/>
|
||||||
</objectgroup>
|
</objectgroup>
|
||||||
</tile>
|
</tile>
|
||||||
<tile id="78">
|
<tile id="78" type="ForegroundTile">
|
||||||
<objectgroup draworder="index" id="2">
|
<objectgroup draworder="index" id="2">
|
||||||
<object id="1" x="0" y="0" width="8" height="24"/>
|
<object id="1" x="0" y="0" width="8" height="24"/>
|
||||||
</objectgroup>
|
</objectgroup>
|
||||||
</tile>
|
</tile>
|
||||||
<tile id="81">
|
<tile id="81" type="ForegroundTile">
|
||||||
<objectgroup draworder="index" id="2">
|
<objectgroup draworder="index" id="2">
|
||||||
<object id="1" x="17" y="0" width="7" height="24"/>
|
<object id="1" x="17" y="0" width="7" height="24"/>
|
||||||
</objectgroup>
|
</objectgroup>
|
||||||
</tile>
|
</tile>
|
||||||
<tile id="82">
|
<tile id="82" type="ForegroundTile">
|
||||||
<objectgroup draworder="index" id="2">
|
<objectgroup draworder="index" id="2">
|
||||||
<object id="1" x="0" y="0" width="4" height="24"/>
|
<object id="1" x="0" y="0" width="4" height="24"/>
|
||||||
</objectgroup>
|
</objectgroup>
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user