screen scale of hud
This commit is contained in:
parent
3ddacb0983
commit
3cd26abcf6
@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://cbs0x36e3ranm"]
|
||||
|
||||
[ext_resource type="MeshLibrary" uid="uid://bo7ir5us230sa" path="res://assets/tilesets/tileset.tres" id="1_l447d"]
|
||||
[ext_resource type="MeshLibrary" uid="uid://dwo1m72yajrb1" path="res://assets/tilesets/tileset.tres" id="1_l447d"]
|
||||
[ext_resource type="PackedScene" uid="uid://b5gb5paiupum" path="res://player/player.tscn" id="2_ojnju"]
|
||||
[ext_resource type="AudioStream" uid="uid://bba7tiqty57ek" path="res://music/jazz.ogg" id="3_brvx4"]
|
||||
[ext_resource type="AudioStream" uid="uid://byo1w5vecks0m" path="res://music/jazz.ogg" id="3_brvx4"]
|
||||
[ext_resource type="PackedScene" uid="uid://c2casdi4d2o3j" path="res://shaders/water_plane.tscn" id="3_ga7wg"]
|
||||
|
||||
[sub_resource type="Environment" id="Environment_lo4sd"]
|
||||
|
@ -1,12 +1,15 @@
|
||||
[gd_scene load_steps=20 format=3 uid="uid://b5gb5paiupum"]
|
||||
|
||||
[ext_resource type="Script" path="res://player/player.cs" id="1_of2l4"]
|
||||
[ext_resource type="AudioStream" uid="uid://dye3nhm41yk6r" path="res://audio/chatter.wav" id="2_sa1qd"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8dcqkmytnyay" path="res://audio/btn.wav" id="3_00x5l"]
|
||||
[ext_resource type="AudioStream" uid="uid://07ben02qe8yc" path="res://audio/chatter.wav" id="2_sa1qd"]
|
||||
[ext_resource type="AudioStream" uid="uid://ds7ec1n3pytnr" path="res://audio/btn.wav" id="3_00x5l"]
|
||||
|
||||
[sub_resource type="CameraAttributesPhysical" id="CameraAttributesPhysical_1ejpb"]
|
||||
frustum_near = 0.032
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_pws5q"]
|
||||
font_size = 28
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_y5odr"]
|
||||
fill_to = Vector2(0.858974, 0.615385)
|
||||
|
||||
@ -60,101 +63,161 @@ height = 255
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_mtv4x"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_pws5q"]
|
||||
font_size = 28
|
||||
|
||||
[node name="player" type="Camera3D" node_paths=PackedStringArray("_con", "_mousePosLabel", "_cursorPosLabel", "_cursor", "_cursorPoint", "_nuke", "_pr", "_kash", "_chatter", "_sndChtr", "_sndBtn", "_tmrChtr", "_tmrCashGen")]
|
||||
attributes = SubResource("CameraAttributesPhysical_1ejpb")
|
||||
script = ExtResource("1_of2l4")
|
||||
_con = NodePath("Debug info/Label")
|
||||
_mousePosLabel = NodePath("Debug info/mousePos")
|
||||
_cursorPosLabel = NodePath("Debug info/cursorPointPos")
|
||||
_con = NodePath("HUD/Debug info/Label")
|
||||
_mousePosLabel = NodePath("HUD/Debug info/mousePos")
|
||||
_cursorPosLabel = NodePath("HUD/Debug info/cursorPointPos")
|
||||
_cursor = NodePath("cursor")
|
||||
_cursorPoint = NodePath("cursorPoint")
|
||||
_nuke = NodePath("NukeBar")
|
||||
_pr = NodePath("PrBar")
|
||||
_kash = NodePath("KashBar")
|
||||
_chatter = NodePath("lbl_Chatter")
|
||||
_nuke = NodePath("HUD/Buttons and info/NukeBar")
|
||||
_pr = NodePath("HUD/Buttons and info/PrBar")
|
||||
_kash = NodePath("HUD/Buttons and info/KashBar")
|
||||
_chatter = NodePath("HUD/lbl_Chatter")
|
||||
_sndChtr = NodePath("snd_Chatter")
|
||||
_sndBtn = NodePath("snd_Button")
|
||||
_tmrChtr = NodePath("tmr_Chatter")
|
||||
_tmrCashGen = NodePath("tmr_kash")
|
||||
|
||||
[node name="Debug info" type="Control" parent="."]
|
||||
visible = false
|
||||
[node name="HUD" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Debug info" type="Control" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
offset_left = 33.0
|
||||
offset_top = 24.0
|
||||
offset_right = 33.0
|
||||
offset_bottom = 24.0
|
||||
|
||||
[node name="mousePos" type="Label" parent="Debug info"]
|
||||
layout_mode = 0
|
||||
offset_left = 314.0
|
||||
offset_top = 228.0
|
||||
offset_right = 403.0
|
||||
offset_bottom = 254.0
|
||||
[node name="mousePos" type="Label" parent="HUD/Debug info"]
|
||||
layout_mode = 1
|
||||
offset_top = 27.0
|
||||
offset_right = 89.0
|
||||
offset_bottom = 53.0
|
||||
text = "Eat ze caca."
|
||||
|
||||
[node name="cursorPointPos" type="Label" parent="Debug info"]
|
||||
layout_mode = 0
|
||||
offset_left = 314.0
|
||||
offset_top = 195.0
|
||||
offset_right = 403.0
|
||||
offset_bottom = 221.0
|
||||
[node name="cursorPointPos" type="Label" parent="HUD/Debug info"]
|
||||
layout_mode = 1
|
||||
offset_top = 60.0
|
||||
offset_right = 89.0
|
||||
offset_bottom = 86.0
|
||||
text = "Eat ze caca."
|
||||
|
||||
[node name="Label" type="Label" parent="Debug info"]
|
||||
layout_mode = 0
|
||||
offset_left = 313.0
|
||||
offset_top = 156.0
|
||||
offset_right = 402.0
|
||||
offset_bottom = 182.0
|
||||
[node name="Label" type="Label" parent="HUD/Debug info"]
|
||||
layout_mode = 1
|
||||
offset_right = 89.0
|
||||
offset_bottom = 26.0
|
||||
text = "Eat ze caca."
|
||||
|
||||
[node name="btn_boom" type="Button" parent="."]
|
||||
offset_left = 1772.0
|
||||
offset_top = 926.0
|
||||
offset_right = 1904.0
|
||||
offset_bottom = 1058.0
|
||||
[node name="lbl_Chatter" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -221.0
|
||||
offset_top = -121.5
|
||||
offset_right = 221.0
|
||||
offset_bottom = 121.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
label_settings = SubResource("LabelSettings_pws5q")
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="Buttons and info" type="Control" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="btn_boom" type="Button" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -132.0
|
||||
offset_top = -132.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "Nuke Enemy"
|
||||
icon = SubResource("GradientTexture2D_y5odr")
|
||||
flat = true
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="btn_nukes" type="Button" parent="."]
|
||||
offset_left = 1637.0
|
||||
offset_top = 926.0
|
||||
offset_right = 1769.0
|
||||
offset_bottom = 1058.0
|
||||
[node name="btn_nukes" type="Button" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -265.0
|
||||
offset_top = -132.0
|
||||
offset_right = -133.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "BDE"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="btn_pr" type="Button" parent="."]
|
||||
offset_left = 1502.0
|
||||
offset_top = 926.0
|
||||
offset_right = 1634.0
|
||||
offset_bottom = 1058.0
|
||||
[node name="btn_pr" type="Button" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -402.0
|
||||
offset_top = -132.0
|
||||
offset_right = -270.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = ":)
|
||||
"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="btn_kashcow" type="Button" parent="."]
|
||||
offset_left = 1366.0
|
||||
offset_top = 926.0
|
||||
offset_right = 1498.0
|
||||
offset_bottom = 1058.0
|
||||
[node name="btn_kashcow" type="Button" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -538.0
|
||||
offset_top = -132.0
|
||||
offset_right = -406.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "$"
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
|
||||
[node name="NukeBar" type="TextureProgressBar" parent="."]
|
||||
offset_left = 1817.0
|
||||
offset_top = 664.0
|
||||
offset_right = 1841.0
|
||||
offset_bottom = 919.0
|
||||
[node name="NukeBar" type="TextureProgressBar" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -24.0
|
||||
offset_top = -392.0
|
||||
offset_bottom = -137.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
value = 50.0
|
||||
rounded = true
|
||||
allow_greater = true
|
||||
@ -163,11 +226,19 @@ fill_mode = 3
|
||||
texture_under = SubResource("GradientTexture2D_2xkee")
|
||||
texture_progress = SubResource("GradientTexture2D_d5w6a")
|
||||
|
||||
[node name="PrBar" type="TextureProgressBar" parent="."]
|
||||
offset_left = 1845.0
|
||||
offset_top = 664.0
|
||||
offset_right = 1869.0
|
||||
offset_bottom = 919.0
|
||||
[node name="PrBar" type="TextureProgressBar" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -51.0
|
||||
offset_top = -392.0
|
||||
offset_right = -27.0
|
||||
offset_bottom = -137.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
value = 50.0
|
||||
rounded = true
|
||||
allow_greater = true
|
||||
@ -176,11 +247,19 @@ fill_mode = 3
|
||||
texture_under = SubResource("GradientTexture2D_7myfq")
|
||||
texture_progress = SubResource("GradientTexture2D_kdame")
|
||||
|
||||
[node name="KashBar" type="TextureProgressBar" parent="."]
|
||||
offset_left = 1873.0
|
||||
offset_top = 664.0
|
||||
offset_right = 1897.0
|
||||
offset_bottom = 919.0
|
||||
[node name="KashBar" type="TextureProgressBar" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -81.0
|
||||
offset_top = -392.0
|
||||
offset_right = -57.0
|
||||
offset_bottom = -137.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
max_value = 1000.0
|
||||
value = 5.0
|
||||
rounded = true
|
||||
@ -190,31 +269,56 @@ fill_mode = 3
|
||||
texture_under = SubResource("GradientTexture2D_18k81")
|
||||
texture_progress = SubResource("GradientTexture2D_nfg3s")
|
||||
|
||||
[node name="lbl_Nukes" type="Label" parent="."]
|
||||
offset_left = 1842.0
|
||||
offset_top = 757.0
|
||||
offset_right = 2107.0
|
||||
offset_bottom = 783.0
|
||||
[node name="lbl_Nukes" type="Label" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 2.0
|
||||
offset_top = -297.0
|
||||
offset_right = 267.0
|
||||
offset_bottom = -271.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
rotation = 1.5708
|
||||
text = "WMDs"
|
||||
text = "ARMS
|
||||
"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="lbl_PR" type="Label" parent="."]
|
||||
offset_left = 1869.0
|
||||
offset_top = 894.0
|
||||
offset_right = 1909.0
|
||||
offset_bottom = 920.0
|
||||
[node name="lbl_PR" type="Label" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -25.0
|
||||
offset_top = -178.0
|
||||
offset_right = 15.0
|
||||
offset_bottom = -152.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
rotation = 1.5708
|
||||
text = "PR"
|
||||
|
||||
[node name="lbl_Kash" type="Label" parent="."]
|
||||
offset_left = 1897.0
|
||||
offset_top = 891.0
|
||||
offset_right = 1937.0
|
||||
offset_bottom = 917.0
|
||||
[node name="lbl_Kash" type="Label" parent="HUD/Buttons and info"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -56.0
|
||||
offset_top = -181.0
|
||||
offset_right = -14.0
|
||||
offset_bottom = -155.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
rotation = 1.5708
|
||||
text = "M$"
|
||||
text = "KA$H"
|
||||
|
||||
[node name="cursor" type="RayCast3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.17786)
|
||||
@ -228,14 +332,6 @@ transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
mesh = SubResource("SphereMesh_mtv4x")
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
[node name="lbl_Chatter" type="Label" parent="."]
|
||||
offset_left = 314.0
|
||||
offset_top = 270.0
|
||||
offset_right = 756.0
|
||||
offset_bottom = 513.0
|
||||
label_settings = SubResource("LabelSettings_pws5q")
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="snd_Chatter" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_sa1qd")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user