1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Change "Step" and "Dithering" gradients to "Linear Step" and "Linear Dithering"

This commit is contained in:
Emmanouil Papadeas 2022-05-02 16:53:13 +03:00
parent cf926942ac
commit 9a43d4bd34
5 changed files with 8 additions and 9 deletions

View file

@ -1,12 +1,12 @@
extends ImageEffect
enum { LINEAR, RADIAL, STEP, RADIAL_STEP, DITHERING, RADIAL_DITHERING }
enum { LINEAR, RADIAL, LINEAR_STEP, RADIAL_STEP, LINEAR_DITHERING, RADIAL_DITHERING }
var shader_linear: Shader = preload("res://src/Shaders/Gradients/Linear.gdshader")
var shader_radial: Shader = preload("res://src/Shaders/Gradients/Radial.gdshader")
var shader_step: Shader = preload("res://src/Shaders/Gradients/Step.gdshader")
var shader_linear_step: Shader = preload("res://src/Shaders/Gradients/LinearStep.gdshader")
var shader_radial_step: Shader = preload("res://src/Shaders/Gradients/RadialStep.gdshader")
var shader_dither: Shader = preload("res://src/Shaders/Gradients/Dithering.gdshader")
var shader_linear_dither: Shader = preload("res://src/Shaders/Gradients/LinearDithering.gdshader")
var shader_radial_dither: Shader = preload("res://src/Shaders/Gradients/RadialDithering.gdshader")
var confirmed := false
@ -123,14 +123,14 @@ func _on_TypeOptionButton_item_selected(index: int) -> void:
RADIAL:
shader = shader_radial
get_tree().set_group("gradient_radial", "visible", true)
STEP:
shader = shader_step
LINEAR_STEP:
shader = shader_linear_step
get_tree().set_group("gradient_step", "visible", true)
RADIAL_STEP:
shader = shader_radial_step
get_tree().set_group("gradient_radial_step", "visible", true)
DITHERING:
shader = shader_dither
LINEAR_DITHERING:
shader = shader_linear_dither
get_tree().set_group("gradient_dithering", "visible", true)
RADIAL_DITHERING:
shader = shader_radial_dither

View file

@ -65,7 +65,7 @@ margin_right = 278.0
margin_bottom = 20.0
mouse_default_cursor_shape = 2
text = "Linear"
items = [ "Linear", null, false, 0, null, "Radial", null, false, 1, null, "Step", null, false, 2, null, "Radial Step", null, false, 3, null, "Dithering", null, false, 4, null, "Radial Dithering", null, false, 5, null ]
items = [ "Linear", null, false, 0, null, "Radial", null, false, 1, null, "Linear Step", null, false, 2, null, "Radial Step", null, false, 3, null, "Linear Dithering", null, false, 4, null, "Radial Dithering", null, false, 5, null ]
selected = 0
[node name="ColorsLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]

View file

@ -34,7 +34,6 @@ margin_bottom = 392.0
[node name="DesaturateDialog" parent="." instance=ExtResource( 3 )]
[node name="OutlineDialog" parent="." instance=ExtResource( 13 )]
visible = false
margin_right = 217.0
margin_bottom = 106.0