First work on game UI following flowcharts
This commit is contained in:
MacDugRPG
2021-10-10 15:09:43 -04:00
parent da0689854e
commit d175526b7e
31 changed files with 397 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[gd_scene format=2]
[node name="But_AddChar" type="Button"]
margin_top = 85.0
margin_right = 130.0
margin_bottom = 109.0
size_flags_vertical = 3
text = "Add Character"
__meta__ = {
"_edit_use_anchors_": false
}

View File

@ -0,0 +1,12 @@
#Tool lets you any code in editor, such as plugins
tool
extends Button
#Creates param usable in the UI; and the params next to export make it string and file browser
export(String, FILE) var next_scene_path: = ""
func _on_But_NewGame_button_up():
get_tree().change_scene(next_scene_path)
func _get_configuration_warning() -> String:
return "next_scene_path must be set for this button to work" if next_scene_path == "" else ""

View File

@ -0,0 +1,15 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://UserInterface/But_ChangeScene.gd" type="Script" id=1]
[node name="But_ChangeScene" type="Button"]
margin_right = 130.0
margin_bottom = 24.0
size_flags_vertical = 3
text = "New Game"
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="button_up" from="." to="." method="_on_But_NewGame_button_up"]

View File

@ -0,0 +1,8 @@
[gd_scene format=2]
[node name="But_LoadGame" type="Button"]
margin_top = 28.0
margin_right = 130.0
margin_bottom = 52.0
size_flags_vertical = 3
text = "Load Game"

View File

@ -0,0 +1,11 @@
[gd_scene format=2]
[node name="But_Multiplayer" type="Button"]
margin_top = 56.0
margin_right = 130.0
margin_bottom = 81.0
size_flags_vertical = 3
text = "Multiplayer"
__meta__ = {
"_edit_use_anchors_": false
}

View File

@ -0,0 +1,6 @@
extends Button
func _on_But_Quit_button_up():
get_tree().quit()

View File

@ -0,0 +1,15 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://UserInterface/But_Quit.gd" type="Script" id=1]
[node name="But_Quit" type="Button"]
margin_top = 240.0
margin_right = 179.0
margin_bottom = 284.0
text = "Quit"
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="button_up" from="." to="." method="_on_But_Quit_button_up"]

View File

@ -0,0 +1,8 @@
[gd_scene format=2]
[node name="But_Settings" type="Button"]
margin_top = 113.0
margin_right = 130.0
margin_bottom = 138.0
size_flags_vertical = 3
text = "Settings"

View File

@ -0,0 +1,17 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/base_dynamicFont_BIG.tres" type="DynamicFont" id=1]
[node name="Title" type="Label"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -110.5
margin_top = 114.422
margin_right = 110.5
margin_bottom = 180.422
custom_fonts/font = ExtResource( 1 )
text = "Main Menu"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}