Convert spreadsheet_import.gd to tabs

(thanks vscode defaults)
This commit is contained in:
don-tnowe 2022-10-23 19:56:41 +03:00
parent 147b00487c
commit a6a42b34fc

View File

@ -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] + " :"