Skip to content

Commit

Permalink
chore: add Godot 4 compatibility pill on title screen
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanLovato committed Oct 16, 2023
1 parent 77df959 commit c0a5c58
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 12 deletions.
23 changes: 11 additions & 12 deletions ui/screens/welcome_screen/WelcomeScreen.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=27 format=2]
[gd_scene load_steps=28 format=2]

[ext_resource path="res://ui/screens/welcome_screen/background.png" type="Texture" id=1]
[ext_resource path="res://ui/theme/gdscript_app_theme.tres" type="Theme" id=2]
Expand All @@ -19,6 +19,7 @@
[ext_resource path="res://ui/screens/welcome_screen/star_white_small.png" type="Texture" id=17]
[ext_resource path="res://course/common/robot_body.png" type="Texture" id=18]
[ext_resource path="res://course/common/hand_ice.png" type="Texture" id=19]
[ext_resource path="res://ui/screens/welcome_screen/godot-4-compatibility-label.svg" type="Texture" id=20]

[sub_resource type="GDScript" id=7]
script/source = "extends Node2D
Expand Down Expand Up @@ -590,9 +591,6 @@ margin_top = -512.0
margin_right = 227.0
margin_bottom = -12.0
custom_styles/panel = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Margin" type="MarginContainer" parent="GDQuestBoy"]
margin_left = 28.0
Expand All @@ -605,15 +603,15 @@ custom_constants/margin_left = 0
custom_constants/margin_bottom = 60
[node name="Buttons" type="VBoxContainer" parent="GDQuestBoy/Margin"]
margin_right = 398.0
margin_right = 397.0
margin_bottom = 312.0
size_flags_horizontal = 3
custom_constants/separation = 8
alignment = 1
[node name="StartButton" type="Button" parent="GDQuestBoy/Margin/Buttons"]
margin_top = 32.0
margin_right = 398.0
margin_right = 397.0
margin_bottom = 88.0
rect_min_size = Vector2( 0, 48 )
mouse_default_cursor_shape = 2
Expand All @@ -632,7 +630,7 @@ __meta__ = {
[node name="OutlinerButton" type="Button" parent="GDQuestBoy/Margin/Buttons"]
margin_top = 96.0
margin_right = 398.0
margin_right = 397.0
margin_bottom = 152.0
rect_min_size = Vector2( 0, 48 )
mouse_default_cursor_shape = 2
Expand All @@ -646,7 +644,7 @@ text = "SELECT LESSON"
[node name="SettingsButton" type="Button" parent="GDQuestBoy/Margin/Buttons"]
margin_top = 160.0
margin_right = 398.0
margin_right = 397.0
margin_bottom = 216.0
rect_min_size = Vector2( 0, 48 )
mouse_default_cursor_shape = 2
Expand Down Expand Up @@ -680,7 +678,7 @@ script = SubResource( 1 )
[node name="QuitButton" type="Button" parent="GDQuestBoy/Margin/Buttons"]
margin_top = 224.0
margin_right = 398.0
margin_right = 397.0
margin_bottom = 280.0
rect_min_size = Vector2( 0, 48 )
mouse_default_cursor_shape = 2
Expand Down Expand Up @@ -720,9 +718,6 @@ margin_top = -339.0
margin_right = 480.5
margin_bottom = -109.0
texture = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" type="TextureRect" parent="TitleBackground"]
anchor_right = 1.0
Expand Down Expand Up @@ -781,6 +776,10 @@ margin_top = 116.0
margin_right = 907.5
margin_bottom = 154.0
[node name="Godot-4-compatibility-label" type="Sprite" parent="TitleBackground/Title"]
position = Vector2( 882.5, 243 )
texture = ExtResource( 20 )
[node name="FullScreenButton" parent="." instance=ExtResource( 11 )]
anchor_left = 1.0
anchor_right = 1.0
Expand Down
56 changes: 56 additions & 0 deletions ui/screens/welcome_screen/godot-4-compatibility-label.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions ui/screens/welcome_screen/godot-4-compatibility-label.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/godot-4-compatibility-label.svg-197868271a3150d9bcbab13f313fa2d2.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://ui/screens/welcome_screen/godot-4-compatibility-label.svg"
dest_files=[ "res://.import/godot-4-compatibility-label.svg-197868271a3150d9bcbab13f313fa2d2.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=0.5

0 comments on commit c0a5c58

Please sign in to comment.