mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-01-02 14:39:37 +01:00
Make sure everything works in the gui folder.
This commit is contained in:
parent
9817f967df
commit
c5459752a6
@ -24,6 +24,5 @@ window/stretch/aspect="expand"
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
quality/driver/driver_name="GLES2"
|
|
||||||
vram_compression/import_etc=true
|
vram_compression/import_etc=true
|
||||||
vram_compression/import_etc2=false
|
vram_compression/import_etc2=false
|
||||||
|
@ -30,6 +30,5 @@ singletons=[ ]
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
quality/driver/driver_name="GLES2"
|
|
||||||
vram_compression/import_etc=true
|
vram_compression/import_etc=true
|
||||||
vram_compression/import_etc2=false
|
vram_compression/import_etc2=false
|
||||||
|
@ -65,6 +65,5 @@ dash={
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
quality/driver/driver_name="GLES2"
|
|
||||||
vram_compression/import_etc=true
|
vram_compression/import_etc=true
|
||||||
vram_compression/import_etc2=false
|
vram_compression/import_etc2=false
|
||||||
|
@ -44,5 +44,4 @@ window/stretch/aspect="expand"
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
quality/driver/driver_name="GLES2"
|
|
||||||
environment/default_clear_color=Color( 0.133333, 0.133333, 0.2, 1 )
|
environment/default_clear_color=Color( 0.133333, 0.133333, 0.2, 1 )
|
||||||
|
@ -28,6 +28,5 @@ singletons=[ ]
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
quality/driver/driver_name="GLES2"
|
|
||||||
vram_compression/import_etc=true
|
vram_compression/import_etc=true
|
||||||
vram_compression/import_etc2=false
|
vram_compression/import_etc2=false
|
||||||
|
@ -31,7 +31,6 @@ multithread/thread_rid_pool_prealloc=60
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
quality/driver/driver_name="GLES2"
|
|
||||||
vram_compression/import_etc=true
|
vram_compression/import_etc=true
|
||||||
vram_compression/import_etc2=false
|
vram_compression/import_etc2=false
|
||||||
environment/default_clear_color=Color( 0.145098, 0.145098, 0.164706, 1 )
|
environment/default_clear_color=Color( 0.145098, 0.145098, 0.164706, 1 )
|
||||||
|
@ -6,21 +6,21 @@
|
|||||||
[ext_resource path="res://Titillium-Bold.otf" type="DynamicFontData" id=4]
|
[ext_resource path="res://Titillium-Bold.otf" type="DynamicFontData" id=4]
|
||||||
[ext_resource path="res://Titillium-Regular.otf" type="DynamicFontData" id=5]
|
[ext_resource path="res://Titillium-Regular.otf" type="DynamicFontData" id=5]
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=1]
|
[sub_resource type="DynamicFont" id=4]
|
||||||
size = 20
|
size = 20
|
||||||
font_data = ExtResource( 2 )
|
font_data = ExtResource( 5 )
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=2]
|
|
||||||
size = 20
|
|
||||||
font_data = ExtResource( 3 )
|
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=3]
|
[sub_resource type="DynamicFont" id=3]
|
||||||
size = 20
|
size = 20
|
||||||
font_data = ExtResource( 4 )
|
font_data = ExtResource( 4 )
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=4]
|
[sub_resource type="DynamicFont" id=2]
|
||||||
size = 20
|
size = 20
|
||||||
font_data = ExtResource( 5 )
|
font_data = ExtResource( 3 )
|
||||||
|
|
||||||
|
[sub_resource type="DynamicFont" id=1]
|
||||||
|
size = 20
|
||||||
|
font_data = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="RichTextBBCode" type="Control"]
|
[node name="RichTextBBCode" type="Control"]
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
@ -44,10 +44,10 @@ margin_right = -48.0
|
|||||||
margin_bottom = -62.0
|
margin_bottom = -62.0
|
||||||
size_flags_horizontal = 2
|
size_flags_horizontal = 2
|
||||||
size_flags_vertical = 2
|
size_flags_vertical = 2
|
||||||
custom_fonts/bold_italics_font = SubResource( 1 )
|
|
||||||
custom_fonts/italics_font = SubResource( 2 )
|
|
||||||
custom_fonts/bold_font = SubResource( 3 )
|
|
||||||
custom_fonts/normal_font = SubResource( 4 )
|
custom_fonts/normal_font = SubResource( 4 )
|
||||||
|
custom_fonts/bold_font = SubResource( 3 )
|
||||||
|
custom_fonts/italics_font = SubResource( 2 )
|
||||||
|
custom_fonts/bold_italics_font = SubResource( 1 )
|
||||||
bbcode_enabled = true
|
bbcode_enabled = true
|
||||||
bbcode_text = "[b][u]Rich Text Test[/u][/b]
|
bbcode_text = "[b][u]Rich Text Test[/u][/b]
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ window/stretch/aspect="expand"
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
quality/driver/driver_name="GLES2"
|
|
||||||
vram_compression/import_etc=true
|
vram_compression/import_etc=true
|
||||||
vram_compression/import_etc2=false
|
vram_compression/import_etc2=false
|
||||||
environment/default_clear_color=Color( 0.133333, 0.133333, 0.133333, 1 )
|
environment/default_clear_color=Color( 0.133333, 0.133333, 0.133333, 1 )
|
||||||
|
@ -10,7 +10,7 @@ onready var button = $VBoxContainer/Button
|
|||||||
onready var button2 = $VBoxContainer/Button2
|
onready var button2 = $VBoxContainer/Button2
|
||||||
onready var reset_all_button = $VBoxContainer/ResetAllButton
|
onready var reset_all_button = $VBoxContainer/ResetAllButton
|
||||||
# Save the label color so it can be reset.
|
# Save the label color so it can be reset.
|
||||||
onready var default_label_color = label.get_color("font_color")
|
onready var default_label_color = label.get_theme_color("font_color")
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
# Focus the first button automatically for keyboard/controller-friendly navigation.
|
# Focus the first button automatically for keyboard/controller-friendly navigation.
|
||||||
@ -22,33 +22,33 @@ func _on_button_pressed():
|
|||||||
# to get a correct appearance when the button is hovered or pressed.
|
# to get a correct appearance when the button is hovered or pressed.
|
||||||
# We can't use a single StyleBox for all of them as these have different
|
# We can't use a single StyleBox for all of them as these have different
|
||||||
# background colors.
|
# background colors.
|
||||||
var new_stylebox_normal = button.get_stylebox("normal").duplicate()
|
var new_stylebox_normal = button.get_theme_stylebox("normal").duplicate()
|
||||||
new_stylebox_normal.border_color = Color(1, 1, 0)
|
new_stylebox_normal.border_color = Color(1, 1, 0)
|
||||||
var new_stylebox_hover = button.get_stylebox("hover").duplicate()
|
var new_stylebox_hover = button.get_theme_stylebox("hover").duplicate()
|
||||||
new_stylebox_hover.border_color = Color(1, 1, 0)
|
new_stylebox_hover.border_color = Color(1, 1, 0)
|
||||||
var new_stylebox_pressed = button.get_stylebox("pressed").duplicate()
|
var new_stylebox_pressed = button.get_theme_stylebox("pressed").duplicate()
|
||||||
new_stylebox_pressed.border_color = Color(1, 1, 0)
|
new_stylebox_pressed.border_color = Color(1, 1, 0)
|
||||||
|
|
||||||
button.add_stylebox_override("normal", new_stylebox_normal)
|
button.add_theme_stylebox_override("normal", new_stylebox_normal)
|
||||||
button.add_stylebox_override("hover", new_stylebox_hover)
|
button.add_theme_stylebox_override("hover", new_stylebox_hover)
|
||||||
button.add_stylebox_override("pressed", new_stylebox_pressed)
|
button.add_theme_stylebox_override("pressed", new_stylebox_pressed)
|
||||||
|
|
||||||
label.add_color_override("font_color", Color(1, 1, 0.5))
|
label.add_theme_color_override("font_color", Color(1, 1, 0.5))
|
||||||
|
|
||||||
|
|
||||||
func _on_button2_pressed():
|
func _on_button2_pressed():
|
||||||
var new_stylebox_normal = button2.get_stylebox("normal").duplicate()
|
var new_stylebox_normal = button2.get_theme_stylebox("normal").duplicate()
|
||||||
new_stylebox_normal.border_color = Color(0, 1, 0.5)
|
new_stylebox_normal.border_color = Color(0, 1, 0.5)
|
||||||
var new_stylebox_hover = button2.get_stylebox("hover").duplicate()
|
var new_stylebox_hover = button2.get_theme_stylebox("hover").duplicate()
|
||||||
new_stylebox_hover.border_color = Color(0, 1, 0.5)
|
new_stylebox_hover.border_color = Color(0, 1, 0.5)
|
||||||
var new_stylebox_pressed = button2.get_stylebox("pressed").duplicate()
|
var new_stylebox_pressed = button2.get_theme_stylebox("pressed").duplicate()
|
||||||
new_stylebox_pressed.border_color = Color(0, 1, 0.5)
|
new_stylebox_pressed.border_color = Color(0, 1, 0.5)
|
||||||
|
|
||||||
button2.add_stylebox_override("normal", new_stylebox_normal)
|
button2.add_theme_stylebox_override("normal", new_stylebox_normal)
|
||||||
button2.add_stylebox_override("hover", new_stylebox_hover)
|
button2.add_theme_stylebox_override("hover", new_stylebox_hover)
|
||||||
button2.add_stylebox_override("pressed", new_stylebox_pressed)
|
button2.add_theme_stylebox_override("pressed", new_stylebox_pressed)
|
||||||
|
|
||||||
label.add_color_override("font_color", Color(0.5, 1, 0.75))
|
label.add_theme_color_override("font_color", Color(0.5, 1, 0.75))
|
||||||
|
|
||||||
|
|
||||||
func _on_reset_all_button_pressed():
|
func _on_reset_all_button_pressed():
|
||||||
@ -56,12 +56,12 @@ func _on_reset_all_button_pressed():
|
|||||||
# - `null` for fonts, icons, styleboxes, and shaders.
|
# - `null` for fonts, icons, styleboxes, and shaders.
|
||||||
# - `0` for constants.
|
# - `0` for constants.
|
||||||
# - Colors must be reset manually by adding the previous color value as an override.
|
# - Colors must be reset manually by adding the previous color value as an override.
|
||||||
button.add_stylebox_override("normal", null)
|
button.add_theme_stylebox_override("normal", null)
|
||||||
button.add_stylebox_override("hover", null)
|
button.add_theme_stylebox_override("hover", null)
|
||||||
button.add_stylebox_override("pressed", null)
|
button.add_theme_stylebox_override("pressed", null)
|
||||||
|
|
||||||
button2.add_stylebox_override("normal", null)
|
button2.add_theme_stylebox_override("normal", null)
|
||||||
button2.add_stylebox_override("hover", null)
|
button2.add_theme_stylebox_override("hover", null)
|
||||||
button2.add_stylebox_override("pressed", null)
|
button2.add_theme_stylebox_override("pressed", null)
|
||||||
|
|
||||||
label.add_color_override("font_color", default_label_color)
|
label.add_theme_color_override("font_color", default_label_color)
|
||||||
|
@ -17,5 +17,7 @@ force/max_rate=false
|
|||||||
force/max_rate_hz=44100
|
force/max_rate_hz=44100
|
||||||
edit/trim=true
|
edit/trim=true
|
||||||
edit/normalize=true
|
edit/normalize=true
|
||||||
edit/loop=false
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
@ -17,5 +17,7 @@ force/max_rate=false
|
|||||||
force/max_rate_hz=44100
|
force/max_rate_hz=44100
|
||||||
edit/trim=true
|
edit/trim=true
|
||||||
edit/normalize=true
|
edit/normalize=true
|
||||||
edit/loop=false
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
@ -17,5 +17,7 @@ force/max_rate=false
|
|||||||
force/max_rate_hz=44100
|
force/max_rate_hz=44100
|
||||||
edit/trim=true
|
edit/trim=true
|
||||||
edit/normalize=true
|
edit/normalize=true
|
||||||
edit/loop=false
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
@ -40,7 +40,6 @@ multithread/thread_rid_pool_prealloc=60
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
quality/driver/driver_name="GLES2"
|
|
||||||
vram_compression/import_etc=true
|
vram_compression/import_etc=true
|
||||||
vram_compression/import_etc2=false
|
vram_compression/import_etc2=false
|
||||||
environment/default_clear_color=Color( 0.145098, 0.145098, 0.164706, 1 )
|
environment/default_clear_color=Color( 0.145098, 0.145098, 0.164706, 1 )
|
||||||
|
Loading…
Reference in New Issue
Block a user