ADD settings and back icons
This commit is contained in:
BIN
assets/arrow.png
Normal file
BIN
assets/arrow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.2 KiB |
BIN
assets/setting.png
Normal file
BIN
assets/setting.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -12,7 +12,7 @@ class GUIRenderer:
|
||||
|
||||
# Settings button
|
||||
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)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class SettingsMenu(GameState):
|
||||
|
||||
# Buttons
|
||||
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_button = Switch(100, 100, 50, 50, self.options["show_yaw"])
|
||||
|
||||
Reference in New Issue
Block a user