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
  • CRAFTING UI
  • Functions | CraftingUI.cs
  1. CONTENT
  2. 03. Content
  3. 03.7 SHOP

ShopUI

PreviousShopItemDataNextShopButton

Last updated 27 days ago

ShopUIinherits from

ShopUI displays all available items to purchase. ShopUI is enabled on interacting with the Shop, and it´s disabled when leaving the Shop.

CRAFTING UI

  • shopButton: Buttons to instantiate in the Shop.

  • slidersContainer: When purchasing Weapons, slidersContainer is enabled to display Weapons Statistics.

  • damageSlider: Contained in slidersContainer, when purchasing weapons this slider gets filled to represent its damage statistics.

  • fireRateSlider: Contained in slidersContainer, when purchasing weapons this slider gets filled to represent its fire rate statistics.

  • magazineSlider: Contained in slidersContainer, when purchasing weapons this slider gets filled to represent its magazine statistics.

  • speedModifierSlider: Contained in slidersContainer, when purchasing weapons this slider gets filled to represent its speed modification statistics.

The rest of properties are part of .

Functions | CraftingUI.cs

UpdateHighlightedItemUI(Item_SO item)

Highlights the Item and displays its information in the shop.

  • item: Item to highlight.

UpdateIngredientDisplay(Recipe_SO, int amountToCraft)

Updates the Ingredient Displays of a highlighted Recipe based on the desired amount of items to craft.

  • recipe: Recipe_SO to display all information about.

  • amountToCraft: Amount to display on the UI. This needs to match the real amount to craft to and UI are up-to-date.

RefreshShopItems(ShopButton purchasedShopButton)

Re-initializes all shop items. This is generally called after a purchase has occured so the shop displays if the Player has enough resources or not after the purchase.

  • purchasedShopButton: Reference to the ShopButton that contains the Item that has been purchased.

TradeUI
TradeUI
Crafting Processes