Inventory Pro Add-On Documentation
  • Welcome to Inventory Pro Add-On for FPS Engine!
  • BEFORE WE START
    • Early Considerations
    • Add-On Compatibility
    • List of Tutorials
  • GETTING STARTED
    • 01. Basic Set-Up
    • 02. Roadmap
  • CONTENT
    • 03. Content
      • 03.1 CRAFTING
        • Recipe_SO
          • Ingredient
        • CraftingButton
        • CraftingProcess
        • CraftingUI
        • CraftingBench
        • IngredientUIIcon
      • 03.2 FAV MENU
        • FavItemSlot
        • FavItemsMenu
          • FavItemReference
      • 03.3 INTERACTABLES
        • InventoryItemPickeable
      • 03.4 INVENTORY
        • InventoryGridData_SO
        • InventoryProManager
        • GridGenerator
        • InventorySlot
        • SlotData
        • InventoryProManagerInputActions
      • 03.5 ITEMS
        • AppleItem_SO
        • EnergyDrinkItem_SO
      • 03.6 OTHERS
        • 03.6.1 TRADE HUB
          • TradeButton
          • TradeUI
          • TradeHub
        • Chest
        • ExamineItem
      • 03.7 SHOP
        • PurchasableItem
        • Shop
          • ShopItemData
        • ShopUI
        • ShopButton
      • 03.8 UI TOOLKIT
        • ContextMenu
        • HighlightInteractions
        • Padding
        • TooltipManager
    • 04. Shared Content for Add-Ons
  • HOW TO USE & GUIDES
    • Uninstalling the Add-On: Fixing Errors
    • Creating, Updating & Deleting Recipes
    • Inventory Designer: Creating, Updating & Deleting Inventory Grid Data
    • Working with Crafting Benches
    • Working with Chests
    • Working with Shops
    • Working with Purchasable Items
    • Working with Item Examination
    • Favorite Pinned Items Menu Considerations
    • Inventory, Hotbar & Chests Considerations
    • Tetris Inventory Considerations
    • Weapons & Ammo from the Inventory
    • Custom Item_SOs
    • Adding a New Inventory
  • FAQ
    • FAQ
  • SUPPORT
    • Support
Powered by GitBook
On this page
  1. CONTENT
  2. 03. Content
  3. 03.8 UI TOOLKIT

TooltipManager

PreviousPaddingNext04. Shared Content for Add-Ons

Last updated 27 days ago

Allows to visually indicate the current hovered Item ( If available ) in the Inventory. This action is not immediate, though, players need to hover the Item for a minimum amount of time before the Tooltip is enabled.

Additionally, Tooltips can contains Descriptions, as shown in the picture below:


  • dragImage: Image that displays the Icon of the current Dragged Item.

  • tooltip: Object that contains the Tooltip UI

  • rotateText: Text that displays the Input Keybind to rotate text ( only visible if using Tetris Inventory )

  • tooltipText: Text that displays the current hovered Item Name

  • tooltipDescription: Text that displays the current hovered Item Description

  • tooltipOffset: Offset Position added to the tooltip to avoid displaying it exactly on the mouse, for better readability

  • rightPadding: Horizontal space added to the text at the end of the line.

Functions | FavItemsMenu.cs

SetActive(bool value)

Visually enables or disables Tooltip and activates or deactivates it based on the given value

SetDragImageVisibility(bool visible, Sprite sprite, bool showRotateText)

Update Drag Image State ( Whether it is visible or not ) and the visuals to display

SetTooltipVisibility(bool visible, string name, string description)

Update Tooltip State ( Whether it is visible or not ) and the Item Parameters to represent ( Name & Description )

Disable()

Disables the Tooltip so it cannot be shown nor used.

Rotate(int rotation)

Rotates Drag Image. Used by Tetris Inventory only. Items in Grid Inventory cannot be rotated.

SetPosition(Vector2 pos)

Updates Tooltip Position in the UI