mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-21 13:03:13 +00:00
expand button for flip/rotate
This commit is contained in:
parent
1791e964c2
commit
51189ac793
1 changed files with 8 additions and 2 deletions
|
@ -172,8 +172,9 @@ func update_brush() -> void:
|
||||||
_polylines = _create_polylines(_indicator)
|
_polylines = _create_polylines(_indicator)
|
||||||
$Brush/Type/Texture.texture = _brush_texture
|
$Brush/Type/Texture.texture = _brush_texture
|
||||||
$ColorInterpolation.visible = _brush.type in [Brushes.FILE, Brushes.RANDOM_FILE, Brushes.CUSTOM]
|
$ColorInterpolation.visible = _brush.type in [Brushes.FILE, Brushes.RANDOM_FILE, Brushes.CUSTOM]
|
||||||
$Flip.visible = _brush.type in [Brushes.FILE, Brushes.RANDOM_FILE, Brushes.CUSTOM]
|
$ExpandButton.visible = _brush.type in [Brushes.FILE, Brushes.RANDOM_FILE, Brushes.CUSTOM]
|
||||||
$Rotate.visible = _brush.type in [Brushes.FILE, Brushes.RANDOM_FILE, Brushes.CUSTOM]
|
if $ExpandButton.visible == false:
|
||||||
|
$ExpandButton.set_pressed(false)
|
||||||
|
|
||||||
|
|
||||||
func update_random_image() -> void:
|
func update_random_image() -> void:
|
||||||
|
@ -764,3 +765,8 @@ func _on_rotate_180_toggled(button_pressed: bool) -> void:
|
||||||
func _on_rotate_270_toggled(button_pressed: bool) -> void:
|
func _on_rotate_270_toggled(button_pressed: bool) -> void:
|
||||||
_brush_rotate_270 = button_pressed
|
_brush_rotate_270 = button_pressed
|
||||||
update_brush()
|
update_brush()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_expand_button_toggled(button_pressed: bool) -> void:
|
||||||
|
$Flip.visible = button_pressed
|
||||||
|
$Rotate.visible = button_pressed
|
||||||
|
|
Loading…
Add table
Reference in a new issue