mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-04-08 17:41:50 +02:00
Code style fixes
This commit is contained in:
parent
a7b7bce4e4
commit
b3f755f25d
@ -16,7 +16,7 @@ func set_value(entry, key : String, value, index : int):
|
||||
|
||||
|
||||
func save_entries(all_entries : Array, indices : Array, repeat : bool = true):
|
||||
if timer == null || timer.time_left <= 0.0:
|
||||
if timer == null or timer.time_left <= 0.0:
|
||||
var space_after_delimeter = import_data.delimeter.ends_with(" ")
|
||||
var file = FileAccess.open(import_data.edited_path, FileAccess.WRITE)
|
||||
for x in csv_rows:
|
||||
|
@ -128,7 +128,7 @@ func _export_tres_folder():
|
||||
import_data.prop_used_as_filename = import_data.prop_names[property_used_as_filename]
|
||||
var new_res : Resource
|
||||
for i in entries.size():
|
||||
if import_data.remove_first_row && i == 0:
|
||||
if import_data.remove_first_row and i == 0:
|
||||
continue
|
||||
|
||||
new_res = import_data.strings_to_resource(entries[i])
|
||||
|
@ -58,7 +58,7 @@ func _input(event : InputEvent):
|
||||
|
||||
# Ctrl + Z (before, and instead of, committing the action!)
|
||||
if Input.is_key_pressed(KEY_CTRL):
|
||||
if event.keycode == KEY_Z || event.keycode == KEY_Y:
|
||||
if event.keycode == KEY_Z or event.keycode == KEY_Y:
|
||||
return
|
||||
|
||||
_key_specific_action(event)
|
||||
|
@ -88,7 +88,7 @@ func _unhandled_input(event):
|
||||
_on_Rename_pressed()
|
||||
return
|
||||
|
||||
if event is InputEventMouseButton && event.is_pressed():
|
||||
if event is InputEventMouseButton and event.is_pressed():
|
||||
close()
|
||||
|
||||
|
||||
|
@ -110,7 +110,7 @@ func _on_Button_pressed():
|
||||
|
||||
|
||||
func _on_ColorPicker_gui_input(event : InputEvent):
|
||||
if event is InputEventMouseButton && !event.pressed:
|
||||
if event is InputEventMouseButton and !event.pressed:
|
||||
_set_stored_value(_color_picker.color)
|
||||
update_cell_values()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user