Skip to content

Commit

Permalink
Current Entry Shows Full Path
Browse files Browse the repository at this point in the history
It does so via its own tooltip.
  • Loading branch information
mechPenSketch committed Nov 1, 2022
1 parent 063b960 commit 4d33f72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions addons/database/main_screen/resource_container.gd
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ func list_properties(c, cf:String, fn):
else:
var res_name = full_path.rsplit("/")[-1]
option_btn.set_text(res_name)

option_btn.set_tooltip(full_path)
else:
option_btn.set_text(option_btn.NULL_VALUE_TEXT)

Expand Down
2 changes: 1 addition & 1 deletion addons/database/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="Database"
description="A scene tab dedicated to editing data."
author="mechPenSketch"
version="1.1"
version="1.2"
script="plugin.gd"
1 change: 1 addition & 0 deletions addons/database/property_editor/res_options.gd
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func _item_selected(index:int):
if id == main_screen.OPT_INSTALOAD:
#SETTING A RESOURCE
var full_path = get_item_tooltip(index)
set_tooltip(full_path)
emit_signal("resource_is_set", get_parent(), full_path)
else:
main_screen.item_id_effect(self, id)
Expand Down

0 comments on commit 4d33f72

Please sign in to comment.