mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Fix GDScript warnings pertaining to unused arguments
Those warnings can be ignored by prefixing the argument with an underscore.
This commit is contained in:
parent
e06586edce
commit
386473845e
|
@ -115,5 +115,5 @@ func _on_EditPaletteColorPicker_color_changed(color : Color) -> void:
|
||||||
working_palette.set_color(current_swatch, color)
|
working_palette.set_color(current_swatch, color)
|
||||||
_refresh_hint_tooltip(current_swatch)
|
_refresh_hint_tooltip(current_swatch)
|
||||||
|
|
||||||
func _refresh_hint_tooltip(index : int):
|
func _refresh_hint_tooltip(_index : int):
|
||||||
palette_grid.get_child(current_swatch).hint_tooltip = "#" + working_palette.get_color_data(current_swatch).to_upper() + " " + working_palette.get_color_name(current_swatch)
|
palette_grid.get_child(current_swatch).hint_tooltip = "#" + working_palette.get_color_data(current_swatch).to_upper() + " " + working_palette.get_color_name(current_swatch)
|
||||||
|
|
|
@ -7,7 +7,7 @@ export var draggable := false
|
||||||
|
|
||||||
var drag_preview_texture = preload("res://Assets/Graphics/Palette/swatch_drag_preview.png")
|
var drag_preview_texture = preload("res://Assets/Graphics/Palette/swatch_drag_preview.png")
|
||||||
|
|
||||||
func get_drag_data(position):
|
func get_drag_data(_position):
|
||||||
var data = null;
|
var data = null;
|
||||||
if(draggable):
|
if(draggable):
|
||||||
#print(String(get_instance_id()) + ": Drag Start");
|
#print(String(get_instance_id()) + ": Drag Start");
|
||||||
|
@ -18,8 +18,8 @@ func get_drag_data(position):
|
||||||
set_drag_preview(drag_icon);
|
set_drag_preview(drag_icon);
|
||||||
return data;
|
return data;
|
||||||
|
|
||||||
func can_drop_data(position, data):
|
func can_drop_data(_position, _data):
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
func drop_data(position, data):
|
func drop_data(_position, data):
|
||||||
emit_signal("on_drop_data", data.source_index, index);
|
emit_signal("on_drop_data", data.source_index, index);
|
||||||
|
|
|
@ -43,7 +43,6 @@ func on_import_palette() -> void:
|
||||||
Global.palette_import_file_dialog.popup_centered()
|
Global.palette_import_file_dialog.popup_centered()
|
||||||
|
|
||||||
func on_palette_import_file_selected(path) -> void:
|
func on_palette_import_file_selected(path) -> void:
|
||||||
var file := File.new()
|
|
||||||
var palette : Palette = null
|
var palette : Palette = null
|
||||||
if path.to_lower().ends_with("json"):
|
if path.to_lower().ends_with("json"):
|
||||||
palette = Palette.new().load_from_file(path)
|
palette = Palette.new().load_from_file(path)
|
||||||
|
|
Loading…
Reference in a new issue