Skip to content

Commit cfc3dbb

Browse files
committed
Fix outliner and main menu buttons
1 parent 1e5b011 commit cfc3dbb

File tree

7 files changed

+15
-27
lines changed

7 files changed

+15
-27
lines changed

project.godot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ window/stretch/aspect="keep_height"
4646
window/vsync/vsync_mode=false
4747
window/size/fullscreen=true
4848

49+
[editor]
50+
51+
script/search_in_file_extensions=PackedStringArray("gd", "gdshader", "tscn")
52+
4953
[editor_plugins]
5054

5155
enabled=PackedStringArray("res://addons/ColorPickerPresets/plugin.cfg")

ui/screens/course_outliner/CourseLessonItem.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ func _ready() -> void:
2525

2626

2727
func _draw() -> void:
28-
if not _mouse_hovering and not selected:
28+
if not _mouse_hovering and not is_selected:
2929
return
3030

31-
if selected:
31+
if is_selected:
3232
draw_style_box(SELECTED_STYLE, Rect2(Vector2.ZERO, size))
3333

3434
if _mouse_hovering:

ui/screens/welcome_screen/WelcomeScreen.tscn

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[ext_resource type="Texture2D" uid="uid://by3dlo6kxjw1f" path="res://ui/screens/welcome_screen/title_background.png" id="6"]
88
[ext_resource type="StyleBox" uid="uid://bdyrfadpi27ck" path="res://ui/theme/button_main_menu_normal.tres" id="7"]
99
[ext_resource type="Script" uid="uid://f4uji8wpx0tc" path="res://ui/screens/welcome_screen/WelcomeScreen.gd" id="8"]
10-
[ext_resource type="StyleBox" path="res://ui/theme/button_main_menu_focus.tres" id="9"]
11-
[ext_resource type="StyleBox" path="res://ui/theme/button_main_menu_hover.tres" id="10"]
10+
[ext_resource type="StyleBox" uid="uid://bygw5to7m6lea" path="res://ui/theme/button_main_menu_focus.tres" id="9"]
11+
[ext_resource type="StyleBox" uid="uid://dwjeeu7f4b1w3" path="res://ui/theme/button_main_menu_hover.tres" id="10"]
1212
[ext_resource type="PackedScene" path="res://ui/components/FullScreenButton.tscn" id="11"]
1313
[ext_resource type="FontVariation" uid="uid://dmdjn3eprmf2m" path="res://ui/theme/fonts/font_main_menu_buttons.tres" id="12"]
1414
[ext_resource type="PackedScene" path="res://ui/screens/welcome_screen/StarGreen.tscn" id="13"]
@@ -200,10 +200,6 @@ _data = {
200200
}
201201
202202
[sub_resource type="StyleBoxEmpty" id="4"]
203-
content_margin_left = 8.0
204-
content_margin_top = 8.0
205-
content_margin_right = 8.0
206-
content_margin_bottom = 8.0
207203
208204
[sub_resource type="GDScript" id="1"]
209205
script/source = "extends OptionButton
@@ -648,7 +644,7 @@ anchor_right = 0.5
648644
anchor_bottom = 1.0
649645
offset_left = -227.0
650646
offset_top = -512.0
651-
offset_right = 226.99976
647+
offset_right = 227.0
652648
offset_bottom = -12.0
653649
grow_horizontal = 2
654650
theme_override_styles/panel = ExtResource("3")
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
[gd_resource type="StyleBoxFlat" format=2]
1+
[gd_resource type="StyleBoxFlat" format=3 uid="uid://bygw5to7m6lea"]
22

33
[resource]
4-
content_margin_left = 8.0
5-
content_margin_right = 8.0
6-
content_margin_top = 8.0
7-
content_margin_bottom = 8.0
8-
bg_color = Color( 0.0901961, 0.0941176, 0.188235, 1 )
4+
bg_color = Color(0.0901961, 0.0941176, 0.188235, 1)
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
[gd_resource type="StyleBoxFlat" format=2]
1+
[gd_resource type="StyleBoxFlat" format=3 uid="uid://dwjeeu7f4b1w3"]
22

33
[resource]
4-
content_margin_left = 8.0
5-
content_margin_right = 8.0
6-
content_margin_top = 8.0
7-
content_margin_bottom = 8.0
8-
bg_color = Color( 0.0901961, 0.0941176, 0.188235, 1 )
4+
bg_color = Color(0.0901961, 0.0941176, 0.188235, 1)
95
draw_center = false
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
[gd_resource type="StyleBoxFlat" format=3 uid="uid://bdyrfadpi27ck"]
22

33
[resource]
4-
content_margin_left = 8.0
5-
content_margin_top = 8.0
6-
content_margin_right = 8.0
7-
content_margin_bottom = 8.0
84
draw_center = false

ui/theme/gdscript_app_theme.tres

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ ProgressBar/colors/font_color = Color(0.960784, 0.980392, 0.980392, 1)
116116
ProgressBar/colors/font_color_shadow = Color(0.290196, 0.294118, 0.388235, 1)
117117
ProgressBar/font_sizes/font_size = 18
118118
ProgressBar/fonts/font = ExtResource("8")
119-
ProgressBar/styles/bg = ExtResource("9")
120-
ProgressBar/styles/fg = ExtResource("10")
119+
ProgressBar/styles/background = ExtResource("9")
120+
ProgressBar/styles/fill = ExtResource("10")
121121
RichTextLabel/colors/default_color = Color(0.960784, 0.980392, 0.980392, 1)
122122
RichTextLabel/colors/font_color_selected = Color(0.49, 0.49, 0.49, 1)
123123
RichTextLabel/colors/font_color_shadow = Color(0, 0, 0, 0)

0 commit comments

Comments
 (0)