diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekBangla[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekBangla[wdth,wght].ttf new file mode 100644 index 0000000..c2d7474 Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekBangla[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekDevanagari[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekDevanagari[wdth,wght].ttf new file mode 100644 index 0000000..6493af5 Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekDevanagari[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekGujarati[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekGujarati[wdth,wght].ttf new file mode 100644 index 0000000..e50aa7a Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekGujarati[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekGurmukhi[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekGurmukhi[wdth,wght].ttf new file mode 100644 index 0000000..327135f Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekGurmukhi[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekKannada[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekKannada[wdth,wght].ttf new file mode 100644 index 0000000..8a34431 Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekKannada[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekLatin[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekLatin[wdth,wght].ttf new file mode 100644 index 0000000..b1bac81 Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekLatin[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekMalayalam[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekMalayalam[wdth,wght].ttf new file mode 100644 index 0000000..d284a2e Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekMalayalam[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekOdia[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekOdia[wdth,wght].ttf new file mode 100644 index 0000000..f82fc8d Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekOdia[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekTamil[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekTamil[wdth,wght].ttf new file mode 100644 index 0000000..b864910 Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekTamil[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/AnekTelugu[wdth,wght].ttf b/Godot/MainMenu/GodotUserInterface_Luke/AnekTelugu[wdth,wght].ttf new file mode 100644 index 0000000..f1e389a Binary files /dev/null and b/Godot/MainMenu/GodotUserInterface_Luke/AnekTelugu[wdth,wght].ttf differ diff --git a/Godot/MainMenu/GodotUserInterface_Luke/GUI.gd b/Godot/MainMenu/GodotUserInterface_Luke/GUI.gd index 4ec77dc..0d5a483 100644 --- a/Godot/MainMenu/GodotUserInterface_Luke/GUI.gd +++ b/Godot/MainMenu/GodotUserInterface_Luke/GUI.gd @@ -1,16 +1,17 @@ extends MarginContainer -onready var selection_Start = $HBoxContainer/VBoxContainer/MenuOptions/StartGame -onready var selection_DieTest = $HBoxContainer/VBoxContainer/MenuOptions/DieTest -onready var selection_LoadGame = $HBoxContainer/CenterContainer/MenuOptions/LoadGame -onready var selection_HostAndJoinGame = $HBoxContainer/VBoxContainer/MenuOptions/HostAndJoinGame -onready var selection_PlayerSettings =$HBoxContainer/VBoxContainer/MenuOptions/PlayerSettings + +onready var currentSelection_Start = get_node("HBoxContainer/VBoxContainer/MenuOptions/StartGame") +onready var currentSelection_DieTest = get_node("HBoxContainer/VBoxContainer/MenuOptions/DieTest") +onready var currentSelection_LoadGame = get_node("HBoxContainer/VBoxContainer/MenuOptions/LoadGame") +onready var currentSelection_HostAndJoinGame = get_node("HBoxContainer/VBoxContainer/MenuOptions/HostAndJoinGame") +onready var currentSelection_PlayerSettings = get_node("HBoxContainer/VBoxContainer/MenuOptions/PlayerSettings") var currentSelectionIndex = 0; +var currentIndexObject = currentSelection_Start; func _ready(): - var TimeTest = OS.get_datetime() - print(TimeTest) + SetMenuSelections(currentSelectionIndex) func _process(delta): if Input.is_action_just_pressed("ui_down"): @@ -18,25 +19,36 @@ func _process(delta): if(currentSelectionIndex == 5): currentSelectionIndex = 0 SetMenuSelections(currentSelectionIndex) + func SetMenuSelections(CurrentSelection): - selection_Start.set_uppercase(false) - selection_DieTest.set_uppercase(false) - selection_LoadGame.set_uppercase(false) - selection_HostAndJoinGame.set_uppercase(false) - selection_PlayerSettings.set_uppercase(false) + currentSelection_Start.set_uppercase(false) + currentSelection_DieTest.set_uppercase(false) + currentSelection_LoadGame.set_uppercase(false) + currentSelection_HostAndJoinGame.set_uppercase(false) + currentSelection_PlayerSettings.set_uppercase(false) var index = CurrentSelection match index: 0: - selection_Start.set_uppercase(true) + currentSelection_PlayerSettings.set("custom_colors/default_color", Color(1,1,1,1)) + currentSelection_Start.set_uppercase(true) + currentSelection_Start.set("custom_colors/default_color", Color(0,0,0,1)) 1: - selection_DieTest.set_uppercase(true) - 2: - selection_LoadGame.set_uppercase(true) - 3: - selection_HostAndJoinGame.set_uppercase(true) - 4: - selection_PlayerSettings.set_uppercase(true) + currentSelection_Start.set("custom_colors/default_color", Color(1,1,1,1)) + currentSelection_DieTest.set_uppercase(true) + currentSelection_DieTest.set("custom_colors/default_color", Color(0,0,0,1)) + 2: + currentSelection_DieTest.set("custom_colors/default_color", Color(1,1,1,1)) + currentSelection_LoadGame.set_uppercase(true) + currentSelection_LoadGame.set("custom_colors/default_color", Color(0,0,0,1)) + 3: + currentSelection_LoadGame.set("custom_colors/default_color", Color(1,1,1,1)) + currentSelection_HostAndJoinGame.set_uppercase(true) + currentSelection_HostAndJoinGame.set("custom_colors/default_color", Color(0,0,0,1)) + 4: + currentSelection_HostAndJoinGame.set("custom_colors/default_color", Color(1,1,1,1)) + currentSelection_PlayerSettings.set_uppercase(true) + currentSelection_PlayerSettings.set("custom_colors/default_color", Color(0,0,0,1)) diff --git a/Godot/MainMenu/GodotUserInterface_Luke/GUI.tscn b/Godot/MainMenu/GodotUserInterface_Luke/GUI.tscn index 1136160..949e07b 100644 --- a/Godot/MainMenu/GodotUserInterface_Luke/GUI.tscn +++ b/Godot/MainMenu/GodotUserInterface_Luke/GUI.tscn @@ -21,8 +21,10 @@ __meta__ = { } [node name="ColorRect" type="ColorRect" parent="."] -margin_right = 1024.0 -margin_bottom = 600.0 +margin_left = 120.0 +margin_top = 80.0 +margin_right = 904.0 +margin_bottom = 520.0 color = Color( 0.858824, 0.333333, 0.129412, 1 ) [node name="HBoxContainer" type="HBoxContainer" parent="."] @@ -46,7 +48,6 @@ alignment = 1 margin_top = 125.0 margin_right = 112.0 margin_bottom = 139.0 -rect_scale = Vector2( 2, 2 ) mouse_filter = 1 text = "Start Game" script = ExtResource( 3 ) @@ -55,7 +56,6 @@ script = ExtResource( 3 ) margin_top = 169.0 margin_right = 112.0 margin_bottom = 183.0 -rect_scale = Vector2( 2, 2 ) mouse_filter = 1 text = "Die Test" script = ExtResource( 5 ) @@ -64,7 +64,6 @@ script = ExtResource( 5 ) margin_top = 213.0 margin_right = 112.0 margin_bottom = 227.0 -rect_scale = Vector2( 2, 2 ) mouse_filter = 1 text = "Load Game" script = ExtResource( 3 ) @@ -73,7 +72,6 @@ script = ExtResource( 3 ) margin_top = 257.0 margin_right = 112.0 margin_bottom = 271.0 -rect_scale = Vector2( 2, 2 ) mouse_filter = 1 text = "Host / Join Game" script = ExtResource( 2 ) @@ -82,7 +80,6 @@ script = ExtResource( 2 ) margin_top = 301.0 margin_right = 112.0 margin_bottom = 315.0 -rect_scale = Vector2( 2, 2 ) mouse_filter = 1 text = "Player Settings" script = ExtResource( 1 ) @@ -99,7 +96,6 @@ margin_left = 300.0 margin_top = 213.0 margin_right = 367.0 margin_bottom = 227.0 -rect_scale = Vector2( 4, 4 ) text = "Test Menu" [connection signal="gui_input" from="HBoxContainer/VBoxContainer/MenuOptions/StartGame" to="HBoxContainer/VBoxContainer/MenuOptions/StartGame" method="_on_Start_Game_gui_input"]