Cleans up themes and adds styles

This update does the following:
1. Removes themes from children of control node
2. Sets the dark theme to control node (MenuScreen)
3. Defines 2 styles within the 2 themes (dark and light)

So to change the theme overall, for the control node, just load the needed theme, for example:

theme=load("res://assets/ui_controlNode_light_theme.tres")
This commit is contained in:
MacDugRPG
2022-02-27 14:44:55 -05:00
parent dc2fe54ba2
commit 6d7009893c
15 changed files with 174 additions and 21 deletions

View File

@ -7,7 +7,7 @@ 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: = ""
var tempToggle = 0
func _on_But_NewGame_button_up():
get_tree().change_scene(next_scene_path)

View File

@ -1,13 +1,11 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=2 format=2]
[ext_resource path="res://UserInterface/But_ChangeScene.gd" type="Script" id=1]
[ext_resource path="res://assets/ui_highContrast_but_theme.tres" type="Theme" id=2]
[node name="But_ChangeScene" type="Button"]
margin_right = 130.0
margin_bottom = 24.0
size_flags_vertical = 3
theme = ExtResource( 2 )
text = "New Game"
script = ExtResource( 1 )
__meta__ = {

View File

@ -1,13 +1,11 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=2 format=2]
[ext_resource path="res://UserInterface/But_Quit.gd" type="Script" id=1]
[ext_resource path="res://assets/ui_highContrast_but_theme.tres" type="Theme" id=2]
[node name="But_Quit" type="Button"]
margin_top = 240.0
margin_right = 179.0
margin_bottom = 284.0
theme = ExtResource( 2 )
text = "Quit"
script = ExtResource( 1 )
__meta__ = {