mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:04:43 -04:00
Put checker backgrounds to almost all image effect dialog previews
Also made them inherit ImageEffect, resulting in much less and cleaner code. Only RotateImage remains. Partially addresses #206.
This commit is contained in:
parent
2af677016e
commit
f121c39ddc
13 changed files with 74 additions and 249 deletions
|
@ -12,6 +12,7 @@ var preview_image : Image
|
|||
var preview_texture : ImageTexture
|
||||
var preview : TextureRect
|
||||
var selection_checkbox : CheckBox
|
||||
var affect_option_button : OptionButton
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
|
@ -24,6 +25,8 @@ func _ready() -> void:
|
|||
connect("confirmed", self, "_confirmed")
|
||||
if selection_checkbox:
|
||||
selection_checkbox.connect("toggled", self, "_on_SelectionCheckBox_toggled")
|
||||
if affect_option_button:
|
||||
affect_option_button.connect("item_selected", self, "_on_AffectOptionButton_item_selected")
|
||||
|
||||
|
||||
func _about_to_show() -> void:
|
||||
|
@ -53,6 +56,10 @@ func _on_SelectionCheckBox_toggled(button_pressed : bool) -> void:
|
|||
update_preview()
|
||||
|
||||
|
||||
func _on_AffectOptionButton_item_selected(index : int) -> void:
|
||||
affect = index
|
||||
|
||||
|
||||
func update_preview() -> void:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue