-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gd paint from godot 3 #969
Conversation
@@ -0,0 +1,253 @@ | |||
extends Control | |||
|
|||
# A constant for whether or not we're needing to undo a shape. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# A constant for whether or not we're needing to undo a shape. | |
# A constant for whether or not we're needing to undo a shape. |
@@ -0,0 +1,113 @@ | |||
extends Panel | |||
|
|||
@onready var brush_settings = $BrushSettings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@onready var brush_settings = $BrushSettings | |
@onready var brush_settings = $BrushSettings |
brush_settings.modulate = Color(1, 1, 1, 0.5) | ||
tool_name = "Circle shape" | ||
|
||
# If a brush shape button is pressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# If a brush shape button is pressed | |
# If a brush shape button is pressed. |
Per the comment style.
paint_control.brush_shape = paint_control.BrushShapes.CIRCLE | ||
shape_name = "Circle"; | ||
|
||
# If a opperation button is pressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# If a opperation button is pressed | |
# If a opperation button is pressed. |
} | ||
|
||
# The top-left position of the canvas. | ||
var TL_node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var TL_node | |
var tl_node |
snake_case
var TL_pos = Vector2() | ||
var BR_pos = Vector2() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var TL_pos = Vector2() | |
var BR_pos = Vector2() | |
var tl_pos = Vector2() | |
var br_pos = Vector2() |
GDPaint was already updated for Godot 4 here, and is fully functional: https://github.com/godotengine/godot-demo-projects/tree/master/gui/gd_paint |
Calinou is correct, this demo has already been ported and goes in the GUI folder, not the 2D folder, as of #742. |
my bad, sorry. i was think this demo have not ported yet because i couldn't find this demo in the godot 4 editor asset library project |
See #920. |
hello, this is converted project demo of gd paint from godot 3 to godot 4. i've make sure there no bug. thankyou