ui redraw on UIlist actions and code cleanup

2.0.9

- fix: prefix/suffix UIlist actions trigger UI redraw to see changes live
- changed: PropertyGroups are now registered in their own file
- code: cleanup
This commit is contained in:
Pullusb
2022-10-13 00:09:12 +02:00
parent c32ea207c6
commit e0a50ea49a
8 changed files with 226 additions and 198 deletions
+4 -10
View File
@@ -3,13 +3,6 @@ from .utils import get_addon_prefs
import bpy
from pathlib import Path
from bpy.types import Panel
from bpy.props import (
IntProperty,
BoolProperty,
StringProperty,
FloatProperty,
EnumProperty,
)
## UI in properties
@@ -274,9 +267,10 @@ class GPTB_PT_tint_layers(Panel):
## pseudo color layers
# layout.separator()
col = layout.column(align = True)
row = col.split(align=False, factor=0.63)
row.prop(context.scene.gptoolprops, 'autotint_offset')
row.prop(context.scene.gptoolprops, 'autotint_namespace')
# row = col.split(align=False, factor=0.63)
# row = col.row()
col.prop(context.scene.gptoolprops, 'autotint_offset', text='Hue Offset')
col.prop(context.scene.gptoolprops, 'autotint_namespace')
col.operator("gp.auto_tint_gp_layers", icon = "COLOR").reset = False
col.operator("gp.auto_tint_gp_layers", text = "Reset tint", icon = "COLOR").reset = True