zkckzkck10 Posted February 19, 2023 Share Posted February 19, 2023 (edited) 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? Edited February 19, 2023 by zkckzkck10 Link to comment Share on other sites More sharing options...
SomeAve Posted April 16, 2023 Share Posted April 16, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now