mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-11 20:06:14 +01:00
push ui
This commit is contained in:
@@ -11,6 +11,7 @@ anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
custom_minimum_size = Vector2(15, 0)
|
||||
@@ -26,9 +27,11 @@ anchors_preset = 13
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -16.0
|
||||
offset_left = 20.0
|
||||
offset_right = 36.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset = Vector2(32, 0)
|
||||
theme_override_icons/grabber_disabled = ExtResource("1_cb7ct")
|
||||
editable = false
|
||||
scrollable = false
|
||||
@@ -38,8 +41,8 @@ anchors_preset = 13
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 16.0
|
||||
offset_right = 32.0
|
||||
offset_left = -36.0
|
||||
offset_right = -20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_icons/grabber_disabled = ExtResource("2_udann")
|
||||
|
||||
@@ -30,7 +30,7 @@ func _ready():
|
||||
p2_node = StartNode
|
||||
p2_train.get_node("CharacterBody3D").is_player1 = false
|
||||
p2_train.is_P1 = false
|
||||
p1_train.current_speed = 5
|
||||
p1_train.current_speed = 10
|
||||
p1_train.hit.connect(_on_hit_player)
|
||||
p2_train.hit.connect(_on_hit_player)
|
||||
|
||||
@@ -90,7 +90,7 @@ func _process(delta):
|
||||
if Input.is_action_pressed("test"):
|
||||
emit_signal("shoot")
|
||||
|
||||
$Control/VSlider.value = p1_train.current_distance
|
||||
$Control/VSlider2.value = p2_train.current_distance
|
||||
$Control/VSlider.value = p1_train.distance_from_start
|
||||
$Control/VSlider2.value = p2_train.distance_from_start
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user