img



img

Dialog Based Asset System


By: _ForgeUser3775581
Addon | img 999




Description

___________________________________________________________________________________________________________________________

About

Dialog Based Asset System (DBAS) is a GPLv3 licensed branch from public domain code Dialog based Inventory. The basis of this code was written by Helral and has been modified for consistent import and usage across all maps.

Information Mining

  • The library reads the items Button (Face) for the icon to use in the inventory.
  • The library reads the items Button Tooltip for the tooltip to use in the inventory.
  • The library reads the items size from the item class it has (1x1, 1x2, 5x5). for example: 1x1Misc = a 1 by 1 slot item. 2x3Armor = a 2 by 3 slot item.
  • The library reads the items Level for the level requirement for equipping an item.

Requirements

  • The unit that uses the inventory must have a SC2 inventory to be able to use items, equipment bonuses.
  • The unit must have restricted slots for equipment that match the restriction of the equipment panel.

Public API

Create Inventory Setup(Inventory ID (player #), X, Y, Background Image, Linked Unit, Inventory Ability)

  • Inventory ID (player #) - the player number
  • X - size in width (1x1 blocks)
  • Y - size in height (1x1 blocks)
  • Background Image - the image to be applied to the background of this inventory (can't really see this as of current)
  • Linked Unit - the hero whose inventory we shall be actually manipulating
  • Inventory Ability - a link to the hero's inventory ability (this ability includes the two item containers which the hero can use)

Create Equipment Setup(Equipment ID (player #), Width, Height, Background Image, Linked Unit, Inventory Ability)

  • Equipment ID (player #) - the player number
  • Width - the width of the equipment dialog
  • Height - the height of the equipment dialog
  • Background Image - the image to be applied to the background of the equipment dialog
  • Linked Unit - the hero whose inventory we shall be manipulating
  • Inventory Ability - a link to the hero's inventory ability (this ability includes the two item containers which the hero can use)

Add Equipment Slot(Equipment, X, Y, Width, Height, Item Class)

  • Equipment - the player number
  • X - the X offset of the position to place this equipment slot in the equipment dialog (relative to the top-left)
  • Y - the Y offset of the position to place this equipment slot in the equipment dialog (relative to the top-left)
  • Width - the width of this equipment slot
  • Height - the height of this equipment slot
  • Item Class - the item class associate with what types of items are allowed to be in this equipment slot

Show/Hide Inventory(Show/Hide, Triggering Player)

  • Show/Hide - either show or hide
  • Triggering Player - player number

Toggle Inventory Dialog(Triggering Player)

  • Triggering Player - player number

Show/Hide Equipment(Show/Hide, Triggering Player)

  • Show/Hide - either show or hide
  • Triggering Player - player number

Toggle Equipment Dialog(Player)

  • Player - player number

Show/Hide Dragged Dialog(Show/Hide, Player)

  • Show/Hide - either show or hide
  • Player - the player number

Set Full Inventory Drop Location(Drop In Front)

  • Drop In Front - preset either "Drop In Front of Hero" or "Drop On Top of Hero"

Example

An example of the usage of this library may be found here:

Known Issues

  • Sometimes items can get trapped in the equipment dialog (please tell me how you did this)

Upcoming Features

  • Ability to stack items which are flagged as stackable. Usage of these items should be function as well (release date unplanned)



About Project

Created: October 3rd 2023

Updated: October 3rd 2023

Project ID: 82998

License: All Rights Reserved

__________________________________________

Game Versions:

1.01.03

1.01.03

1.01.03

1.01.03

1.01.03

__________________________________________

Flavors:

WoW Retail

__________________________________________

Categories

Companions

Battle

__________________________________________

Main File

_ForgeUser3775581_Dialog Based Asset System.zip
  • Release
  • October 3rd 2023

    __________________________________________

    Recent File

    _ForgeUser3775581_Dialog Based Asset System.zip
  • Release
  • October 3rd 2023

    __________________________________________

    Members

    img
    _ForgeUser3775581
    Owner

    __________________________________________

    Report