1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Add music / sound / setting buttons (dysfunctional)

This commit is contained in:
tobspr
2020-05-11 15:17:30 +02:00
parent 653ddf9a3a
commit 21382a6f2e
10 changed files with 84 additions and 25 deletions

View File

@@ -33,5 +33,11 @@ export class HUDGameMenu extends BaseHUDPart {
binding.appendLabelToElement(button);
}
});
const menuButtons = makeDiv(this.element, null, ["menuButtons"]);
this.musicButton = makeDiv(menuButtons, null, ["button", "music"]);
this.sfxButton = makeDiv(menuButtons, null, ["button", "sfx"]);
this.settingsButton = makeDiv(menuButtons, null, ["button", "settings"]);
}
}

View File

@@ -76,7 +76,7 @@ export const UPGRADES = {
description: improvement => "Speed +" + Math.floor(improvement * 100.0) + "%",
tiers: [
{
required: [{ shape: "RuRuRuRu", amount: 200 }],
required: [{ shape: "SuSuSuSu", amount: 200 }],
improvement: 1,
},
{
@@ -99,7 +99,7 @@ export const UPGRADES = {
description: improvement => "Speed +" + Math.floor(improvement * 100.0) + "%",
tiers: [
{
required: [{ shape: "RuRuRuRu", amount: 200 }],
required: [{ shape: "WuWuWuWu", amount: 200 }],
improvement: 1,
},
{