Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions game_engine/ui/designer.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,14 @@ def update(self):
self.objectHealth = 100 # Ayarlanacak
self.objectScale = 1 # Ayarlanacak
self.objectAnims = []

# Reset RGB scrollbar state so stale values from
# the previous item are not carried over.
for _rgb_key in ("R", "G", "B"):
if _rgb_key in UI.memory:
UI.memory[_rgb_key]["scroll"] = [0, 0]
UI.memory[_rgb_key]["condition"] = 0

self.tile_info_bool = True
else:
if event.pos[0] < self.screen.get_size()[0] - 200 or event.pos[1] > 350:
Expand Down Expand Up @@ -778,8 +786,6 @@ def __init__(self):
# ------------------------------------------------------------------------------------------------------------

# -Light Editor Window----------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------------------

elif self.light_editor_bool:
coords = list(self.unconverted_objectCoords)
coords[0] += self.objectSize[0] * self.win_scale
Expand Down
Loading