mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-02-21 08:34:26 +01:00
Convert spreadsheet_import.gd to tabs
(thanks vscode defaults)
This commit is contained in:
parent
147b00487c
commit
a6a42b34fc
@ -74,7 +74,7 @@ func string_to_property(string : String, col_index : int):
|
||||
return int(uniques[col_index][string.to_upper().replace(" ", "_")])
|
||||
|
||||
|
||||
func property_to_string(value, col_index : int):
|
||||
func property_to_string(value, col_index : int) -> String:
|
||||
match prop_types[col_index]:
|
||||
PropType.STRING:
|
||||
return value
|
||||
@ -97,6 +97,8 @@ func property_to_string(value, col_index : int):
|
||||
if dict[k] == value:
|
||||
return TextEditingUtils.string_snake_to_naming_case(k)
|
||||
|
||||
return str(value)
|
||||
|
||||
|
||||
func create_property_line_for_prop(col_index : int):
|
||||
var result = "export var " + prop_names[col_index] + " :"
|
||||
|
Loading…
Reference in New Issue
Block a user