!
This commit is contained in:
@@ -41,7 +41,7 @@ public partial class player : Camera3D
|
||||
{
|
||||
get => _chatter.Get("text").ToString(); set
|
||||
{
|
||||
if (!(bool)_tmrChtr.Get("is_stopped") && value != "")
|
||||
if (value != "")
|
||||
_sndChtr.Play();
|
||||
_chatter.Set("text", value);
|
||||
_tmrChtr.Start();
|
||||
@@ -62,7 +62,9 @@ public partial class player : Camera3D
|
||||
}
|
||||
_tmrChtr.Start();
|
||||
_tmrChtr.Timeout += () => Chatter = "";
|
||||
_tmrCashGen.Timeout += MakeMoney;
|
||||
_tmrCashGen.Timeout += MakeMoney;
|
||||
|
||||
Chatter = "The enemy is stockpiling weapons of mass destruction.";
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=20 format=3 uid="uid://b5gb5paiupum"]
|
||||
[gd_scene load_steps=21 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"]
|
||||
@@ -61,6 +61,9 @@ gradient = SubResource("Gradient_od2su")
|
||||
width = 24
|
||||
height = 255
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_adeuk"]
|
||||
font_size = 12
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_mtv4x"]
|
||||
|
||||
[node name="player" type="Camera3D" node_paths=PackedStringArray("_con", "_mousePosLabel", "_cursorPosLabel", "_cursor", "_cursorPoint", "_nuke", "_pr", "_kash", "_chatter", "_sndChtr", "_sndBtn", "_tmrChtr", "_tmrCashGen")]
|
||||
@@ -129,7 +132,6 @@ offset_right = 221.0
|
||||
offset_bottom = 121.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "The enemy is stockpiling weapons of mass destruction."
|
||||
label_settings = SubResource("LabelSettings_pws5q")
|
||||
autowrap_mode = 3
|
||||
|
||||
@@ -321,6 +323,24 @@ grow_vertical = 0
|
||||
rotation = 1.5708
|
||||
text = "KA$H"
|
||||
|
||||
[node name="Desc" type="Label" parent="HUD"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -535.0
|
||||
offset_top = -194.0
|
||||
offset_right = -134.0
|
||||
offset_bottom = -134.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "Kash Flow: +2M$/sec. PR: +10%. Mtons: +10.
|
||||
Cost: 6M$. Cost: 5M$. PR: -5%.
|
||||
Cost: 30M$."
|
||||
label_settings = SubResource("LabelSettings_adeuk")
|
||||
|
||||
[node name="cursor" type="RayCast3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.17786)
|
||||
target_position = Vector3(0, 0, -999)
|
||||
@@ -335,6 +355,8 @@ skeleton = NodePath("../..")
|
||||
|
||||
[node name="snd_Chatter" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_sa1qd")
|
||||
volume_db = -20.771
|
||||
pitch_scale = 0.88
|
||||
|
||||
[node name="snd_Button" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_00x5l")
|
||||
|
Reference in New Issue
Block a user