Skip to content

Commit a36b174

Browse files
committed
chore: revert formatter changes causing errors
1 parent 1c22918 commit a36b174

File tree

5 files changed

+14
-56
lines changed

5 files changed

+14
-56
lines changed

addons/gdscript-course-builder/ui/LessonContentBlock.gd

+2-8
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,11 @@ onready var _visual_element_value := $BackgroundPanel/Layout/VisualElement/LineE
2626
onready var _select_file_button := $BackgroundPanel/Layout/VisualElement/SelectFileButton as Button
2727
onready var _clear_file_button := $BackgroundPanel/Layout/VisualElement/ClearFileButton as Button
2828
onready var _text_content_value := $BackgroundPanel/Layout/TextContent/Editor/TextEdit as TextEdit
29-
onready var _text_content_expand_button := (
30-
$BackgroundPanel/Layout/TextContent/Editor/ExpandButton
31-
as Button
32-
)
29+
onready var _text_content_expand_button := $BackgroundPanel/Layout/TextContent/Editor/ExpandButton as Button
3330
onready var _text_content_dialog := $TextEditDialog as WindowDialog
3431
onready var _text_label := $BackgroundPanel/Layout/TextContent/Editor/TextEdit/Label as Label
3532

36-
onready var _checkbox_visuals_on_left := (
37-
$BackgroundPanel/Layout/Settings/VisualsOnLeftCheckbox
38-
as CheckBox
39-
)
33+
onready var _checkbox_visuals_on_left := $BackgroundPanel/Layout/Settings/VisualsOnLeftCheckbox as CheckBox
4034
onready var _options_block_type := $BackgroundPanel/Layout/Settings/BlockTypeOption as OptionButton
4135

4236
onready var _confirm_dialog := $ConfirmDialog as ConfirmationDialog

addons/gdscript-course-builder/ui/LessonDetails.gd

+2-8
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,9 @@ onready var _edit_slug_dialog := $SlugDialog as WindowDialog
2525

2626
onready var _lesson_tabs := $Content/LessonContent as TabContainer
2727
onready var _lesson_content_blocks := $Content/LessonContent/ContentBlocks/ItemList as Control
28-
onready var _add_content_block_button := (
29-
$Content/LessonContent/ContentBlocks/ToolBar/AddBlockButton
30-
as Button
31-
)
28+
onready var _add_content_block_button := $Content/LessonContent/ContentBlocks/ToolBar/AddBlockButton as Button
3229
onready var _lesson_practices := $Content/LessonContent/Practices/ItemList as Control
33-
onready var _add_practice_button := (
34-
$Content/LessonContent/Practices/ToolBar/AddPracticeButton
35-
as Button
36-
)
30+
onready var _add_practice_button := $Content/LessonContent/Practices/ToolBar/AddPracticeButton as Button
3731

3832

3933
func _ready() -> void:

addons/gdscript-course-builder/ui/LessonPractice.gd

+6-24
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,16 @@ onready var _title_value := $BackgroundPanel/Layout/HeaderBar/ContentTitle/LineE
2828
onready var _remove_button := $BackgroundPanel/Layout/HeaderBar/RemoveButton as Button
2929

3030
onready var _script_slice_value := $BackgroundPanel/Layout/ScriptSlice/LineEdit as LineEdit
31-
onready var _select_script_slice_button := (
32-
$BackgroundPanel/Layout/ScriptSlice/SelectFileButton
33-
as Button
34-
)
35-
onready var _clear_script_slice_button := (
36-
$BackgroundPanel/Layout/ScriptSlice/ClearFileButton
37-
as Button
38-
)
31+
onready var _select_script_slice_button := $BackgroundPanel/Layout/ScriptSlice/SelectFileButton as Button
32+
onready var _clear_script_slice_button := $BackgroundPanel/Layout/ScriptSlice/ClearFileButton as Button
3933
onready var _validator_value := $BackgroundPanel/Layout/Validator/LineEdit as LineEdit
4034
onready var _select_validator_button := $BackgroundPanel/Layout/Validator/SelectFileButton as Button
4135
onready var _clear_validator_button := $BackgroundPanel/Layout/Validator/ClearFileButton as Button
4236

43-
onready var _goal_content_value := (
44-
$BackgroundPanel/Layout/MainSplit/Texts/GoalContent/Editor/TextEdit
45-
as TextEdit
46-
)
47-
onready var _goal_content_expand_button := (
48-
$BackgroundPanel/Layout/MainSplit/Texts/GoalContent/Editor/ExpandButton
49-
as Button
50-
)
51-
onready var _starting_code_value := (
52-
$BackgroundPanel/Layout/MainSplit/Texts/StartingCode/Editor/TextEdit
53-
as TextEdit
54-
)
55-
onready var _starting_code_expand_button := (
56-
$BackgroundPanel/Layout/MainSplit/Texts/StartingCode/Editor/ExpandButton
57-
as Button
58-
)
37+
onready var _goal_content_value := $BackgroundPanel/Layout/MainSplit/Texts/GoalContent/Editor/TextEdit as TextEdit
38+
onready var _goal_content_expand_button := $BackgroundPanel/Layout/MainSplit/Texts/GoalContent/Editor/ExpandButton as Button
39+
onready var _starting_code_value := $BackgroundPanel/Layout/MainSplit/Texts/StartingCode/Editor/TextEdit as TextEdit
40+
onready var _starting_code_expand_button := $BackgroundPanel/Layout/MainSplit/Texts/StartingCode/Editor/ExpandButton as Button
5941
onready var _text_content_dialog := $TextEditDialog as WindowDialog
6042

6143
onready var _add_hint_button := $BackgroundPanel/Layout/MainSplit/Hints/Header/AddButton as Button

ui/UILesson.gd

+2-8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,8 @@ const COLOR_NOTE := Color(0.14902, 0.776471, 0.968627)
1515
export var test_lesson: Resource
1616

1717
onready var _title := $ScrollContainer/MarginContainer/Column/Title as Label
18-
onready var _content_blocks := (
19-
$ScrollContainer/MarginContainer/Column/ContentBlocks
20-
as VBoxContainer
21-
)
22-
onready var _practices_container := (
23-
$ScrollContainer/MarginContainer/Column/Practices
24-
as VBoxContainer
25-
)
18+
onready var _content_blocks := $ScrollContainer/MarginContainer/Column/ContentBlocks as VBoxContainer
19+
onready var _practices_container := $ScrollContainer/MarginContainer/Column/Practices as VBoxContainer
2620

2721

2822
func _ready() -> void:

ui/components/ErrorOverlayPopup.gd

+2-8
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,9 @@ var _error_explanation: String
1111
var _error_suggestion: String
1212

1313
onready var _error_label := $MarginContainer/Column/ErrorLabel as Label
14-
onready var _error_explanation_value := (
15-
$MarginContainer/Column/ErrorExplanation/Value
16-
as RichTextLabel
17-
)
14+
onready var _error_explanation_value := $MarginContainer/Column/ErrorExplanation/Value as RichTextLabel
1815
onready var _more_help_button := $MarginContainer/Column/ErrorExplanation/MoreHelpButton as Button
19-
onready var _error_suggestion_value := (
20-
$MarginContainer/Column/ErrorSuggestion/Value
21-
as RichTextLabel
22-
)
16+
onready var _error_suggestion_value := $MarginContainer/Column/ErrorSuggestion/Value as RichTextLabel
2317

2418

2519
func _ready() -> void:

0 commit comments

Comments
 (0)