diff --git a/game_engine/ui/designer.py b/game_engine/ui/designer.py index 9a3199c..d2fb94c 100644 --- a/game_engine/ui/designer.py +++ b/game_engine/ui/designer.py @@ -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: @@ -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