CHANGE TO escoria-core. Added ESCItem.tooltip2_name
This commit is contained in:
@@ -98,14 +98,11 @@ export(bool) var player_orients_on_arrival = true
|
|||||||
# item
|
# item
|
||||||
export(int) var interaction_direction
|
export(int) var interaction_direction
|
||||||
|
|
||||||
# The name for the tooltip of this item
|
# The text for the tooltip of action1
|
||||||
export(String) var tooltip_name
|
export(String) var tooltip_name
|
||||||
|
|
||||||
# The text for the tooltip of action1
|
|
||||||
export(String) var action1
|
|
||||||
|
|
||||||
# The text for the tooltip of action2
|
# The text for the tooltip of action2
|
||||||
export(String) var action2
|
export(String) var tooltip2_name
|
||||||
|
|
||||||
# Default action to use if object is not in the inventory
|
# Default action to use if object is not in the inventory
|
||||||
export(String) var default_action
|
export(String) var default_action
|
||||||
|
|||||||
@@ -221,8 +221,7 @@ func element_focused(element_id: String) -> void:
|
|||||||
)
|
)
|
||||||
|
|
||||||
var target_obj = escoria.object_manager.get_object(element_id).node
|
var target_obj = escoria.object_manager.get_object(element_id).node
|
||||||
$tooltip_layer/tooltip.set_target(target_obj.action1 + " " + target_obj.action2)
|
$tooltip_layer/tooltip.set_target(target_obj.tooltip_name + " " + target_obj.tooltip2_name)
|
||||||
# $tooltip_layer/tooltip.set_target(target_obj.tooltip_name)
|
|
||||||
|
|
||||||
if escoria.action_manager.current_action != VERB_USE \
|
if escoria.action_manager.current_action != VERB_USE \
|
||||||
and escoria.action_manager.current_tool == null \
|
and escoria.action_manager.current_tool == null \
|
||||||
|
|||||||
@@ -106,9 +106,8 @@ pause_mode = 1
|
|||||||
script = ExtResource( 5 )
|
script = ExtResource( 5 )
|
||||||
global_id = "r1_wall_item1"
|
global_id = "r1_wall_item1"
|
||||||
esc_script = "res://gymkhana/rooms/home/esc/wall_item.esc"
|
esc_script = "res://gymkhana/rooms/home/esc/wall_item.esc"
|
||||||
tooltip_name = "Artwork"
|
tooltip_name = "This is action1"
|
||||||
action1 = "This is action1"
|
tooltip2_name = "This is action2"
|
||||||
action2 = "This is action2"
|
|
||||||
default_action = "action2"
|
default_action = "action2"
|
||||||
combine_when_selected_action_is_in = [ ]
|
combine_when_selected_action_is_in = [ ]
|
||||||
inventory_texture = ExtResource( 10 )
|
inventory_texture = ExtResource( 10 )
|
||||||
|
|||||||
Reference in New Issue
Block a user