Moved settings related to the game itself into its own settings save file. Emscripten build also saves a separate system settings file in indexeddb. Added checks to prevent menu sounds from playing when the menu is not currently open, but adjusted in a different location in the game. Implemented different button icon sets and a setting to toggle between them. Removed the double button display (caused more confusion and took up more room). Fixed a bug with iterating through navigation groups when a button was removed/disabled from the list. Removed iconscaling dependency based on MenuIconButton sizes.
This commit is contained in:
@@ -84,7 +84,9 @@ void Menu::InitializeBlacksmithCraftingWindow(){
|
||||
}else{
|
||||
data.menu.SetSelection(std::weak_ptr<MenuComponent>(Component<MenuComponent>(data.menu.GetType(),"Leave Button")));
|
||||
}
|
||||
SoundEffect::PlaySFX("Button Click",SoundEffect::CENTERED);
|
||||
if(Menu::IsCurrentlyActive(data.menu.GetType())){
|
||||
SoundEffect::PlaySFX("Button Click",SoundEffect::CENTERED);
|
||||
}
|
||||
return true;
|
||||
})END;
|
||||
weaponTab->selected=true;
|
||||
@@ -100,7 +102,9 @@ void Menu::InitializeBlacksmithCraftingWindow(){
|
||||
}else{
|
||||
data.menu.SetSelection(std::weak_ptr<MenuComponent>(Component<MenuComponent>(data.menu.GetType(),"Leave Button")));
|
||||
}
|
||||
SoundEffect::PlaySFX("Button Click",SoundEffect::CENTERED);
|
||||
if(Menu::IsCurrentlyActive(data.menu.GetType())){
|
||||
SoundEffect::PlaySFX("Button Click",SoundEffect::CENTERED);
|
||||
}
|
||||
return true;
|
||||
})END;
|
||||
armorTab->selectionType=SelectionType::HIGHLIGHT;
|
||||
|
||||
Reference in New Issue
Block a user