Difference between revisions of "ContKind"
From Wiki
(container note) |
|||
Line 16: | Line 16: | ||
</pre> | </pre> | ||
− | {{ | + | =See Also= |
+ | {{Container}} |
Latest revision as of 09:08, 7 September 2007
⇒ | The #contKind system variable determines the kind of the currently selected container/gump. Most menus have a kind attached to them. The can be utilized to find out if a crafting menu is open, if something is being dragged, if a runebook is open and many other things. |
Note: | This variable can change every time a new patch is released for the client, and EasyUO is updated. Good scripting standards dictate that you use variables in top of your script for #contKind's. In this way #contKind values can easily be updated when the client is patched. |
Note: | EasyUO currently only holds information in the #cont* on the "top most" gump. This means that the last gump that was opened or moved in any way is what EUO is reporting. |
Example
... if #contKind <> %craftMenuKind gosub useNewTool ...
See Also
Container
- Container system variables represent information available about the top most (or most reacent) gump that was opened, moved, or clicked in the Ultima Online Client.
#nextCPosX | ⇔ | Returns the x-coordinate of where the next container/gump will open |
#nextCPosY | ⇔ | Returns the y-coordinate of where the next container/gump will open |
#contSize | ⇒ | Returns the size of the currently selected container/gump |
#contPosX | ⇔ | Returns the x-coordinate of the currently selected container/gump |
#contPosY | ⇔ | Returns the y-coordinate of the currently selected container/gump |
#contKind | ⇒ | Returns the kind of the currently selected container/gump |
#contID | ⇒ | Returns the id of the currently selected container/gump |
#contType | ⇒ | Returns the object type of the currently selected container/gump |
#contName | ⇒ | Returns the name of currently selected container/gump |