更新主题设定

pull/1/head
PJ568 10 months ago
parent 2ed9dd164c
commit 3c8c99fd7c

5
.gitignore vendored

@ -1,4 +1,5 @@
# Godot 4+ specific ignores
.godot/
Release/
/android/
/Release/
/android/
/key/

@ -1,11 +1,11 @@
id,zh,en,zht,jp,es
KEY_ABOUT,关于,About,關於,約,Acerca de
KEY_LICENSE,许可,License,許可証,ライセンス,Licencia
KEY_LICENSEDUNDER,568_Calc 项目遵循 MIT 协议。,568_Calc is licensed under the MIT \nlicense.,568_Calc 由 MIT 授權。,568_Calc は MIT ライセンスで取得済みです。,568_Calc está licenciado bajo la \nlicencia MIT.
KEY_WEBSITE,访问官网,Website,瀏覽官方網站,Web サイト,Visita el sitio web
KEY_SOURCE,访问源代码仓库,Source,瀏覽原始碼儲存庫,ソースコードリポジトリ,Visita el repositorio de código fuente
KEY_ABOUTMIT,关于 MIT 协议,About the MIT license,關於 MIT 許可證,MIT ライセンスについて,acerca de la licencia MIT
KEY_OTHERLICENSE,开放源代码库,Open Source Library,開放源代碼庫,オープンソースライブラリ,otros licencia
KEY_LICENSEDUNDER,568_Calc 项目遵循 MIT 协议。,568_Calc is licensed under the MIT license.,568_Calc 由 MIT 授權。,568_Calc は MIT ライセンスで取得済みです。,568_Calc está licenciado bajo la licencia MIT.
KEY_WEBSITE,访问官网,Website,瀏覽官方網站,Web サイト,Sitio web
KEY_SOURCE,访问源代码仓库,Source,瀏覽原始碼儲存庫,ソースコードリポジトリ,Repositorio de código fuente
KEY_ABOUTMIT,关于 MIT 协议,About the MIT license,關於 MIT 許可證,MIT ライセンスについて,Acerca de la licencia MIT
KEY_OTHERLICENSE,开放源代码库,Open Source Library,開放源代碼庫,オープンソースライブラリ,Otros licencia
KEY_LANGUANGE,语言,Language,語言,言語,Idioma
KEY_SETTING,设置,Configuration,設置,設定,Configuración
KEY_SYSLANG,自动检测,Auto,自動,自動,Automático
1 id zh en zht jp es
2 KEY_ABOUT 关于 About 關於 Acerca de
3 KEY_LICENSE 许可 License 許可証 ライセンス Licencia
4 KEY_LICENSEDUNDER 568_Calc 项目遵循 MIT 协议。 568_Calc is licensed under the MIT \nlicense. 568_Calc is licensed under the MIT license. 568_Calc 由 MIT 授權。 568_Calc は MIT ライセンスで取得済みです。 568_Calc está licenciado bajo la \nlicencia MIT. 568_Calc está licenciado bajo la licencia MIT.
5 KEY_WEBSITE 访问官网 Website 瀏覽官方網站 Web サイト Visita el sitio web Sitio web
6 KEY_SOURCE 访问源代码仓库 Source 瀏覽原始碼儲存庫 ソースコードリポジトリ Visita el repositorio de código fuente Repositorio de código fuente
7 KEY_ABOUTMIT 关于 MIT 协议 About the MIT license 關於 MIT 許可證 MIT ライセンスについて acerca de la licencia MIT Acerca de la licencia MIT
8 KEY_OTHERLICENSE 开放源代码库 Open Source Library 開放源代碼庫 オープンソースライブラリ otros licencia Otros licencia
9 KEY_LANGUANGE 语言 Language 語言 言語 Idioma
10 KEY_SETTING 设置 Configuration 設置 設定 Configuración
11 KEY_SYSLANG 自动检测 Auto 自動 自動 Automático

