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
|
||||
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
|
||||
|
||||
# The text for the tooltip of action1
|
||||
export(String) var action1
|
||||
|
||||
# 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
|
||||
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
|
||||
$tooltip_layer/tooltip.set_target(target_obj.action1 + " " + target_obj.action2)
|
||||
# $tooltip_layer/tooltip.set_target(target_obj.tooltip_name)
|
||||
$tooltip_layer/tooltip.set_target(target_obj.tooltip_name + " " + target_obj.tooltip2_name)
|
||||
|
||||
if escoria.action_manager.current_action != VERB_USE \
|
||||
and escoria.action_manager.current_tool == null \
|
||||
|
||||
@@ -106,9 +106,8 @@ pause_mode = 1
|
||||
script = ExtResource( 5 )
|
||||
global_id = "r1_wall_item1"
|
||||
esc_script = "res://gymkhana/rooms/home/esc/wall_item.esc"
|
||||
tooltip_name = "Artwork"
|
||||
action1 = "This is action1"
|
||||
action2 = "This is action2"
|
||||
tooltip_name = "This is action1"
|
||||
tooltip2_name = "This is action2"
|
||||
default_action = "action2"
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
inventory_texture = ExtResource( 10 )
|
||||
|
||||
Reference in New Issue
Block a user