Fix unitframes, and the default ui scale settings.

This commit is contained in:
Relintai 2021-02-21 17:31:43 +01:00
parent 2c8a120b8e
commit 73ae3000b9
3 changed files with 36 additions and 2 deletions

View File

@ -209,8 +209,8 @@ window/stretch/mode="2d"
window/stretch/aspect="expand"
mouse_cursor/sensitivity=0.9
window/size/viewport_scale=100
window/size/ui_scale=1.2
window/size/ui_scale_touch=1.0
window/size/ui_scale=1.0
window/size/ui_scale_touch=1.2
[ess]

View File

@ -0,0 +1,24 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://player/Unitframes.gd" type="Script" id=2]
[ext_resource path="res://ui/unitframes/UnitframeBase.tscn" type="PackedScene" id=6]
[ext_resource path="res://ui/unitframes/TargetUnitframe.tscn" type="PackedScene" id=7]
[node name="Unitframes" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 1.0
margin_right = 1.0
mouse_filter = 2
script = ExtResource( 2 )
__meta__ = {
"_edit_lock_": true
}
player_unit_frame_path = NodePath("PlayerUnitFrame")
target_unit_frame_path = NodePath("TargetUnitframe")
[node name="PlayerUnitFrame" parent="." instance=ExtResource( 6 )]
margin_right = 151.0
[node name="TargetUnitframe" parent="." instance=ExtResource( 7 )]
visible = false

View File

@ -0,0 +1,10 @@
[gd_resource type="Resource" load_steps=3 format=2]
[ext_resource path="res://scripts/game_modules/ui_gui_child_module.gd" type="Script" id=1]
[ext_resource path="res://ui/unitframes/Unitframes.tscn" type="PackedScene" id=2]
[resource]
script = ExtResource( 1 )
enabled = true
scene = ExtResource( 2 )
hide = false