mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:44:42 -04:00
Image preferences and its translations
This commit is contained in:
commit
7b0251fdfa
21 changed files with 223 additions and 26 deletions
|
@ -1,5 +1,9 @@
|
|||
extends ConfirmationDialog
|
||||
|
||||
onready var width_value = $VBoxContainer/OptionsContainer/WidthValue
|
||||
onready var height_value = $VBoxContainer/OptionsContainer/HeightValue
|
||||
onready var fill_color = $VBoxContainer/OptionsContainer/FillColor
|
||||
|
||||
func _on_CreateNewImage_confirmed() -> void:
|
||||
var width : int = $VBoxContainer/OptionsContainer/WidthValue.value
|
||||
var height : int = $VBoxContainer/OptionsContainer/HeightValue.value
|
||||
|
@ -15,3 +19,8 @@ func _on_CreateNewImage_confirmed() -> void:
|
|||
Global.canvas.layers[0][0].fill(fill_color)
|
||||
Global.canvas.layers[0][0].lock()
|
||||
Global.canvas.update_texture(0)
|
||||
|
||||
func _on_CreateNewImage_about_to_show() -> void:
|
||||
width_value.value = Global.default_image_width
|
||||
height_value.value = Global.default_image_height
|
||||
fill_color.color = Global.default_fill_color
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue