mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Hid some color picker presets from GradientDialog
And removed some code for setting preview texture flags to 0. The flags are already being set in create_from_image()
This commit is contained in:
parent
94aa94a364
commit
8cca37e752
|
@ -12,10 +12,14 @@ onready var steps : SpinBox = $VBoxContainer/StepsContainer/StepSpinBox
|
|||
onready var direction : OptionButton = $VBoxContainer/DirectionContainer/DirectionOptionButton
|
||||
|
||||
|
||||
func _on_GradientDialog_about_to_show() -> void:
|
||||
func _ready() -> void:
|
||||
preview_image = Image.new()
|
||||
preview_texture = ImageTexture.new()
|
||||
preview_texture.flags = 0
|
||||
color1.get_picker().presets_visible = false
|
||||
color2.get_picker().presets_visible = false
|
||||
|
||||
|
||||
func _on_GradientDialog_about_to_show() -> void:
|
||||
current_cel = Global.current_project.frames[Global.current_project.current_frame].cels[Global.current_project.current_layer].image
|
||||
update_preview()
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ func _ready() -> void:
|
|||
current_cel = Image.new()
|
||||
preview_image = Image.new()
|
||||
preview_texture = ImageTexture.new()
|
||||
preview_texture.flags = 0
|
||||
|
||||
|
||||
func _on_HSVDialog_about_to_show() -> void:
|
||||
|
|
|
@ -50,22 +50,22 @@ func _on_SelectionCheckBox_toggled(button_pressed : bool) -> void:
|
|||
update_preview()
|
||||
|
||||
|
||||
func _on_ThickValue_value_changed(value : int):
|
||||
func _on_ThickValue_value_changed(value : int) -> void:
|
||||
thickness = value
|
||||
update_preview()
|
||||
|
||||
|
||||
func _on_OutlineColor_color_changed(_color : Color):
|
||||
func _on_OutlineColor_color_changed(_color : Color) -> void:
|
||||
color = _color
|
||||
update_preview()
|
||||
|
||||
|
||||
func _on_DiagonalCheckBox_toggled(button_pressed : bool):
|
||||
func _on_DiagonalCheckBox_toggled(button_pressed : bool) -> void:
|
||||
diagonal = button_pressed
|
||||
update_preview()
|
||||
|
||||
|
||||
func _on_InsideImageCheckBox_toggled(button_pressed : bool):
|
||||
func _on_InsideImageCheckBox_toggled(button_pressed : bool) -> void:
|
||||
inside_image = button_pressed
|
||||
update_preview()
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ var layer : Image
|
|||
|
||||
func _ready() -> void:
|
||||
texture = ImageTexture.new()
|
||||
texture.flags = 0
|
||||
aux_img = Image.new()
|
||||
$VBoxContainer/HBoxContainer2/OptionButton.add_item("Rotxel")
|
||||
$VBoxContainer/HBoxContainer2/OptionButton.add_item("Upscale, Rotate and Downscale")
|
||||
|
|
Loading…
Reference in a new issue