Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
enwidgets.c File Reference

Go to the source code of this file.

Data Structures

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

Typedefs

typedef TypeID EventType
typedef TypeID WidgetType

Enumerations

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
}
enum  VideoCallback {
  ON_PLAY , ON_PAUSE , ON_STOP , ON_END ,
  ON_LOAD , ON_SEEK , ON_BUFFERING_START , ON_BUFFERING_END ,
  ON_ERROR
}
enum  VideoCommand {
  PLAY , STOP , REWIND , POSITION ,
  REPEAT , ISPLAYING , KILL
}
 Legacy, do not use. More...
enum  VideoState {
  NONE , PLAYING , PAUSED , STOPPED ,
  FINISHED
}
enum  WidgetAlignment
enum  WidgetFlags {
  SOURCEALPHA , BLEND , ADDITIVE , VISIBLE ,
  NOWRAP , CENTER , VCENTER , HEXACTPOS ,
  VEXACTPOS , EXACTPOS , HEXACTSIZE , VEXACTSIZE ,
  EXACTSIZE , NOFILTER , RALIGN , STRETCH ,
  FLIPU , FLIPV , CUSTOMUV , IGNOREPOINTER ,
  DISABLED = 0 , NOFOCUS , CLIPCHILDREN , RENDER_ALWAYS ,
  NOCLEAR , DRAGGABLE
}

Functions

proto native void AddChild (Widget child, bool immedUpdate=true)
proto native void AddChildAfter (Widget child, Widget after, bool immedUpdate=true)
proto native Widget CancelWidgetDragging ()
proto native int ClearFlags (int flags, bool immedUpdate=true)
proto native void Enable (bool enable)
proto native Widget FindAnyWidget (string pathname)
proto native Widget FindAnyWidgetById (int user_id)
proto native Widget FindWidget (string pathname)
proto native float GetAlpha ()
proto native Widget GetChildren ()
proto native int GetColor ()
class SpacerBaseWidget extends UIWidget GetContentAlignmentH ()
proto native WidgetAlignment GetContentAlignmentV ()
proto native float GetContentHeight ()
proto native float GetContentWidth ()
proto native Widget GetDragWidget ()
proto native int GetFlags ()
proto native Widget GetFocus ()
proto native float GetHScrollPos ()
proto native float GetHScrollPos01 ()
proto native owned string GetName ()
 Test name getter. Strictly for UI porposes!
proto native Widget GetParent ()
 Get parent of the Effect.
proto void GetPos (out float x, out float y)
proto native vector GetRotation ()
 returns rotation of widget in order roll, pitch, yaw
proto void GetScreenPos (out float x, out float y)
proto void GetScreenSize (out float width, out float height)
proto void GetScript (out Class data)
proto native Widget GetSibling ()
proto void GetSize (out float width, out float height)
proto native int GetSort ()
 ADDS the value to the existing flag.
proto native owned string GetStyleName ()
proto native WidgetType GetTypeID ()
proto native owned string GetTypeName ()
proto void GetUserData (out Class data)
proto native int GetUserID ()
proto native float GetVScrollPos ()
proto native float GetVScrollPos01 ()
proto native Widget GetWidgetUnderCursor ()
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 bool IsControlClass ()
 SUBSTRACTS the value to the existing flag.
proto native bool IsScrollbarVisible ()
proto native bool IsVisible ()
proto native bool IsVisibleHierarchy ()
proto native bool LoadWidgetImageSet (string filename)
proto native void LoadWidgetStyles (string filename)
proto native bool ReloadTexture (string path)
proto native void RemoveChild (Widget child)
proto native void ReportMouse (int mousex, int mousey, Widget rootWidget)
proto native bool SetActiveWindow (Widget w, bool resetFocus)
proto native void SetAlpha (float alpha)
proto native void SetColor (int color)
proto native void SetContentAlignmentH (WidgetAlignment alignment)
proto native void SetContentAlignmentV (WidgetAlignment alignment)
proto native void SetCursorWidget (Widget cursor)
proto native int SetFlags (int flags, bool immedUpdate=true)
proto native void SetFocus (Widget w)
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.
proto native void SetHandler (ScriptedWidgetEventHandler eventHandler)
static proto void SetLV (float lv)
 Set global LV of widgets, value between [-15, 0], default: 0, lower value is less bright.
proto native void SetModal (Widget w)
proto native void SetName (string name)
static proto void SetObjectLighting (float lighting)
 Set global lighting of objects in widgets, value between [0, 1], default: 1, lower value is less bright.
proto native void SetPos (float x, float y, bool immedUpdate=true)
proto native void SetRotation (float roll, float pitch, float yaw, 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 SetSize (float w, float h, bool immedUpdate=true)
proto native void SetSort (int sort, bool immedUpdate=true)
static proto void SetTextLV (float lv)
 Set global LV of the text in widgets, value between [-15, 0], default: 0, lower value is less bright.
proto native void SetTransform (vector mat[4], bool immedUpdate=true)
proto native void SetUserData (Class data)
proto native void SetUserID (int id)
proto native void SetWidgetWorld (RenderTargetWidget w, IEntity wrldEntity, int camera)
proto native void Show (bool show, bool immedUpdate=true)
proto native void ShowCursorWidget (bool show)
 direct mouse cursor visibility control
static proto string TranslateString (string stringId)
proto native void Unlink ()
proto native volatile void Update ()
proto native bool VScrollStep (int steps)
proto native void VScrollToPos (float pos)
proto native void VScrollToPos01 (float pos01)
proto native void VScrollToWidget (Widget child)

Variables

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