Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
Widget UI system

Data Structures

class  WorkspaceWidget
 
class  Widget
 
class  TextWidget
 
class  UIWidget
 
class  EditBoxWidget
 
class  SimpleProgressBarWidget
 
class  BaseListboxWidget
 
class  SimpleListboxWidget
 
class  SpacerWidget
 
class  ScriptedWidgetEventHandler
 map: item x vector(index, width, height) More...
 

Typedefs

typedef TypeID WidgetType
 
typedef TypeID EventType
 

Enumerations

enum  WidgetFlags {
  SOURCEALPHA, BLEND, ADDITIVE, VISIBLE,
  NOWRAP, CENTER, VCENTER, HEXACTPOS,
  VEXACTPOS, EXACTPOS, HEXACTSIZE, VEXACTSIZE,
  EXACTSIZE, NOFILTER, RALIGN, STRETCH,
  FLIPU, FLIPV, CUSTOMUV, IGNOREPOINTER,
  DISABLED, NOFOCUS, CLIPCHILDREN, RENDER_ALWAYS,
  NOCLEAR, DRAGGABLE
}
 
enum  WidgetAlignment
 
enum  VideoCommand {
  PLAY, STOP, REWIND, POSITION,
  REPEAT, ISPLAYING, KILL
}
 Legacy, do not use. More...
 
enum  VideoState {
  NONE, PLAYING, PAUSED, STOPPED,
  FINISHED
}
 
enum  VideoCallback {
  ON_PLAY, ON_PAUSE, ON_STOP, ON_END,
  ON_LOAD, ON_SEEK, ON_BUFFERING_START, ON_BUFFERING_END
}
 
enum  ControlID {
  CID_NONE = 0, CID_SELECT = 1, CID_BACK, CID_LEFT,
  CID_RIGHT, CID_UP, CID_DOWN, CID_MENU,
  CID_DRAG, CID_TABLEFT, CID_TABRIGHT, CID_RADIALMENU,
  CID_COUNT
}
 

Functions

proto native owned string GetName ()
 
proto native void SetName (string name)
 
proto native owned string GetTypeName ()
 
proto native WidgetType GetTypeID ()
 
proto native void Show (bool show, bool immedUpdate=true)
 
proto native void Enable (bool enable)
 
proto native int GetFlags ()
 
proto native int SetFlags (int flags, bool immedUpdate=true)
 
proto native int GetSort ()
 
proto native void SetSort (int sort, bool immedUpdate=true)
 
proto native int ClearFlags (int flags, bool immedUpdate=true)
 
proto native bool IsControlClass ()
 
proto native owned string GetStyleName ()
 
proto void GetUserData (out Class data)
 
proto native void SetUserData (Class data)
 
proto native int GetUserID ()
 
proto native void SetUserID (int id)
 
proto native bool IsVisible ()
 
proto native bool IsVisibleHierarchy ()
 
proto native void SetPos (float x, float y, bool immedUpdate=true)
 
proto native void SetSize (float w, float h, bool immedUpdate=true)
 
proto native void SetScreenPos (float x, float y, bool immedUpdate=true)
 
proto native void SetScreenSize (float w, float h, bool immedUpdate=true)
 
proto native void SetColor (int color)
 
proto native int GetColor ()
 
proto native void SetRotation (float roll, float pitch, float yaw, bool immedUpdate=true)
 
proto native vector GetRotation ()
 returns rotation of widget in order roll, pitch, yaw More...
 
proto native void SetAlpha (float alpha)
 
proto native float GetAlpha ()
 
proto void GetPos (out float x, out float y)
 
proto void GetSize (out float width, out float height)
 
proto void GetScreenPos (out float x, out float y)
 
proto void GetScreenSize (out float width, out float height)
 
proto native void SetTransform (vector mat[4], bool immedUpdate=true)
 
proto native Widget GetParent ()
 Get parent of the Effect. More...
 
proto native Widget GetChildren ()
 
proto native Widget GetSibling ()
 
proto native void AddChild (Widget child, bool immedUpdate=true)
 
proto native void RemoveChild (Widget child)
 
proto native volatile void Update ()
 
proto void GetScript (out Class data)
 
proto native Widget FindWidget (string pathname)
 
proto native Widget FindAnyWidget (string pathname)
 
proto native Widget FindAnyWidgetById (int user_id)
 
