Skip to content
Snippets Groups Projects
Commit 0b2b4c9c authored by Fatih20's avatar Fatih20
Browse files

fix: remove shop and save button

parent e72d5aa2
1 merge request!61fix: remove shop and save button
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
<ui:VisualElement name="Container" class="root-container" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0.57); align-items: center; justify-content: center;"> <ui:VisualElement name="Container" class="root-container" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0.57); align-items: center; justify-content: center;">
<ui:VisualElement name="PauseMenuContainer" class="rotated" style="flex-grow: 1; justify-content: center;"> <ui:VisualElement name="PauseMenuContainer" class="rotated" style="flex-grow: 1; justify-content: center;">
<ui:Button text="Resume" name="Resume" emoji-fallback-support="false" class="button rounded bottom-above-spaced normal-button" /> <ui:Button text="Resume" name="Resume" emoji-fallback-support="false" class="button rounded bottom-above-spaced normal-button" />
<ui:Button text="Save" name="Save" class="button rounded bottom-above-spaced normal-button" />
<ui:Button text="Shop" name="Shop" class="button rounded bottom-above-spaced normal-button" />
<ui:Button text="Return To Main Menu" name="ReturnToMainMenu" class="rounded bottom-above-spaced button normal-button" /> <ui:Button text="Return To Main Menu" name="ReturnToMainMenu" class="rounded bottom-above-spaced button normal-button" />
</ui:VisualElement> </ui:VisualElement>
</ui:VisualElement> </ui:VisualElement>
......
...@@ -21,23 +21,23 @@ public class PauseMenuController : InGameUIScreenController ...@@ -21,23 +21,23 @@ public class PauseMenuController : InGameUIScreenController
GameController.stateController.PopState(); GameController.stateController.PopState();
}); });
Button saveButton = rootElement.Query<Button>("Save"); // Button saveButton = rootElement.Query<Button>("Save");
// Insert condition on which player can save the game // // Insert condition on which player can save the game
if (false) // if (false)
{ // {
saveButton.style.display = DisplayStyle.None; // saveButton.style.display = DisplayStyle.None;
} // }
saveButton.RegisterCallback((ClickEvent evt) => // saveButton.RegisterCallback((ClickEvent evt) =>
{ // {
Debug.Log("Save Button clicked"); // Debug.Log("Save Button clicked");
GameSaveManager.Instance?.SaveGame(); // GameSaveManager.Instance?.SaveGame();
}); // });
Button shopButton = rootElement.Query<Button>("Shop"); // Button shopButton = rootElement.Query<Button>("Shop");
shopButton.RegisterCallback((ClickEvent evt) => // shopButton.RegisterCallback((ClickEvent evt) =>
{ // {
GameController.Instance.stateController.PushState(GameState.SHOPPING); // GameController.Instance.stateController.PushState(GameState.SHOPPING);
}); // });
Button returnToMainMenuButton = rootElement.Query<Button>("ReturnToMainMenu"); Button returnToMainMenuButton = rootElement.Query<Button>("ReturnToMainMenu");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment