Difference between revisions of "GetHUD"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns a reference to the CHUD object. </onlyinclude> <syntaxhighlight lang="cpp"> CHUD@ getHUD() </syntaxhighlight> Example from Entities/Characters/Scripts/...")
 
 
Line 7: Line 7:
  
 
Example from Entities/Characters/Scripts/ArcherLogic.as:
 
Example from Entities/Characters/Scripts/ArcherLogic.as:
<syntaxhighlight lang="cpp" highlight="6">
+
<syntaxhighlight lang="cpp" highlight="6, 7">
 
void ManageCursors( CBlob@ this )
 
void ManageCursors( CBlob@ this )
 
{
 
{

Latest revision as of 19:08, 22 August 2012

Returns a reference to the CHUD object.

CHUD@ getHUD()

Example from Entities/Characters/Scripts/ArcherLogic.as:

void ManageCursors( CBlob@ this )
{
  // set cursor
  if (this.isMyPlayer())
  {
    if (getHUD().hasButtons())      getHUD().SetDefaultCursor();  }	
}