Browse Source

tinkering tinkering. looking a tad better now. movig on to other things, zooming and selecting feels satisfying. UX-Pro LadyAni will have a look soon I hope :)

master
Christian Voigt 1 year ago
parent
commit
8a71bb8fd3
  1. 17
      sdtd_world/region_label_collection.py

17
sdtd_world/region_label_collection.py

@ -28,16 +28,19 @@ class RegionLabelCollection(QGridLayout):
label.update_graphics_effect()
if region_label is not None:
if region_label.is_selected is True:
self.set_selected()
else:
region_label.is_selected = True
self.toggle_selected(region_label)
@staticmethod
def toggle_selected(region_label=None):
if region_label is not None:
region_label.is_selected = not region_label.is_selected
region_label.update_graphics_effect()
def toggle_marked(self, region_label=None):
region_label.is_marked = not region_label.is_marked
region_label.update_graphics_effect()
@staticmethod
def toggle_marked(region_label=None):
if region_label is not None:
region_label.is_marked = not region_label.is_marked
region_label.update_graphics_effect()
def create_label_collection(self, label_size):
for y in range(0, 32):

Loading…
Cancel
Save