mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-13 17:23:08 +00:00
fill parameter now saves with curve tool
This commit is contained in:
parent
769bb3dcc7
commit
63a23ccb9c
|
@ -391,7 +391,6 @@ func attempt_config_share(from_idx: int, config: Dictionary = {}):
|
||||||
var from_tool = from_slot.tool_node
|
var from_tool = from_slot.tool_node
|
||||||
if from_tool.has_method("get_config"):
|
if from_tool.has_method("get_config"):
|
||||||
config = from_tool.get_config()
|
config = from_tool.get_config()
|
||||||
#print(config)
|
|
||||||
var target_slot: Slot = _slots.get(MOUSE_BUTTON_LEFT, null)
|
var target_slot: Slot = _slots.get(MOUSE_BUTTON_LEFT, null)
|
||||||
if from_idx == MOUSE_BUTTON_LEFT:
|
if from_idx == MOUSE_BUTTON_LEFT:
|
||||||
target_slot = _slots.get(MOUSE_BUTTON_RIGHT, null)
|
target_slot = _slots.get(MOUSE_BUTTON_RIGHT, null)
|
||||||
|
|
|
@ -44,17 +44,20 @@ func update_indicator() -> void:
|
||||||
|
|
||||||
func get_config() -> Dictionary:
|
func get_config() -> Dictionary:
|
||||||
var config := super.get_config()
|
var config := super.get_config()
|
||||||
|
config["fill"] = _fill
|
||||||
config["thickness"] = _thickness
|
config["thickness"] = _thickness
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
||||||
func set_config(config: Dictionary) -> void:
|
func set_config(config: Dictionary) -> void:
|
||||||
super.set_config(config)
|
super.set_config(config)
|
||||||
|
_fill = config.get("fill", _fill)
|
||||||
_thickness = config.get("thickness", _thickness)
|
_thickness = config.get("thickness", _thickness)
|
||||||
|
|
||||||
|
|
||||||
func update_config() -> void:
|
func update_config() -> void:
|
||||||
super.update_config()
|
super.update_config()
|
||||||
|
$FillCheckbox.button_pressed = _fill
|
||||||
$ThicknessSlider.value = _thickness
|
$ThicknessSlider.value = _thickness
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue