Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCrosshairs Class Reference

Display component for item that should display a crosshair when selected More...

Inheritance diagram for essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCrosshairs:
essentials.action.ItemFramework.Interactive.DisplayComponents.IItemDisplayComponent

Public Member Functions

 ItemCrosshairs (string crosshairImage=null)
 
void Dispose ()
 

Detailed Description

Display component for item that should display a crosshair when selected

Constructor & Destructor Documentation

essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCrosshairs.ItemCrosshairs ( string  crosshairImage = null)
23  {
24  this.InjectDependencies();
25  _ui = _screen.AddControl(_resources.Resolve("items/ui/crosshair.xml"));
26  _icon = _resources.Resolve(crosshairImage ?? "items/crosshairs/cross.png");
27  _ui.Invoke("SetImage", _icon);
28  }
void Invoke(string name, params object[] args)
Invoke the specified method name with optional arguments
string Resolve(string resource)
Resolves the data.
IBuiControl AddControl(string filename)
Add a control by filename

Member Function Documentation

void essentials.action.ItemFramework.Interactive.DisplayComponents.ItemCrosshairs.Dispose ( )
31  {
32  _ui.Destroy();
33  }
void Destroy()
Destroy the control

The documentation for this class was generated from the following file: