Skip to content

Commit

Permalink
fixed linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquin30 committed Dec 16, 2024
1 parent 059f42a commit fc73ea1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/block_code/code_generation/block_definition.gd
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func get_output_parameters() -> Dictionary:


static func parse_display_template(template_string: String):
# separate the template string by | character
# separate the template string by | character
# for normal and advanced parameters
var sep = template_string.find("|")
var template_string_normal: String
Expand All @@ -100,9 +100,9 @@ static func parse_display_template(template_string: String):
template_string_normal = template_string
template_string_advanced = ""
else:
template_string_normal = template_string.substr(0, sep).trim_suffix(' ')
template_string_advanced = template_string.substr(sep+1)
template_string_normal = template_string.substr(0, sep).trim_suffix(" ")
template_string_advanced = template_string.substr(sep + 1)

var items: Array[Dictionary]
# Parse the normal part of the template string
for regex_match in _display_template_regex.search_all(template_string_normal):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ extends HBoxContainer

var collapsed = false


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
collapse()
$CollapseButton.connect("button_up", collapse)
$ExpandButton.connect("button_up", expand)


func expand() -> void:
if not collapsed:
return
Expand All @@ -19,6 +21,7 @@ func expand() -> void:
$CollapseButton.visible = true
collapsed = false


func collapse() -> void:
if collapsed:
return
Expand All @@ -27,6 +30,7 @@ func collapse() -> void:
$ExpandButton.visible = true
collapsed = true


func reorder() -> void:
move_child($ExpandButton, 0)
move_child($CollapseButton, -1)

0 comments on commit fc73ea1

Please sign in to comment.