@ -0,0 +1,17 @@
[remap]
importer="csv_translation"
type="Translation"
uid="uid://cw2gquc52qt1o"
[deps]
files=["res://Assets/Lang/国际化.zh.translation", "res://Assets/Lang/国际化.en.translation", "res://Assets/Lang/国际化.zht.translation", "res://Assets/Lang/国际化.jp.translation", "res://Assets/Lang/国际化.es.translation"]
source_file="res://Assets/Lang/国际化.csv"
dest_files=["res://Assets/Lang/国际化.zh.translation", "res://Assets/Lang/国际化.en.translation", "res://Assets/Lang/国际化.zht.translation", "res://Assets/Lang/国际化.jp.translation", "res://Assets/Lang/国际化.es.translation"]
[params]
compress=true
delimiter=0

@ -1,17 +0,0 @@
[remap]
importer="csv_translation"
type="Translation"
uid="uid://cw2gquc52qt1o"
[deps]
files=["res://Assets/国际化.zh.translation", "res://Assets/国际化.en.translation", "res://Assets/国际化.zht.translation", "res://Assets/国际化.jp.translation", "res://Assets/国际化.es.translation"]
source_file="res://Assets/国际化.csv"
dest_files=["res://Assets/国际化.zh.translation", "res://Assets/国际化.en.translation", "res://Assets/国际化.zht.translation", "res://Assets/国际化.jp.translation", "res://Assets/国际化.es.translation"]
[params]
compress=true
delimiter=0

Binary file not shown.

Binary file not shown.

@ -0,0 +1,8 @@
[gd_resource type="Theme" load_steps=2 format=3 uid="uid://dgo8n2bba7imi"]
[ext_resource type="FontFile" uid="uid://c3lj58l2mmrld" path="res://Font/SmileySans-Oblique.ttf" id="1_g6qls"]
[resource]
default_base_scale = 2.0
default_font = ExtResource("1_g6qls")
default_font_size = 48

@ -0,0 +1,5 @@
[gd_resource type="Theme" format=3 uid="uid://bnko5kkgxl0s0"]
[resource]
default_base_scale = 2.0
default_font_size = 48

@ -1,17 +1,20 @@
extends Node
const CONFIG_PATH = "user://settings.cfg"
const CONFIG_PATH := "user://settings.cfg"
#var 应该使用字体 := false
func _ready():
#根据语言切换主题(读取设置并更改语言())
()
()
func (index):
if index == 0:
()
return ()
elif index == 1:
TranslationServer.set_locale("zh")
elif index == 2:
@ -29,49 +32,62 @@ func 切换语言(index):
func (index):
var file = ConfigFile.new()
var file := ConfigFile.new()
file.set_value("General", "Language", index)
var error = file.save(CONFIG_PATH)
var error := file.save(CONFIG_PATH)
if error != OK:
push_error("Failed to save config: %d" % error)
func (index):
((index))
return ((index))
func ():
var file = ConfigFile.new()
func ():
var file := ConfigFile.new()
if FileAccess.file_exists(CONFIG_PATH):
var error = file.load(CONFIG_PATH)
var error := file.load(CONFIG_PATH)
if error == OK:
return (file.get_value("General", "Language", 0))
return file.get_value("General", "Language", 0)
else:
push_warning("Failed to load config: %d", error)
return (0)
else:
()
return ()
func ():
return (())
func ():
var locale = OS.get_locale()
var locale := OS.get_locale()
if locale == "zh_CN":
return (1)
(1)
elif locale == "zh_TW":
return (2)
(2)
elif locale == "en":
return (3)
(3)
elif locale == "jp":
return (4)
(4)
elif locale == "es":
return (5)
(5)
else:
return (3)
(3)
return 0
func ():
(0)
return (0)
#func 根据语言切换主题(index):
#if index == 1 or index == 3 or index == 5:
#应该使用字体 = true
##propagate_call(“update”)
#else:
#应该使用字体 = false
func ():
pass
var sys_name := OS.get_name()
if sys_name != "Android" and sys_name != "iOS" and sys_name != "Web":
get_viewport().size = Vector2(DisplayServer.screen_get_dpi() * 3.5, DisplayServer.screen_get_dpi() * 6.2)

