forked from xiangwang25/whale-town-front-v2
fix: configure Chinese font across all UI
This commit is contained in:
@@ -40,6 +40,10 @@ window/size/viewport_height=1440
|
|||||||
window/stretch/mode="canvas_items"
|
window/stretch/mode="canvas_items"
|
||||||
window/stretch/aspect="expand"
|
window/stretch/aspect="expand"
|
||||||
|
|
||||||
|
[gui]
|
||||||
|
|
||||||
|
theme/custom_font="res://assets/fonts/msyh.ttc"
|
||||||
|
|
||||||
[input]
|
[input]
|
||||||
|
|
||||||
move_left={
|
move_left={
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[gd_scene load_steps=2 format=3]
|
[gd_scene load_steps=3 format=3]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scenes/ui/PlayerHud.gd" id="1"]
|
[ext_resource type="Script" path="res://scenes/ui/PlayerHud.gd" id="1"]
|
||||||
|
[ext_resource type="Theme" path="res://assets/ui/world_text_theme.tres" id="2_theme"]
|
||||||
|
|
||||||
[node name="PlayerHud" type="Control"]
|
[node name="PlayerHud" type="Control"]
|
||||||
layout_mode = 3
|
layout_mode = 3
|
||||||
@@ -10,4 +11,5 @@ anchor_bottom = 1.0
|
|||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
|
theme = ExtResource("2_theme")
|
||||||
script = ExtResource("1")
|
script = ExtResource("1")
|
||||||
|
|||||||
Reference in New Issue
Block a user