Release Build 6393
This commit is contained in:
parent
aa39b1b855
commit
1d5a936c20
@ -670,6 +670,7 @@
|
|||||||
<SubType>
|
<SubType>
|
||||||
</SubType>
|
</SubType>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="SettingsWindow.cpp" />
|
||||||
<ClCompile Include="ShootAfar.cpp" />
|
<ClCompile Include="ShootAfar.cpp" />
|
||||||
<ClCompile Include="SlimeKing.cpp" />
|
<ClCompile Include="SlimeKing.cpp" />
|
||||||
<ClCompile Include="SoundEffect.cpp">
|
<ClCompile Include="SoundEffect.cpp">
|
||||||
|
@ -758,6 +758,9 @@
|
|||||||
<ClCompile Include="GameEvent.cpp">
|
<ClCompile Include="GameEvent.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="SettingsWindow.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="cpp.hint" />
|
<None Include="cpp.hint" />
|
||||||
|
@ -36,6 +36,7 @@ All rights reserved.
|
|||||||
*/
|
*/
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
#include "AdventuresInLestoria.h"
|
||||||
#include "Menu.h"
|
#include "Menu.h"
|
||||||
#include "MenuComponent.h"
|
#include "MenuComponent.h"
|
||||||
#include "SoundEffect.h"
|
#include "SoundEffect.h"
|
||||||
@ -44,20 +45,22 @@ All rights reserved.
|
|||||||
#include "Unlock.h"
|
#include "Unlock.h"
|
||||||
|
|
||||||
INCLUDE_DATA
|
INCLUDE_DATA
|
||||||
|
INCLUDE_game
|
||||||
|
INCLUDE_WINDOW_SIZE
|
||||||
|
|
||||||
void Menu::InitializeSettingsWindow(){
|
void Menu::InitializeSettingsWindow(){
|
||||||
vf2d windowSize=game->WINDOW_SIZE-vf2d{28,28};
|
vf2d windowSize=WINDOW_SIZE-vf2d{28,28};
|
||||||
Menu*settingsWindow=CreateMenu(SETTINGS,CENTERED,windowSize);
|
Menu*settingsWindow=CreateMenu(SETTINGS,CENTERED,windowSize);
|
||||||
|
|
||||||
settingsWindow->ADD("Unlock All Button",MenuComponent)({{4,4},{72,12}},"Unlock All",[](MenuFuncData data){
|
settingsWindow->ADD("Unlock All Button",MenuComponent)(geom2d::rect<float>{{4,4},{72,12}},"Unlock All",[](MenuFuncData data){
|
||||||
for(auto&[key,size]:DATA["Levels"]){
|
for(auto&[key,size]:DATA["Levels"]){
|
||||||
Unlock::UnlockArea(key);
|
Unlock::UnlockArea(key);
|
||||||
}
|
}
|
||||||
SoundEffect::PlaySFX("Buy Item",SoundEffect::CENTERED);
|
SoundEffect::PlaySFX("Buy Item",SoundEffect::CENTERED);
|
||||||
return true;
|
return true;
|
||||||
});
|
})END;
|
||||||
settingsWindow->ADD("Go Back",MenuComponent)({windowSize/2-vf2d{36,16},{72,12}},"Go Back",[](MenuFuncData data){
|
settingsWindow->ADD("Go Back",MenuComponent)(geom2d::rect<float>{windowSize/2-vf2d{36,16},{72,12}},"Go Back",[](MenuFuncData data){
|
||||||
Menu::CloseMenu();
|
Menu::CloseMenu();
|
||||||
return true;
|
return true;
|
||||||
});
|
})END;
|
||||||
}
|
}
|
@ -39,7 +39,7 @@ All rights reserved.
|
|||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_PATCH 0
|
#define VERSION_PATCH 0
|
||||||
#define VERSION_BUILD 6389
|
#define VERSION_BUILD 6393
|
||||||
|
|
||||||
#define stringify(a) stringify_(a)
|
#define stringify(a) stringify_(a)
|
||||||
#define stringify_(a) #a
|
#define stringify_(a) #a
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user