Jump to content

Tool tip? Tell me how to add it.


zkckzkck10

Recommended Posts

1685725336_.png.fb8f4582965734b1366ddd17efd1cde7.png

 

If you look at the other right-click menu, it's a tooltip called "nomagazine found". There's a tooth coming out.
Tooltip like the picture below?What do I have to touch to make a help window for this menu that doesn't come out?

 

What do you call this window?

ISInventoryPaneContextMenu.addToolTip()
Do I have to touch something else, not this tooltip?

 

1622167449_.PNG.84a9284add5b0dc27fbcbddae9c87e8d.PNG

Edited by zkckzkck10
Link to comment
Share on other sites

  • 1 month later...

Yes you use

ISInventoryPaneContextMenu.addToolTip()

 

Then you need to add the tooltip to the option itself.

 

Here is an example of adding a option to equip an item on your back and gives a tooltip to it.


local option = context:addOption(getText("ContextMenu_Equip_on_your_Back"), items, ISInventoryPaneContextMenu.onWearItems, player);

if playerObj:getClothingItem_Back() then

    local tooltip = ISInventoryPaneContextMenu.addToolTip()

    tooltip.description = getText("Tooltip_ReplaceWornItems") .. " <LINE> <INDENT:20> "

    tooltip.description = tooltip.description .. playerObj:getClothingItem_Back():getDisplayName()

    option.toolTip = tooltip

end

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...