Skip to content

Commit

Permalink
fixed bug with drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
jj b committed Apr 19, 2021
1 parent 0cf71dc commit 3008be0
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions ResourceFiles/kv_language/baseBuildScreen.kv
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<BaseBuildScreen>:
on_enter: print("hi", background.opacity, self.opacity, self.children[0].opacity, self.parent.opacity)
on_leave: print("noooooooo")
canvas.before:
Color:
rgb: get_color_from_hex(Graphics.get("BaseBuildScreen", "crater_outside_color"))

Rectangle:
pos: self.pos
size: self.size

ScatterLayout:
scale_min: 0 # zoom out
Expand All @@ -9,14 +14,6 @@
FloatLayout:
id: background

canvas.before:
Color:
rgb: get_color_from_hex(Graphics.get("BaseBuildScreen", "crater_outside_color"))

Rectangle:
pos: self.pos
size: self.size


Image:
id: canyon_floor
Expand Down

0 comments on commit 3008be0

Please sign in to comment.