@ -1,8 +1,11 @@
extends Control
#@onready var 本场景 = $"面板"
#func _ready():
#TranslationServer.set_locale("es")
#本场景.set("theme", "res://Assets/样式/得意黑字体.tres")
@warning_ignore("unused_parameter")

@ -1,6 +1,7 @@
extends Control
#@onready var 本场景 = $"面板"
@onready var = $"面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2/语言"
@ -11,7 +12,8 @@ func _unhandled_input(event) -> void:
func _ready():
.selected = Global.()
#本场景.set("theme", "res://Assets/样式/得意黑字体.tres")
.selected = Global.()
func _on__pressed():

@ -35,8 +35,8 @@ application/modify_resources=true
application/icon=""
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version="0.0.0.2"
application/product_version="0.0.0.2"
application/file_version="0.0.0.3"
application/product_version="0.0.0.3"
application/company_name="PJ568"
application/product_name="568_Calc"
application/file_description=""
@ -143,7 +143,7 @@ progressive_web_app/background_color=Color(0, 0, 0, 1)
name="Android"
platform="Android"
runnable=false
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
@ -168,7 +168,7 @@ architectures/arm64-v8a=true
architectures/x86=false
architectures/x86_64=false
version/code=1
version/name="v0.0.0.2"
version/name="v0.0.0.3"
package/unique_name="PJ568.Calculator"
package/name=""
package/signed=true

@ -26,7 +26,7 @@ Global="*res://Scripts/全局.gd"
[display]
window/size/viewport_width=720
window/size/viewport_height=1221
window/size/viewport_height=1220
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
window/handheld/orientation=1
@ -156,7 +156,7 @@ window/handheld/orientation=1
[internationalization]
locale/translations=PackedStringArray("res://Assets/国际化.en.translation", "res://Assets/国际化.es.translation", "res://Assets/国际化.jp.translation", "res://Assets/国际化.ko.translation", "res://Assets/国际化.zh.translation", "res://Assets/国际化.zht.translation")
locale/translations=PackedStringArray("res://Assets/Lang/国际化.cht.translation", "res://Assets/Lang/国际化.en.translation", "res://Assets/Lang/国际化.es.translation", "res://Assets/Lang/国际化.jp.translation", "res://Assets/Lang/国际化.ko.translation", "res://Assets/Lang/国际化.zh.translation", "res://Assets/Lang/国际化.zht.translation")
[rendering]

@ -1,6 +1,6 @@
[gd_scene load_steps=9 format=3 uid="uid://g4du8c33vab5"]
[ext_resource type="FontFile" uid="uid://c3lj58l2mmrld" path="res://Font/SmileySans-Oblique.ttf" id="1_g8qlb"]
[ext_resource type="Theme" uid="uid://dgo8n2bba7imi" path="res://Assets/样式/得意黑字体.tres" id="1_3h7g3"]
[ext_resource type="Script" path="res://Scripts/主界面.gd" id="1_y82yl"]
[ext_resource type="StyleBox" uid="uid://dyccpjybwwek3" path="res://Assets/样式/正常功能.tres" id="2_asaep"]
[ext_resource type="StyleBox" uid="uid://dgcskobwmhc74" path="res://Assets/样式/正常等于.tres" id="2_xhj82"]
@ -20,6 +20,7 @@ grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme = ExtResource("1_3h7g3")
script = ExtResource("1_y82yl")
[node name="面板" type="Panel" parent="."]
@ -65,14 +66,12 @@ layout_mode = 2
[node name="上个工作区" type="Label" parent="面板/背景色/屏键容器/结果显示容器/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.737255, 0.666667, 0.643137, 1)
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 48
horizontal_alignment = 2
[node name="工作区" type="Label" parent="面板/背景色/屏键容器/结果显示容器/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.933333, 0.933333, 0.933333, 1)
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 128
text = "0"
horizontal_alignment = 2
@ -100,7 +99,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -111,7 +109,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -122,7 +119,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -133,7 +129,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -144,7 +139,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -155,7 +149,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -166,7 +159,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -177,7 +169,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -188,7 +179,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -199,7 +189,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -210,7 +199,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -221,7 +209,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -232,7 +219,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -243,7 +229,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -254,7 +239,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -265,7 +249,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -281,7 +264,6 @@ custom_minimum_size = Vector2(355, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -292,7 +274,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7cxsl")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -303,7 +284,6 @@ custom_minimum_size = Vector2(175, 175)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 5
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_xhj82")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
@ -326,7 +306,6 @@ alignment = 2
[node name="关于" type="Button" parent="面板/背景色/MarginContainer/顶按钮容器"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 32
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_yp77b")

@ -1,11 +1,14 @@
[gd_scene load_steps=5 format=3 uid="uid://b13pa4q4ep2mc"]
[gd_scene load_steps=7 format=3 uid="uid://b13pa4q4ep2mc"]
[ext_resource type="FontFile" uid="uid://c3lj58l2mmrld" path="res://Font/SmileySans-Oblique.ttf" id="1_8vcuf"]
[ext_resource type="Script" path="res://Scripts/关于.gd" id="1_ib74w"]
[ext_resource type="Theme" uid="uid://bnko5kkgxl0s0" path="res://Assets/样式/默认放大字.tres" id="1_kg2bk"]
[ext_resource type="StyleBox" uid="uid://diyafdj4q00tg" path="res://Assets/样式/正常数字.tres" id="2_qbs1x"]
[ext_resource type="Theme" uid="uid://dgo8n2bba7imi" path="res://Assets/样式/得意黑字体.tres" id="2_ssjte"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cx36f"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_f2tr4"]
[node name="关于" type="Control"]
layout_mode = 3
anchors_preset = 15
@ -13,6 +16,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_kg2bk")
script = ExtResource("1_ib74w")
[node name="面板" type="Panel" parent="."]
@ -55,7 +59,6 @@ offset_bottom = 1157.0
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 96
text = "KEY_ABOUT"
horizontal_alignment = 1
@ -67,7 +70,6 @@ layout_mode = 2
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
custom_minimum_size = Vector2(656, 0)
layout_mode = 2
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 64
text = "KEY_LICENSE"
vertical_alignment = 1
@ -76,17 +78,16 @@ text_overrun_behavior = 2
[node name="正文" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
custom_minimum_size = Vector2(656, 0)
layout_mode = 2
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
text = "KEY_LICENSEDUNDER"
vertical_alignment = 1
autowrap_mode = 3
[node name="网页" type="LinkButton" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "KEY_WEBSITE"
@ -97,7 +98,6 @@ custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "KEY_SOURCE"
@ -108,9 +108,8 @@ custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
theme_override_styles/focus = SubResource("StyleBoxEmpty_f2tr4")
text = "KEY_ABOUTMIT"
uri = "https://mit-license.org/"
@ -120,7 +119,6 @@ layout_mode = 2
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和按钮分隔"]
custom_minimum_size = Vector2(656, 0)
layout_mode = 2
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 64
text = "KEY_OTHERLICENSE"
vertical_alignment = 1
@ -135,7 +133,6 @@ custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "568_Calc"
@ -146,7 +143,6 @@ custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "Godot"
@ -157,18 +153,22 @@ custom_minimum_size = Vector2(256, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 6
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 48
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "smiley-sans"
uri = "https://github.com/atelier-anchor/smiley-sans"
[node name="版本" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
layout_mode = 2
theme = ExtResource("2_ssjte")
text = "v0.0.0.3"
horizontal_alignment = 1
[node name="返回" type="Button" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
custom_minimum_size = Vector2(175, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 8
theme_override_fonts/font = ExtResource("1_8vcuf")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("2_qbs1x")
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")

@ -0,0 +1,102 @@
[gd_scene load_steps=5 format=3 uid="uid://c85gt4vl44w2d"]
[ext_resource type="Script" path="res://Scripts/设置.gd" id="1_lygu4"]
[ext_resource type="Theme" uid="uid://bnko5kkgxl0s0" path="res://Assets/样式/默认放大字.tres" id="1_pxdtm"]
[ext_resource type="StyleBox" uid="uid://diyafdj4q00tg" path="res://Assets/样式/正常数字.tres" id="3_7nmxr"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cx36f"]
[node name="设置" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_pxdtm")
script = ExtResource("1_lygu4")
[node name="面板" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="背景色" type="ColorRect" parent="面板"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.129412, 0.129412, 0.129412, 1)
[node name="MarginContainer" type="MarginContainer" parent="面板/背景色"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 32
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 32
theme_override_constants/margin_bottom = 32
[node name="色" type="ColorRect" parent="面板/背景色/MarginContainer"]
layout_mode = 2
color = Color(0.196078, 0.196078, 0.196078, 1)
[node name="内容按钮分隔" type="VBoxContainer" parent="面板/背景色/MarginContainer/色"]
layout_mode = 2
offset_right = 656.0
offset_bottom = 1157.0
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
layout_mode = 2
theme_override_font_sizes/font_size = 96
text = "KEY_SETTING"
horizontal_alignment = 1
vertical_alignment = 1
text_overrun_behavior = 2
[node name="正文和标题分隔2" type="VBoxContainer" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
layout_mode = 2
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
layout_mode = 2
theme_override_font_sizes/font_size = 64
text = "KEY_LANGUANGE"
vertical_alignment = 1
text_overrun_behavior = 2
[node name="语言" type="OptionButton" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
layout_mode = 2
item_count = 6
popup/item_0/text = "KEY_SYSLANG"
popup/item_0/id = 0
popup/item_1/text = "简体中文"
popup/item_1/id = 1
popup/item_2/text = "繁體中文(臺灣)"
popup/item_2/id = 2
popup/item_3/text = "English"
popup/item_3/id = 3
popup/item_4/text = "日本語"
popup/item_4/id = 4
popup/item_5/text = "Español"
popup/item_5/id = 5
[node name="返回" type="Button" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
custom_minimum_size = Vector2(175, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 8
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7nmxr")
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")
text = "←"
[connection signal="item_selected" from="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2/语言" to="." method="_on_语言_item_selected"]
[connection signal="pressed" from="面板/背景色/MarginContainer/色/内容按钮分隔/返回" to="." method="_on_返回_pressed"]

@ -1,7 +1,7 @@
[gd_scene load_steps=5 format=3 uid="uid://c85gt4vl44w2d"]
[ext_resource type="Script" path="res://Scripts/设置.gd" id="1_lygu4"]
[ext_resource type="FontFile" uid="uid://c3lj58l2mmrld" path="res://Font/SmileySans-Oblique.ttf" id="2_fcls7"]
[ext_resource type="Theme" uid="uid://bnko5kkgxl0s0" path="res://Assets/样式/默认放大字.tres" id="1_pxdtm"]
[ext_resource type="StyleBox" uid="uid://diyafdj4q00tg" path="res://Assets/样式/正常数字.tres" id="3_7nmxr"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cx36f"]
@ -13,6 +13,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_pxdtm")
script = ExtResource("1_lygu4")
[node name="面板" type="Panel" parent="."]
@ -55,7 +56,6 @@ offset_bottom = 1157.0
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_fcls7")
theme_override_font_sizes/font_size = 96
text = "KEY_SETTING"
horizontal_alignment = 1
@ -67,7 +67,6 @@ layout_mode = 2
[node name="标题" type="Label" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_fcls7")
theme_override_font_sizes/font_size = 64
text = "KEY_LANGUANGE"
vertical_alignment = 1
@ -75,7 +74,6 @@ text_overrun_behavior = 2
[node name="语言" type="OptionButton" parent="面板/背景色/MarginContainer/色/内容按钮分隔/正文和标题分隔2"]
layout_mode = 2
theme_override_font_sizes/font_size = 48
item_count = 6
popup/item_0/text = "KEY_SYSLANG"
popup/item_0/id = 0
@ -95,7 +93,6 @@ custom_minimum_size = Vector2(175, 64)
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 8
theme_override_fonts/font = ExtResource("2_fcls7")
theme_override_font_sizes/font_size = 64
theme_override_styles/normal = ExtResource("3_7nmxr")
theme_override_styles/focus = SubResource("StyleBoxEmpty_cx36f")

Loading…
Cancel
Save