Difference between revisions of "ContKind"

From Wiki
Jump to: navigation, search
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. 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:''
+
''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 12:
  
 
</pre>
 
</pre>
==== See Also ====
+
{{footer}}
{|
+
| 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]]
+
|}
+

Revision as of 11:58, 26 August 2005

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. 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.

Example

...
if #contKind <> %craftMenuKind
     gosub useNewTool
...

See also

Main Page Documentation