mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
Convert demos to Godot 4 using regular expressions in a script
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.png"
|
||||
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -27,4 +27,4 @@ window/stretch/aspect="expand"
|
||||
quality/driver/driver_name="GLES2"
|
||||
vram_compression/import_etc=true
|
||||
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)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/theming_override.png-fd290b6e357e98ef694c719db436e418.stex"
|
||||
type="StreamTexture2D"
|
||||
path="res://.godot/imported/theming_override.png-fd290b6e357e98ef694c719db436e418.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
@@ -10,7 +10,7 @@ metadata={
|
||||
[deps]
|
||||
|
||||
source_file="res://screenshots/theming_override.png"
|
||||
dest_files=[ "res://.import/theming_override.png-fd290b6e357e98ef694c719db436e418.stex" ]
|
||||
dest_files=["res://.godot/imported/theming_override.png-fd290b6e357e98ef694c719db436e418.stex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@ extends Control
|
||||
# This means that you should use `add_stylebox_override("normal", ...)`
|
||||
# instead of `set("custom_styles/normal", ...)`.
|
||||
|
||||
onready var label = $VBoxContainer/Label
|
||||
onready var button = $VBoxContainer/Button
|
||||
onready var button2 = $VBoxContainer/Button2
|
||||
onready var reset_all_button = $VBoxContainer/ResetAllButton
|
||||
@onready var label = $VBoxContainer/Label
|
||||
@onready var button = $VBoxContainer/Button
|
||||
@onready var button2 = $VBoxContainer/Button2
|
||||
@onready var reset_all_button = $VBoxContainer/ResetAllButton
|
||||
# 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_color("font_color")
|
||||
|
||||
func _ready():
|
||||
# Focus the first button automatically for keyboard/controller-friendly navigation.
|
||||
|
||||
@@ -3,44 +3,44 @@
|
||||
[ext_resource path="res://test.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0.16, 0.678, 1, 0.12549 )
|
||||
bg_color = Color(0.16, 0.678, 1, 0.12549)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
bg_color = Color( 0.266667, 0.266667, 0.266667, 1 )
|
||||
bg_color = Color(0.266667, 0.266667, 0.266667, 1)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color( 0.4, 0.4, 0.4, 1 )
|
||||
border_color = Color(0.4, 0.4, 0.4, 1)
|
||||
border_blend = true
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
content_margin_left = 20.0
|
||||
content_margin_right = 20.0
|
||||
content_margin_top = 16.0
|
||||
content_margin_bottom = 16.0
|
||||
bg_color = Color( 0.2, 0.2, 0.2, 1 )
|
||||
content_offset_left = 20.0
|
||||
content_offset_right = 20.0
|
||||
content_offset_top = 16.0
|
||||
content_offset_bottom = 16.0
|
||||
bg_color = Color(0.2, 0.2, 0.2, 1)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color( 0.333333, 0.333333, 0.333333, 1 )
|
||||
border_color = Color(0.333333, 0.333333, 0.333333, 1)
|
||||
border_blend = true
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=4]
|
||||
bg_color = Color( 0.133333, 0.133333, 0.133333, 1 )
|
||||
bg_color = Color(0.133333, 0.133333, 0.133333, 1)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color( 0.266667, 0.266667, 0.266667, 1 )
|
||||
border_color = Color(0.266667, 0.266667, 0.266667, 1)
|
||||
border_blend = true
|
||||
|
||||
[sub_resource type="Theme" id=5]
|
||||
Button/colors/font_color = Color( 0.88, 0.88, 0.88, 1 )
|
||||
Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
|
||||
Button/colors/font_color_hover = Color( 0.94, 0.94, 0.94, 1 )
|
||||
Button/colors/font_color_pressed = Color( 1, 1, 1, 1 )
|
||||
Button/colors/font_color = Color(0.88, 0.88, 0.88, 1)
|
||||
Button/colors/font_color_disabled = Color(0.9, 0.9, 0.9, 0.2)
|
||||
Button/colors/font_color_hover = Color(0.94, 0.94, 0.94, 1)
|
||||
Button/colors/font_color_pressed = Color(1, 1, 1, 1)
|
||||
Button/constants/hseparation = 2
|
||||
Button/fonts/font = null
|
||||
Button/styles/disabled = null
|
||||
@@ -63,39 +63,39 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -75.5
|
||||
margin_top = -157.0
|
||||
margin_right = 75.5
|
||||
margin_bottom = 89.0
|
||||
offset_left = -75.5
|
||||
offset_top = -157.0
|
||||
offset_right = 75.5
|
||||
offset_bottom = 89.0
|
||||
custom_constants/separation = 20
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer"]
|
||||
margin_right = 151.0
|
||||
margin_bottom = 48.0
|
||||
rect_min_size = Vector2( 0, 48 )
|
||||
offset_right = 151.0
|
||||
offset_bottom = 48.0
|
||||
rect_min_size = Vector2(0, 48)
|
||||
text = "GUI Theming Overrides"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Button" type="Button" parent="VBoxContainer"]
|
||||
margin_top = 68.0
|
||||
margin_right = 151.0
|
||||
margin_bottom = 114.0
|
||||
offset_top = 68.0
|
||||
offset_right = 151.0
|
||||
offset_bottom = 114.0
|
||||
text = "Click Me"
|
||||
|
||||
[node name="Button2" type="Button" parent="VBoxContainer"]
|
||||
margin_top = 134.0
|
||||
margin_right = 151.0
|
||||
margin_bottom = 180.0
|
||||
offset_top = 134.0
|
||||
offset_right = 151.0
|
||||
offset_bottom = 180.0
|
||||
text = "Click Me"
|
||||
|
||||
[node name="ResetAllButton" type="Button" parent="VBoxContainer"]
|
||||
margin_top = 200.0
|
||||
margin_right = 151.0
|
||||
margin_bottom = 246.0
|
||||
offset_top = 200.0
|
||||
offset_right = 151.0
|
||||
offset_bottom = 246.0
|
||||
text = "Reset All"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
||||
Reference in New Issue
Block a user