Difference between revisions of "ContKind"

From Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{header|container|ro|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.}}
== #contKind ==
+
'''Container System Variables'''
+
=== Description ===
+
{{ro}}
+
  
The [[Var_contKind|#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.}}
 +
 +
 +
{{contNote}}
  
''Note:''
 
''This variable can change every time a new patch is released for the client. Good scripting standards dictate that you use variables in top of your script for [[Var_contKind|#contKind]]'s. This way they can easily be updated if the client is patched.''
 
  
 
==== Example ====
 
==== Example ====
Line 19: Line 16:
  
 
</pre>
 
</pre>
==== See Also ====
+
=See Also=
{|
+
{{Container}}
| Width=200px | [[Var_contPosX|&#0035;contPosX]] || Width=200px | [[Var_contPosY|&#0035;contPosY]] || Width=200px | [[Var_contID|&#0035;contID]] || Width=200px | [[Var_contType|&#0035;contType]] 
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#Container|Container System Variables]]
+
|}
+

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