Playtesters credits
This commit is contained in:
parent
211cf8f9c2
commit
6087d5b73e
4 changed files with 72 additions and 0 deletions
|
@ -116,4 +116,13 @@ position = Vector2(363, 260)
|
|||
scale = Vector2(0.239125, 0.239125)
|
||||
texture = ExtResource("5_y641b")
|
||||
|
||||
[node name="playtesterButton" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 538.0
|
||||
offset_top = 501.0
|
||||
offset_right = 636.0
|
||||
offset_bottom = 538.0
|
||||
text = "Playtesters"
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
|
||||
[connection signal="pressed" from="playtesterButton" to="." method="_on_playtester_button_pressed"]
|
||||
|
|
38
scenes/playtesters.tscn
Normal file
38
scenes/playtesters.tscn
Normal file
|
@ -0,0 +1,38 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://ddrl583g2xdm1"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/playtesters.gd" id="1_icfks"]
|
||||
|
||||
[node name="playtesters" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_icfks")
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -90.5
|
||||
offset_top = -134.0
|
||||
offset_right = 90.5
|
||||
offset_bottom = 134.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_colors/background_color = Color(0.156863, 0.156863, 0.156863, 1)
|
||||
editable = false
|
||||
|
||||
[node name="closeButton" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 633.0
|
||||
offset_top = 195.0
|
||||
offset_right = 662.0
|
||||
offset_bottom = 226.0
|
||||
text = "X"
|
||||
|
||||
[connection signal="pressed" from="closeButton" to="." method="_on_close_button_pressed"]
|
|
@ -13,3 +13,9 @@ func _process(delta):
|
|||
|
||||
func _on_button_pressed():
|
||||
self.queue_free()
|
||||
|
||||
|
||||
func _on_playtester_button_pressed():
|
||||
var scene_trs =load("res://scenes/playtesters.tscn")
|
||||
var scene=scene_trs.instantiate()
|
||||
add_child(scene)
|
||||
|
|
19
scripts/playtesters.gd
Normal file
19
scripts/playtesters.gd
Normal file
|
@ -0,0 +1,19 @@
|
|||
extends Control
|
||||
|
||||
var playTesters = ["Aquamelemele", "Bladen", "BlueDragon", "Borscht", "Deathorous", "Happyday47", "Maximiliano", "Valcuda", "Verhexen"]
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
var text = ""
|
||||
for string in playTesters:
|
||||
text += string + "\n"
|
||||
$TextEdit.set_text(text)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
|
||||
func _on_close_button_pressed():
|
||||
self.queue_free()
|
Loading…
Reference in a new issue