ADD settings and back icons

This commit is contained in:
2025-04-21 12:30:06 +02:00
parent 6b6532031b
commit c65d4b6829
4 changed files with 2 additions and 2 deletions

BIN
assets/arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
assets/setting.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -12,7 +12,7 @@ class GUIRenderer:
# Settings button # Settings button
self.settings_button = Button(self.screen.get_width()-40, 10, 30, 30, None) self.settings_button = Button(self.screen.get_width()-40, 10, 30, 30, None)
self.settings_button.set_text("Settings") self.settings_button.set_image("assets/setting.png")
self.colour = (255, 255, 255) self.colour = (255, 255, 255)

View File

@@ -9,7 +9,7 @@ class SettingsMenu(GameState):
# Buttons # Buttons
self.back_button = Button(10, 10, 50, 50, lambda: self.switch_state(self.context["previous_states"].pop())) self.back_button = Button(10, 10, 50, 50, lambda: self.switch_state(self.context["previous_states"].pop()))
self.back_button.set_text("Back") self.back_button.set_image("assets/arrow.png")
self.show_yaw_text = self.font.render("Show Yaw: ", True, (255, 255, 255)) self.show_yaw_text = self.font.render("Show Yaw: ", True, (255, 255, 255))
self.show_yaw_button = Switch(100, 100, 50, 50, self.options["show_yaw"]) self.show_yaw_button = Switch(100, 100, 50, 50, self.options["show_yaw"])