mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 10:24:44 -04:00
Put default image width and height to 64, made minor changes in the About dialog and in the Chinese translation
This commit is contained in:
parent
8b4c42a576
commit
50fa262a75
6 changed files with 13 additions and 12 deletions
|
@ -20,11 +20,11 @@ func _ready() -> void:
|
|||
contributors.create_item(contributor_root).set_text(0, " Martin Zabinski")
|
||||
contributors.create_item(contributor_root).set_text(0, " azagaya")
|
||||
contributors.create_item(contributor_root).set_text(0, " Andreev Andrei")
|
||||
contributors.create_item(contributor_root).set_text(0, " Gaarco")
|
||||
contributors.create_item(contributor_root).set_text(0, " JunYouIntrovert")
|
||||
contributors.create_item(contributor_root).set_text(0, " Subhang Nanduri")
|
||||
contributors.create_item(contributor_root).set_text(0, " danielnaoexiste")
|
||||
contributors.create_item(contributor_root).set_text(0, " huskee")
|
||||
contributors.create_item(contributor_root).set_text(0, " Gaarco")
|
||||
|
||||
var donors_root := donors.create_item()
|
||||
donors.create_item(donors_root).set_text(0, " pcmxms")
|
||||
|
|
|
@ -52,7 +52,7 @@ func _ready() -> void:
|
|||
if guide is Guide:
|
||||
guide.default_color = Global.guide_color
|
||||
guide_color.color = Global.guide_color
|
||||
|
||||
|
||||
# Set default values for Image
|
||||
if Global.config_cache.has_section_key("preferences", "default_width"):
|
||||
var default_width = Global.config_cache.get_value("preferences", "default_width")
|
||||
|
@ -63,7 +63,7 @@ func _ready() -> void:
|
|||
var default_height = Global.config_cache.get_value("preferences", "default_height")
|
||||
Global.default_image_height = int(default_height)
|
||||
default_height_value.value = Global.default_image_height
|
||||
|
||||
|
||||
if Global.config_cache.has_section_key("preferences", "default_fill_color"):
|
||||
var fill_color = Global.config_cache.get_value("preferences", "default_fill_color")
|
||||
Global.default_fill_color = fill_color
|
||||
|
@ -247,7 +247,7 @@ func _on_GuideColor_color_changed(color : Color) -> void:
|
|||
guide.default_color = color
|
||||
Global.config_cache.set_value("preferences", "guide_color", color)
|
||||
Global.config_cache.save("user://cache.ini")
|
||||
|
||||
|
||||
func _on_ImageDefaultWidth_value_changed(value: float) -> void:
|
||||
Global.default_image_width = value
|
||||
Global.config_cache.set_value("preferences", "default_width", value)
|
||||
|
@ -257,7 +257,7 @@ func _on_ImageDefaultHeight_value_changed(value: float) -> void:
|
|||
Global.default_image_height = value
|
||||
Global.config_cache.set_value("preferences", "default_height", value)
|
||||
Global.config_cache.save("user://cache.ini")
|
||||
|
||||
|
||||
func _on_DefaultBackground_color_changed(color: Color) -> void:
|
||||
Global.default_fill_color = color
|
||||
Global.config_cache.set_value("preferences", "default_fill_color", color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue