mirror of
https://github.com/csd4ni3l/simulator-games.git
synced 2026-01-01 04:13:44 +01:00
Fix missing string sign when checking if os is windows
This commit is contained in:
@@ -134,7 +134,7 @@ class Game(arcade.gui.UIView):
|
|||||||
self.settings_box.add(arcade.gui.UILabel("Inventory", font_size=18))
|
self.settings_box.add(arcade.gui.UILabel("Inventory", font_size=18))
|
||||||
|
|
||||||
self.inventory_grid = self.settings_box.add(BodyInventory(self.window.width, self.window.height, "crate", {"crate": ":resources:images/tiles/boxCrate_double.png", "coin": ":resources:images/items/coinGold.png"}))
|
self.inventory_grid = self.settings_box.add(BodyInventory(self.window.width, self.window.height, "crate", {"crate": ":resources:images/tiles/boxCrate_double.png", "coin": ":resources:images/items/coinGold.png"}))
|
||||||
if os.name == "nt:
|
if os.name == "nt":
|
||||||
self.add_custom_body_button = self.settings_box.add(arcade.gui.UITextureButton(text="Add custom body from SVG", size_hint=(1, 0.1), width=self.window.width * 0.2, height=self.window.height * 0.1))
|
self.add_custom_body_button = self.settings_box.add(arcade.gui.UITextureButton(text="Add custom body from SVG", size_hint=(1, 0.1), width=self.window.width * 0.2, height=self.window.height * 0.1))
|
||||||
|
|
||||||
self.add_custom_body_button.on_click = lambda event: self.custom_body_ui()
|
self.add_custom_body_button.on_click = lambda event: self.custom_body_ui()
|
||||||
@@ -448,4 +448,4 @@ class Game(arcade.gui.UIView):
|
|||||||
def on_show_view(self):
|
def on_show_view(self):
|
||||||
super().on_show_view()
|
super().on_show_view()
|
||||||
|
|
||||||
self.create_wall((self.window.width * 0.8), 80, 0, 0)
|
self.create_wall((self.window.width * 0.8), 80, 0, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user