Skip to content
Open
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
6 changes: 6 additions & 0 deletions game_engine/ui/designer.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,12 @@ 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"):

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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
Loading