Updated for pandemonium.

This commit is contained in:
Relintai 2023-10-09 13:57:26 +02:00
parent 71dd277447
commit a6303e2dc7
9 changed files with 16 additions and 24 deletions

View File

@ -11,4 +11,4 @@ func _ready():
func _set_icon_name(v): func _set_icon_name(v):
icon_name = v icon_name = v
icon = get_icon(v, "EditorIcons") icon = get_theme_icon(v, "EditorIcons")

View File

@ -13,9 +13,9 @@ func _ready():
func _set_box_name(v): func _set_box_name(v):
box_name = v box_name = v
add_stylebox_override(box_name, get_stylebox(box_name, box_class)) add_theme_stylebox_override(box_name, get_theme_stylebox(box_name, box_class))
func _set_box_class(v): func _set_box_class(v):
box_class = v box_class = v
add_stylebox_override(box_name, get_stylebox(box_name, box_class)) add_theme_stylebox_override(box_name, get_theme_stylebox(box_name, box_class))

View File

@ -76,6 +76,8 @@ func _ready():
all_cell_editors[all_cell_editors.size() - 1].hint_strings_array = column_hint_strings all_cell_editors[all_cell_editors.size() - 1].hint_strings_array = column_hint_strings
get_node(path_recent_paths).selected = 0 get_node(path_recent_paths).selected = 0
if recent_paths.size() > 0:
display_folder(recent_paths[0], "resource_name", false, true) display_folder(recent_paths[0], "resource_name", false, true)

View File

@ -47,9 +47,9 @@ focus_previous = NodePath(".")
focus_mode = 2 focus_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
size_flags_vertical = 3 size_flags_vertical = 3
custom_constants/margin_right = 3
custom_constants/margin_top = 0
custom_constants/margin_left = 3 custom_constants/margin_left = 3
custom_constants/margin_top = 0
custom_constants/margin_right = 3
custom_constants/margin_bottom = 3 custom_constants/margin_bottom = 3
script = ExtResource( 1 ) script = ExtResource( 1 )
__meta__ = { __meta__ = {
@ -349,8 +349,8 @@ __meta__ = {
[node name="MarginContainer" type="MarginContainer" parent="HeaderContentSplit/MarginContainer/FooterContentSplit/Panel/Scroll"] [node name="MarginContainer" type="MarginContainer" parent="HeaderContentSplit/MarginContainer/FooterContentSplit/Panel/Scroll"]
margin_right = 5.65 margin_right = 5.65
custom_constants/margin_right = 0
custom_constants/margin_top = 0 custom_constants/margin_top = 0
custom_constants/margin_right = 0
__meta__ = { __meta__ = {
"_edit_lock_": true "_edit_lock_": true
} }
@ -358,8 +358,8 @@ __meta__ = {
[node name="TableGrid" type="GridContainer" parent="HeaderContentSplit/MarginContainer/FooterContentSplit/Panel/Scroll/MarginContainer"] [node name="TableGrid" type="GridContainer" parent="HeaderContentSplit/MarginContainer/FooterContentSplit/Panel/Scroll/MarginContainer"]
margin_right = 5.65 margin_right = 5.65
rect_min_size = Vector2( 5.65, 0 ) rect_min_size = Vector2( 5.65, 0 )
custom_constants/vseparation = 0
custom_constants/hseparation = 0 custom_constants/hseparation = 0
custom_constants/vseparation = 0
__meta__ = { __meta__ = {
"_edit_lock_": true "_edit_lock_": true
} }

View File

@ -26,7 +26,7 @@ func _ready():
) )
create_file_button.text = "Create File" create_file_button.text = "Create File"
create_file_button.visible = true create_file_button.visible = true
create_file_button.icon = get_icon("New", "EditorIcons") create_file_button.icon = get_theme_icon("New", "EditorIcons")
func _on_create_file_pressed(): func _on_create_file_pressed():

View File

@ -36,4 +36,4 @@ func has_main_screen():
func get_plugin_icon(): func get_plugin_icon():
# Until I add an actual icon, this'll do. # Until I add an actual icon, this'll do.
return get_editor_interface().get_base_control().get_icon("VisualScriptComment", "EditorIcons") return get_editor_interface().get_base_control().get_theme_icon("VisualScriptComment", "EditorIcons")

View File

@ -18,9 +18,9 @@ var editbox_action : int
func _ready(): func _ready():
editbox_input.get_node("../..").add_stylebox_override( editbox_input.get_node("../..").add_theme_stylebox_override(
"panel", "panel",
get_stylebox("Content", "EditorStyles") get_theme_stylebox("Content", "EditorStyles")
) )

View File

@ -14,7 +14,7 @@ func _ready():
parent = parent.get_parent() parent = parent.get_parent()
sheet = parent sheet = parent
get_node(path_property_name).add_font_override("bold", get_font("bold", "EditorFonts")) get_node(path_property_name).add_theme_font_override("bold", get_theme_font("bold", "EditorFonts"))
# Override to define when to show the dock and, if it can edit the value, how to handle it. # Override to define when to show the dock and, if it can edit the value, how to handle it.
func try_edit_value(value, type, property_hint) -> bool: func try_edit_value(value, type, property_hint) -> bool:

View File

@ -1,13 +1,3 @@
[remap] [remap]
importer="csv_translation" importer="keep"
type="Translation"
valid=false
[deps]
source_file="res://example/Random Upgrades/upgrades_csv/upgrades.csv"
[params]
compress=true
delimiter=0