mirror of
https://github.com/Relintai/pandemonium_paint_experimental.git
synced 2024-11-07 16:52:10 +01:00
Always call tool_process in handle_mouse_button_down.
This commit is contained in:
parent
75ae11780b
commit
518383266b
@ -58,8 +58,8 @@ func handle_mouse_button_down(local_position : Vector2, event: InputEvent) -> vo
|
|||||||
print("TODO")
|
print("TODO")
|
||||||
elif current_tool == TOOL_PASTECUT:
|
elif current_tool == TOOL_PASTECUT:
|
||||||
print("TODO")
|
print("TODO")
|
||||||
elif current_tool == TOOL_PENCIL:
|
|
||||||
tool_process(local_position, event)
|
tool_process(local_position, event)
|
||||||
|
|
||||||
|
|
||||||
func do_action(arr : Array) -> void:
|
func do_action(arr : Array) -> void:
|
||||||
|
@ -28,7 +28,7 @@ size = Vector2( 32, 32 )
|
|||||||
|
|
||||||
[node name="PaintProject" type="PaintProject"]
|
[node name="PaintProject" type="PaintProject"]
|
||||||
size = Vector2i( 128, 128 )
|
size = Vector2i( 128, 128 )
|
||||||
current_color = Color( 0.00784314, 0.835294, 0.564706, 1 )
|
current_color = Color( 0.658824, 0.313726, 0.207843, 1 )
|
||||||
color_presets = PoolColorArray( 0.67914, 0.117493, 0.0852439, 1, 0.129412, 0.113725, 0.384314, 1, 0.0666667, 0.796078, 0.196078, 1, 0.0666667, 0.796078, 0.196078, 1, 0.964706, 0.992157, 0.121569, 1, 0.00784314, 0.835294, 0.564706, 1, 0.0666667, 0.796078, 0.196078, 1, 0.658824, 0.313726, 0.207843, 1 )
|
color_presets = PoolColorArray( 0.67914, 0.117493, 0.0852439, 1, 0.129412, 0.113725, 0.384314, 1, 0.0666667, 0.796078, 0.196078, 1, 0.0666667, 0.796078, 0.196078, 1, 0.964706, 0.992157, 0.121569, 1, 0.00784314, 0.835294, 0.564706, 1, 0.0666667, 0.796078, 0.196078, 1, 0.658824, 0.313726, 0.207843, 1 )
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
@ -50,4 +50,5 @@ script = ExtResource( 3 )
|
|||||||
size = Vector2i( 128, 128 )
|
size = Vector2i( 128, 128 )
|
||||||
brush_prefab = 1
|
brush_prefab = 1
|
||||||
brush_size = 3
|
brush_size = 3
|
||||||
|
current_tool = 3
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
Loading…
Reference in New Issue
Block a user