1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00: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:
OverloadedOrama 2020-01-11 00:29:29 +02:00
parent 8b4c42a576
commit 50fa262a75
6 changed files with 13 additions and 12 deletions

View file

@ -6,9 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [v0.6.1] - Unreleased
### Added
- Italian translation - thanks to Marco Galli!
- Italian translation - thanks to Gaarco!
- In addition to the middle mouse button, you can now use `Space` to pan around the canvas.
- The ability to choose for which color the color picker does its job, the left or the right. (Issue #115)
- Default image settings are now in the Preferences - thanks to Gaarco!
### Changed
- When saving a .pxo file, the file path (along with the file name) gets remembered by the Export PNG file dialog path. (Issue #114)

View file

@ -41,7 +41,7 @@ func _ready() -> void:
if Global.config_cache.has_section_key("preferences", "default_fill_color"):
fill_color = Global.config_cache.get_value("preferences", "default_fill_color")
Global.is_default_image = !Global.is_default_image
sprite.create(size.x, size.y, false, Image.FORMAT_RGBA8)
sprite.fill(fill_color)
sprite.lock()

View file

@ -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")

View file

@ -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)

View file

@ -26,9 +26,9 @@ var theme_type := "Dark"
# warning-ignore:unused_class_variable
var is_default_image := true
# warning-ignore:unused_class_variable
var default_image_width := 32
var default_image_width := 64
# warning-ignore:unused_class_variable
var default_image_height := 32
var default_image_height := 64
# warning-ignore:unused_class_variable
var default_fill_color := Color(0, 0, 0, 0)
# warning-ignore:unused_class_variable

View file

@ -186,7 +186,7 @@ msgid "Trilinear"
msgstr "三線性"
msgid "Language"
msgstr "語言:"
msgstr "語言"
msgid "Themes"
msgstr "皮膚"
@ -195,7 +195,7 @@ msgid "Guides & Grid"
msgstr "輔助線與格線"
msgid "Language options"
msgstr "語言:"
msgstr "語言"
msgid "Theme options"
msgstr "格線設定"
@ -207,7 +207,7 @@ msgid "Color:"
msgstr "顏色:"
msgid "Guide color:"
msgstr "輔助線顏色"
msgstr "輔助線顏色:"
msgid "System Language"
msgstr "系統語言"