proto native void SetHandler (ScriptedWidgetEventHandler eventHandler)
 
proto native void Unlink ()
 
proto native Widget GetWidgetUnderCursor ()
 
proto native Widget CancelWidgetDragging ()
 
proto native Widget GetDragWidget ()
 
proto native void ReportMouse (int mousex, int mousey, Widget rootWidget)
 
class SpacerBaseWidget extends UIWidget GetContentAlignmentH ()
 
proto native void AddChildAfter (Widget child, Widget after, bool immedUpdate=true)
 
proto native void SetContentAlignmentH (WidgetAlignment alignment)
 
proto native WidgetAlignment GetContentAlignmentV ()
 
proto native void SetContentAlignmentV (WidgetAlignment alignment)
 
proto native bool IsScrollbarVisible ()
 
proto native float GetContentWidth ()
 
proto native float GetContentHeight ()
 
proto native float GetHScrollPos ()
 
proto native float GetHScrollPos01 ()
 
proto native bool HScrollStep (int steps)
 
proto native void HScrollToPos (float pos)
 
proto native void HScrollToPos01 (float pos01)
 
proto native void HScrollToWidget (Widget child)
 
proto native float GetVScrollPos ()
 
proto native float GetVScrollPos01 ()
 
proto native bool VScrollStep (int steps)
 
proto native void VScrollToPos (float pos)
 
proto native void VScrollToPos01 (float pos01)
 
proto native void VScrollToWidget (Widget child)
 
proto native void SetGUIWidget (IEntity ent, int index, RTTextureWidget w)
 
proto native void SetCursorWidget (Widget cursor)
 
proto native void ShowCursorWidget (bool show)
 direct mouse cursor visibility control More...
 
proto native bool LoadWidgetImageSet (string filename)
 
proto native void LoadWidgetStyles (string filename)
 
proto native bool SetActiveWindow (Widget w, bool resetFocus)
 
proto native void SetFocus (Widget w)
 
proto native void SetModal (Widget w)
 
proto native Widget GetFocus ()
 
proto native void SetWidgetWorld (RenderTargetWidget w, IEntity wrldEntity, int camera)
 
proto native bool ReloadTexture (string path)
 

Variables

 WA_LEFT = 0
 
 WA_RIGHT = 1
 
 WA_CENTER = 2
 
 WA_TOP = 0
 
 WA_BOTTOM = 1
 
WorkspaceWidget Widget ()
 Defined in code. More...
 
enum VideoCommand GetScrollbarWidth
 

Detailed Description

Typedef Documentation

◆ EventType

typedef TypeID EventType

Definition at line 55 of file enwidgets.c.

◆ WidgetType

typedef TypeID WidgetType

Definition at line 52 of file enwidgets.c.

Enumeration Type Documentation

◆ ControlID

enum ControlID
Enumerator
CID_NONE 
CID_SELECT 
CID_BACK 
CID_LEFT 
CID_RIGHT 
CID_UP 
CID_DOWN 
CID_MENU 
CID_DRAG 
CID_TABLEFT 
CID_TABRIGHT 
CID_RADIALMENU 
CID_COUNT 

Definition at line 633 of file enwidgets.c.

◆ VideoCallback

Enumerator
ON_PLAY 
ON_PAUSE 
ON_STOP 
ON_END 
ON_LOAD 
ON_SEEK 
ON_BUFFERING_START 
ON_BUFFERING_END 

Definition at line 530 of file enwidgets.c.

◆ VideoCommand

Legacy, do not use.

Enumerator
PLAY 
STOP 
REWIND 
POSITION 
REPEAT 
ISPLAYING 
KILL 

Definition at line 505 of file enwidgets.c.

◆ VideoState

enum VideoState
Enumerator
NONE 

There is no video.

PLAYING 

The video is playing.

PAUSED 

The video is paused.

STOPPED 

The video is paused at the beginning of the video.

FINISHED 

The video is paused at the end of the video.

Definition at line 516 of file enwidgets.c.

◆ WidgetAlignment

Definition at line 88 of file enwidgets.c.

◆ WidgetFlags

Enumerator
SOURCEALPHA 
BLEND 
ADDITIVE 
VISIBLE 
NOWRAP 
CENTER 
VCENTER 
HEXACTPOS 
VEXACTPOS 
EXACTPOS 
HEXACTSIZE 
VEXACTSIZE 
EXACTSIZE 
NOFILTER 
RALIGN 
STRETCH 
FLIPU 
FLIPV 
CUSTOMUV 
IGNOREPOINTER 
DISABLED 
NOFOCUS 
CLIPCHILDREN 
RENDER_ALWAYS 
NOCLEAR 
DRAGGABLE 

Definition at line 57 of file enwidgets.c.

Function Documentation

◆ AddChild()

proto native void AddChild ( Widget  child,
bool  immedUpdate = true 
)

◆ AddChildAfter()

proto native void GetContentAlignmentH::AddChildAfter ( Widget  child,
Widget  after,
bool  immedUpdate = true 
)

◆ CancelWidgetDragging()

proto native Widget CancelWidgetDragging ( )

◆ ClearFlags()

proto native int ClearFlags ( int  flags,
bool  immedUpdate = true 
)

◆ Enable()

proto native void Enable ( bool  enable)

◆ FindAnyWidget()

proto native Widget FindAnyWidget ( string  pathname)

◆ FindAnyWidgetById()

proto native Widget FindAnyWidgetById ( int  user_id)

◆ FindWidget()

proto native Widget FindWidget ( string  pathname)

◆ GetAlpha()

proto native float GetAlpha ( )

◆ GetChildren()

proto native Widget GetChildren ( )

◆ GetColor()

proto native int GetColor ( )

◆ GetContentAlignmentH()

class SpacerBaseWidget extends UIWidget GetContentAlignmentH ( )

◆ GetContentAlignmentV()

proto native WidgetAlignment GetContentAlignmentV ( )

◆ GetContentHeight()

proto native float GetContentHeight ( )

◆ GetContentWidth()

proto native float GetContentWidth ( )

◆ GetDragWidget()

proto native Widget GetDragWidget ( )

◆ GetFlags()

proto native int GetFlags ( )

◆ GetFocus()

proto native Widget GetFocus ( )

◆ GetHScrollPos()

proto native float GetHScrollPos ( )

◆ GetHScrollPos01()

proto native float GetHScrollPos01 ( )

◆ GetName()

string GetName ( )

Definition at line 117 of file syncedvalue.c.

◆ GetParent()

proto native Widget GetParent ( )

Get parent of the Effect.

Note
Same as GetAttachmentParent, but more generic name
Warning
Only gets the cached variable, for immediate effect use GetCurrent variant
Returns
Object The parent of the Effect

Definition at line 405 of file effect.c.

◆ GetPos()

proto void GetPos ( out float  x,
out float  y 
)

◆ GetRotation()

proto native vector GetRotation ( )

returns rotation of widget in order roll, pitch, yaw

◆ GetScreenPos()

proto void GetScreenPos ( out float  x,
out float  y 
)

◆ GetScreenSize()

proto void GetScreenSize ( out float  width,
out float  height 
)

◆ GetScript()

proto void GetScript ( out Class  data)

◆ GetSibling()

proto native Widget GetSibling ( )

◆ GetSize()

proto void GetSize ( out float  width,
out float  height 
)

◆ GetSort()

proto native int GetSort ( )

◆ GetStyleName()

proto native owned string GetStyleName ( )

◆ GetTypeID()

proto native WidgetType GetTypeID ( )

◆ GetTypeName()

proto native owned string GetTypeName ( )

◆ GetUserData()

proto void GetUserData ( out Class  data)

◆ GetUserID()

proto native int GetUserID ( )

◆ GetVScrollPos()

proto native float GetVScrollPos ( )

◆ GetVScrollPos01()

proto native float GetVScrollPos01 ( )

◆ GetWidgetUnderCursor()

proto native Widget GetWidgetUnderCursor ( )

◆ HScrollStep()

proto native bool HScrollStep ( int  steps)

◆ HScrollToPos()

proto native void HScrollToPos ( float  pos)

◆ HScrollToPos01()

proto native void HScrollToPos01 ( float  pos01)

◆ HScrollToWidget()

proto native void HScrollToWidget ( Widget  child)

◆ IsControlClass()

proto native bool IsControlClass ( )

◆ IsScrollbarVisible()

proto native bool IsScrollbarVisible ( )

◆ IsVisible()

proto native bool IsVisible ( )

◆ IsVisibleHierarchy()

proto native bool IsVisibleHierarchy ( )

◆ LoadWidgetImageSet()

proto native bool LoadWidgetImageSet ( string  filename)

◆ LoadWidgetStyles()

proto native void LoadWidgetStyles ( string  filename)

◆ ReloadTexture()

proto native bool ReloadTexture ( string  path)

◆ RemoveChild()

proto native void RemoveChild ( Widget  child)

◆ ReportMouse()

proto native void ReportMouse ( int  mousex,
int  mousey,
Widget  rootWidget 
)

◆ SetActiveWindow()

proto native bool SetActiveWindow ( Widget  w,
bool  resetFocus 
)

◆ SetAlpha()

proto native void SetAlpha ( float  alpha)

◆ SetColor()

proto native void SetColor ( int  color)

◆ SetContentAlignmentH()

proto native void SetContentAlignmentH ( WidgetAlignment  alignment)

◆ SetContentAlignmentV()

proto native void SetContentAlignmentV ( WidgetAlignment  alignment)

◆ SetCursorWidget()

proto native void SetCursorWidget ( Widget  cursor)

◆ SetFlags()

proto native int SetFlags ( int  flags,
bool  immedUpdate = true 
)

◆ SetFocus()

proto native void SetFocus ( Widget  w)

◆ SetGUIWidget()

proto native void SetGUIWidget ( IEntity  ent,
int  index,
RTTextureWidget  w 
)

sets Widget typu RTTextureWidgetTypeID, to which it is possible to reference in shader as $rendertarget it is posible to use only after object selection. When selecting another object, it is necessary to set GUI widget again

◆ SetHandler()

proto native void SetHandler ( ScriptedWidgetEventHandler  eventHandler)

◆ SetModal()

proto native void SetModal ( Widget  w)

◆ SetName()

proto native void SetName ( string  name)

◆ SetPos()

proto native void SetPos ( float  x,
float  y,
bool  immedUpdate = true 
)

◆ SetRotation()

proto native void SetRotation ( float  roll,
float  pitch,
float  yaw,
bool  immedUpdate = true 
)

◆ SetScreenPos()

proto native void SetScreenPos ( float  x,
float  y,
bool  immedUpdate = true 
)

◆ SetScreenSize()

proto native void SetScreenSize ( float  w,
float  h,
bool  immedUpdate = true 
)

◆ SetSize()

proto native void SetSize ( float  w,
float  h,
bool  immedUpdate = true 
)

◆ SetSort()

proto native void SetSort ( int  sort,
bool  immedUpdate = true 
)

◆ SetTransform()

proto native void SetTransform ( vector  mat[4],
bool  immedUpdate = true 
)

◆ SetUserData()

proto native void SetUserData ( Class  data)

◆ SetUserID()

proto native void SetUserID ( int  id)

◆ SetWidgetWorld()

proto native void SetWidgetWorld ( RenderTargetWidget  w,
IEntity  wrldEntity,
int  camera 
)

◆ Show()

proto native void Show ( bool  show,
bool  immedUpdate = true 
)

◆ ShowCursorWidget()

proto native void ShowCursorWidget ( bool  show)

direct mouse cursor visibility control

◆ Unlink()

proto native void Unlink ( )

◆ Update()

override void Update ( )

don't show crosshair if it's disabled in profile or from server

Definition at line 125 of file playersoundmanager.c.

◆ VScrollStep()

proto native bool VScrollStep ( int  steps)

◆ VScrollToPos()

proto native void VScrollToPos ( float  pos)

◆ VScrollToPos01()

proto native void VScrollToPos01 ( float  pos01)

◆ VScrollToWidget()

proto native void VScrollToWidget ( Widget  child)

Variable Documentation

◆ GetScrollbarWidth

class GridSpacerWidget extends SpacerWidget GetScrollbarWidth

◆ WA_BOTTOM

WA_BOTTOM = 1

Definition at line 60 of file enwidgets.c.

◆ WA_CENTER

WA_CENTER = 2

Definition at line 58 of file enwidgets.c.

◆ WA_LEFT

WA_LEFT = 0

Definition at line 56 of file enwidgets.c.

◆ WA_RIGHT

WA_RIGHT = 1

Definition at line 57 of file enwidgets.c.

◆ WA_TOP

WA_TOP = 0

Definition at line 59 of file enwidgets.c.

◆ Widget

proto private void Widget

Defined in code.