DayZ 1.24
Loading...
Searching...
No Matches
Widget UI system

Classes

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

static proto string TranslateString (string stringId)
 
static proto void SetLV (float lv)
 Set global LV of widgets, value between [-15, 0], default: 0, lower value is less bright.
 
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.
 
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 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
 
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.
 
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 external Widget WorkspaceWidget::CreateWidget (WidgetType type, int left, int top, int width, int height, WidgetFlags flags, int color, int sort, Widget parentWidget=NULL)
 Create widgets by WidgetType.
 
proto native external Widget WorkspaceWidget::CreateWidgets (string layout, Widget parentWidget=NULL, bool immedUpdate=true)
 Create widgets from *.layout file.
 
proto native Widget GetWidgetUnderCursor ()
 
proto native Widget CancelWidgetDragging ()
 
proto native Widget GetDragWidget ()
 
proto native void ReportMouse (int mousex, int mousey, Widget rootWidget)
 
proto native void Widget::SetTextSpacing (int horiz, int vert)
 
proto native void Widget::SetTextExactSize (int size)
 set text exact size. Exact Text flag must be enabled. 0 equals original size.
 
proto native void Widget::SetTextOffset (int left, int top)
 
proto native void Widget::SetText (string text, bool immedUpdate=true)
 
proto native void Widget::SetOutline (int outlineSize, int argb=0xFF000000)
 
proto native int Widget::GetOutlineSize ()
 
proto native int Widget::GetOutlineColor ()
 
proto native void Widget::SetShadow (int shadowSize, int shadowARGB=0xFF000000, float shadowOpacity=1, float shadowOffsetX=0, float shadowOffsetY=0)
 
proto native int Widget::GetShadowSize ()
 
proto native int Widget::GetShadowColor ()
 
proto native float Widget::GetShadowOpacity ()
 
proto void Widget::GetShadowOffset (out float sx, out float sy)
 
proto native void Widget::SetItalic (bool italic)
 
proto native bool Widget::GetItalic ()
 
proto native void Widget::SetBold (bool bold)
 
proto native bool Widget::GetBold ()
 
proto void Widget::GetTextSize (out int sx, out int sy)
 Returns text size in pixels.
 
proto void Widget::SetTextFormat (string text, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
 
proto native float Widget::GetTextProportion ()
 Get text proportion - ratio between button height and button text height in interval <0,1>
 
proto native void Widget::SetTextProportion (float val)
 Set text proportion - ratio between button height and button text height in interval <0,1>
 
proto native float TextWidget::SetLineBreakingOverride (int mode)
 
proto native float TextWidget::GetContentHeight ()
 
proto native float TextWidget::GetContentOffset ()
 
proto native void TextWidget::SetContentOffset (float offset, bool snapToLine=false)
 
proto native void TextWidget::ElideText (int line, float maxWidth, string str)
 
proto native int TextWidget::GetNumLines ()
 
proto native void TextWidget::SetLinesVisibility (int lineFrom, int lineTo, bool visible)
 
proto native float TextWidget::GetLineWidth (int line)
 
proto native void Widget::SetRefresh (int period, int offset)
 when period > 1 then every n-th frame will be rendered. Offset is initial counter.
 
proto native void Widget::SetResolutionScale (float xscale, float ycale)
 
proto native bool Widget::LoadImageFile (int num, string name, bool noCache=false)
 
proto native void Widget::SetImageTexture (int image, RTTextureWidget texture)
 
proto void Widget::GetImageSize (int image, out int sx, out int sy)
 returns size of image
 
proto native bool Widget::SetImage (int num)
 
proto native int Widget::GetImage ()
 Returns active image.
 
proto native void Widget::SetUV (float uv[4][2])
 
proto native bool Widget::LoadMaskTexture (string resource)
 
proto native float Widget::GetMaskProgress ()
 
proto native void Widget::SetMaskProgress (float value)
 
proto native float Widget::GetMaskTransitionWidth ()
 
proto native void Widget::SetMaskTransitionWidth (float value)
 
proto native int TextWidget::GetLinesCount ()
 
proto native int TextWidget::GetCarriageLine ()
 
proto native int TextWidget::GetCarriagePos ()
 
proto void TextWidget::GetText (out string text)
 
proto native void TextWidget::SetLine (int line, string text)
 
proto void TextWidget::GetLine (int line, out string text)
 
proto native void Widget::SetTextColor (int color)
 
proto native void Widget::SetTextOutline (int outlineSize, int argb=0xFF000000)
 
proto native int Widget::GetTextOutlineSize ()
 
proto native int Widget::GetTextOutlineColor ()
 
proto native void Widget::SetTextShadow (int shadowSize, int shadowARGB=0xFF000000, float shadowOpacity=1.0, float shadowOffsetX=0.0, float shadowOffsetY=0.0)
 
proto native int Widget::GetTextShadowSize ()
 
proto native int Widget::GetTextShadowColor ()
 
proto native float Widget::GetTextShadowOpacity ()
 
proto native float Widget::GetTextShadowOffsetX ()
 
proto native float Widget::GetTextShadowOffsetY ()
 
proto native void Widget::SetTextItalic (bool italic)
 
proto native bool Widget::GetTextItalic ()
 
proto native void Widget::SetTextBold (bool bold)
 
proto native bool Widget::GetTextBold ()
 
proto native void Widget::DrawLine (float x1, float y1, float x2, float y2, float width, int color)
 
proto native void Widget::Clear ()
 
proto string UIWidget::GetText ()
 
proto native void UIWidget::SetText (string str)
 
proto native void EditBoxWidget::SetHideText (bool hide)
 
proto native void UIWidget::SetMinMax (float minimum, float maximum)
 
proto native float UIWidget::GetMin ()
 
proto native float UIWidget::GetMax ()
 
proto native float UIWidget::GetCurrent ()
 
proto native void UIWidget::SetCurrent (float curr)
 
proto native float UIWidget::GetStep ()
 
proto native void UIWidget::SetStep (float step)
 
proto native bool UIWidget::GetState ()
 
proto native bool UIWidget::SetState (bool state)
 
proto void UIWidget::GetText (out string text)
 
proto native void UIWidget::SetTextOffset (float xoffset, float yoffset)
 
proto native void UIWidget::SetTextHorizontalAlignment (int align)
 
proto native void UIWidget::SetTextVerticalAlignment (int align)
 
proto native float UIWidget::GetTextProportion ()
 Get text proportion - ratio between button height and button text height in interval <0,1>
 
proto native void UIWidget::SetTextProportion (float val)
 Set text proportion - ratio between button height and button text height in interval <0,1>
 
proto native int UIWidget::AddItem (string item)
 
proto native void UIWidget::ClearAll ()
 
proto native void UIWidget::SetItem (int item, string value)
 
proto native void UIWidget::RemoveItem (int item)
 
proto native int UIWidget::GetNumItems ()
 
proto native int UIWidget::SetCurrentItem (int n)
 
proto native int UIWidget::GetCurrentItem ()
 
proto native bool UIWidget::IsChecked ()
 
proto native void UIWidget::SetChecked (bool checked)
 
proto native void UIWidget::ClearItems ()
 
proto native void UIWidget::SelectRow (int row)
 
proto native int UIWidget::GetSelectedRow ()
 
proto native void UIWidget::RemoveRow (int row)
 
proto native void UIWidget::EnsureVisible (int row)
 
proto native int SimpleListboxWidget::AddItem (string text, Class userData, int column, int row=-1)
 Insert new Row, if row = -1, new Row is inserted at the end otherwise at row index.
 
proto native void SimpleListboxWidget::SetItem (int position, string text, Class userData, int column)
 
proto bool SimpleListboxWidget::GetItemText (int row, int column, out string text)
 Get item.
 
proto void SimpleListboxWidget::GetItemData (int row, int column, out Class data)
 
proto native void SimpleListboxWidget::SetItemColor (int row, int column, int color)
 
proto native void UIWidget::AddChildAfter (Widget child, Widget after, bool immedUpdate=true)
 
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 bool Widget::Load (string name, bool looping=false, int startTime=0)
 Load a video file.
 
proto native void Widget::Unload ()
 Unload the video, freeing up all resources.
 
proto native bool Widget::Play ()
 Starts video playback.
 
proto native bool Widget::Pause ()
 Pauses video playback.
 
proto native bool Widget::Stop ()
 Stop video playback (cancels everything and sets it back at time 0)
 
proto native bool Widget::SetTime (int time, bool preload)
 Set the desired time for the video (preload decides whether it will already load the next frames too)
 
proto native int Widget::GetTime ()
 Get the current time of the video.
 
proto native int Widget::GetTotalTime ()
 Get the total time of the video.
 
proto native void Widget::SetLooping (bool looping)
 Set whether the video should loop.
 
proto native bool Widget::IsLooping ()
 Whether looping is enabled.
 
proto native bool Widget::IsPlaying ()
 QoL direct method to check for playing state (buffering while playing will still return true)
 
proto native VideoState Widget::GetState ()
 Get the current state of the video.
 
proto native void Widget::DisableSubtitles (bool disable)
 Enable/Disable subtitles.
 
proto native bool Widget::IsSubtitlesDisabled ()
 Check if subtitles are disabled (enabled by default if available, so it will return false even if there are none)
 
proto void Widget::SetCallback (VideoCallback cb, func fn)
 Set a callback for a certain video event.
 
int Widget::Play (VideoCommand cmd)
 Legacy, preferably not used, left for backwards compat.
 
bool Widget::LoadVideo (string name, int soundScene)
 Legacy, preferably not used, left for backwards compat.
 
proto native void SetGUIWidget (IEntity ent, int index, RTTextureWidget w)
 
bool ScriptedWidgetEventHandler::OnClick (Widget w, int x, int y, int button)
 
bool ScriptedWidgetEventHandler::OnModalResult (Widget w, int x, int y, int code, int result)
 
bool ScriptedWidgetEventHandler::OnDoubleClick (Widget w, int x, int y, int button)
 
bool ScriptedWidgetEventHandler::OnSelect (Widget w, int x, int y)
 
bool ScriptedWidgetEventHandler::OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
bool ScriptedWidgetEventHandler::OnFocus (Widget w, int x, int y)
 
bool ScriptedWidgetEventHandler::OnFocusLost (Widget w, int x, int y)
 
bool ScriptedWidgetEventHandler::OnMouseEnter (Widget w, int x, int y)
 
bool ScriptedWidgetEventHandler::OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
bool ScriptedWidgetEventHandler::OnMouseWheel (Widget w, int x, int y, int wheel)
 
bool ScriptedWidgetEventHandler::OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool ScriptedWidgetEventHandler::OnMouseButtonUp (Widget w, int x, int y, int button)
 
bool ScriptedWidgetEventHandler::OnController (Widget w, int control, int value)
 control is one of ControlID
 
bool ScriptedWidgetEventHandler::OnKeyDown (Widget w, int x, int y, int key)
 
bool ScriptedWidgetEventHandler::OnKeyUp (Widget w, int x, int y, int key)
 
bool ScriptedWidgetEventHandler::OnKeyPress (Widget w, int x, int y, int key)
 
bool ScriptedWidgetEventHandler::OnChange (Widget w, int x, int y, bool finished)
 
bool ScriptedWidgetEventHandler::OnDrag (Widget w, int x, int y)
 
bool ScriptedWidgetEventHandler::OnDragging (Widget w, int x, int y, Widget reciever)
 
bool ScriptedWidgetEventHandler::OnDraggingOver (Widget w, int x, int y, Widget reciever)
 
bool ScriptedWidgetEventHandler::OnDrop (Widget w, int x, int y, Widget reciever)
 
bool ScriptedWidgetEventHandler::OnDropReceived (Widget w, int x, int y, Widget reciever)
 
bool ScriptedWidgetEventHandler::OnResize (Widget w, int x, int y)
 
bool ScriptedWidgetEventHandler::OnChildAdd (Widget w, Widget child)
 
bool ScriptedWidgetEventHandler::OnChildRemove (Widget w, Widget child)
 
bool ScriptedWidgetEventHandler::OnUpdate (Widget w)
 
bool ScriptedWidgetEventHandler::OnEvent (EventType eventType, Widget target, int parameter0, int parameter1)
 
proto native void SetCursorWidget (Widget cursor)
 
proto native void ShowCursorWidget (bool show)
 direct mouse cursor visibility control
 
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.
 
enum VideoCommand GetScrollbarWidth
 

Detailed Description

Typedef Documentation

◆ EventType

Definition at line 55 of file EnWidgets.c.

◆ WidgetType

Definition at line 52 of file EnWidgets.c.

Enumeration Type Documentation

◆ ControlID

enum ControlID
private
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.

634{
635 CID_NONE = 0,
636 CID_SELECT = 1,//select/use focused
637 CID_BACK,
638 CID_LEFT, //navigation
639 CID_RIGHT,
640 CID_UP,
641 CID_DOWN,
642 CID_MENU, //get to main menu
643 CID_DRAG, //probably needed only for consoles
648};
@ CID_RADIALMENU
Definition EnWidgets.c:646
@ CID_SELECT
Definition EnWidgets.c:636
@ CID_NONE
Definition EnWidgets.c:635
@ CID_TABLEFT
Definition EnWidgets.c:644
@ CID_TABRIGHT
Definition EnWidgets.c:645
@ CID_LEFT
Definition EnWidgets.c:638
@ CID_RIGHT
Definition EnWidgets.c:639
@ CID_UP
Definition EnWidgets.c:640
@ CID_DRAG
Definition EnWidgets.c:643
@ CID_BACK
Definition EnWidgets.c:637
@ CID_COUNT
Definition EnWidgets.c:647
@ CID_MENU
Definition EnWidgets.c:642
@ CID_DOWN
Definition EnWidgets.c:641

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

531{
532 ON_PLAY,
533 ON_PAUSE,
534 ON_STOP,
535 ON_END,
536 ON_LOAD,
537 ON_SEEK,
540};
@ ON_PAUSE
Definition EnWidgets.c:533
@ ON_END
Definition EnWidgets.c:535
@ ON_BUFFERING_START
Definition EnWidgets.c:538
@ ON_STOP
Definition EnWidgets.c:534
@ ON_SEEK
Definition EnWidgets.c:537
@ ON_LOAD
Definition EnWidgets.c:536
@ ON_BUFFERING_END
Definition EnWidgets.c:539
@ ON_PLAY
Definition EnWidgets.c:532

◆ VideoCommand

enum VideoCommand
private

Legacy, do not use.

Enumerator
PLAY 
STOP 
REWIND 
POSITION 
REPEAT 
ISPLAYING 
KILL 

Definition at line 505 of file EnWidgets.c.

506{
507 PLAY,
508 STOP,
509 REWIND,
510 POSITION,
511 REPEAT,
512 ISPLAYING,
513 KILL
514};
@ PLAY
Definition EnWidgets.c:507
@ REWIND
Definition EnWidgets.c:509
@ STOP
Definition EnWidgets.c:508
@ KILL
Definition EnWidgets.c:513
@ ISPLAYING
Definition EnWidgets.c:512
@ REPEAT
Definition EnWidgets.c:511
@ POSITION
Definition EnWidgets.c:510

◆ VideoState

enum VideoState
private
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.

517{
519 NONE,
521 PLAYING,
523 PAUSED,
525 STOPPED,
527 FINISHED,
528};
@ STOPPED
The video is paused at the beginning of the video.
Definition EnWidgets.c:525
@ NONE
There is no video.
Definition EnWidgets.c:519
@ PAUSED
The video is paused.
Definition EnWidgets.c:523
@ FINISHED
The video is paused at the end of the video.
Definition EnWidgets.c:527
@ PLAYING
The video is playing.
Definition EnWidgets.c:521

◆ WidgetAlignment

Definition at line 88 of file EnWidgets.c.

89{
90 WA_LEFT = 0,
91 WA_RIGHT = 1,
92 WA_CENTER = 2,
93 WA_TOP = 0,
94 WA_BOTTOM = 1,
95}
WA_BOTTOM
Definition EnWidgets.c:4
WA_LEFT
Definition EnWidgets.c:0
WA_TOP
Definition EnWidgets.c:3
WA_CENTER
Definition EnWidgets.c:2
WA_RIGHT
Definition EnWidgets.c:1

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

58{
59 SOURCEALPHA, //< takes alpha from texture * alpha from color. If not set, considers texture as non-transparent and transparency is set only by color
60 BLEND, //< texture is blended with a surface base on alpha
61 ADDITIVE, //< texture is added to a surface based on alpha
62 VISIBLE, //<Widget is visible - ShowWidget(w, true)
63 NOWRAP, //< Do not do texture wrapping
64 CENTER, //< Centers TextWidgetTypeID
65 VCENTER, //< Centers TextWidgetTypeID verticaly
68 EXACTPOS, //< Uses physical resolution (g_iWidth, h_iHeight)
69 HEXACTSIZE, //< Uses physical resolution (g_iWidth)
70 VEXACTSIZE, //< Uses physical resolution (h_iHeight)
71 EXACTSIZE, //< Uses physical resolution
72 NOFILTER, //< no texture filtering (no blur)
73 RALIGN, //< Right alignment TextWidgetTypeID
74 STRETCH, //< Stretch texture to a full size
75 FLIPU, //< Flips texture in U axis
76 FLIPV, //< Flips texture in V axis
77 CUSTOMUV, //< ignores STRETCH/FLIPU/FLIPV and take custom UV set by SetWidgetUV()
80 NOFOCUS,
83 NOCLEAR,
85};
@ FLIPU
Definition EnWidgets.c:75
@ CLIPCHILDREN
Definition EnWidgets.c:81
@ EXACTSIZE
Definition EnWidgets.c:71
@ CENTER
Definition EnWidgets.c:64
@ CUSTOMUV
Definition EnWidgets.c:77
@ RALIGN
Definition EnWidgets.c:73
@ EXACTPOS
Definition EnWidgets.c:68
@ FLIPV
Definition EnWidgets.c:76
@ BLEND
Definition EnWidgets.c:60
@ DRAGGABLE
Definition EnWidgets.c:84
@ HEXACTSIZE
Definition EnWidgets.c:69
@ IGNOREPOINTER
Definition EnWidgets.c:78
@ NOFOCUS
Definition EnWidgets.c:80
@ HEXACTPOS
Definition EnWidgets.c:66
@ VCENTER
Definition EnWidgets.c:65
@ STRETCH
Definition EnWidgets.c:74
@ VEXACTSIZE
Definition EnWidgets.c:70
@ NOCLEAR
Definition EnWidgets.c:83
@ SOURCEALPHA
Definition EnWidgets.c:59
@ VEXACTPOS
Definition EnWidgets.c:67
@ RENDER_ALWAYS
Definition EnWidgets.c:82
@ VISIBLE
Definition EnWidgets.c:62
@ ADDITIVE
Definition EnWidgets.c:61
@ NOFILTER
Definition EnWidgets.c:72
@ DISABLED
Definition EnWidgets.c:79
@ NOWRAP
Definition EnWidgets.c:63

Function Documentation

◆ AddChild()

◆ AddChildAfter() [1/2]

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

◆ AddChildAfter() [2/2]

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

◆ AddItem() [1/2]

proto native int UIWidget::AddItem ( string item)
private

◆ AddItem() [2/2]

proto native int SimpleListboxWidget::AddItem ( string text,
Class userData,
int column,
int row = -1 )
private

Insert new Row, if row = -1, new Row is inserted at the end otherwise at row index.

◆ CancelWidgetDragging()

◆ Clear()

proto native void Widget::Clear ( )
private

◆ ClearAll()

proto native void UIWidget::ClearAll ( )
private

◆ ClearFlags()

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

◆ ClearItems()

proto native void UIWidget::ClearItems ( )
private

◆ CreateWidget()

proto native external Widget WorkspaceWidget::CreateWidget ( WidgetType type,
int left,
int top,
int width,
int height,
WidgetFlags flags,
int color,
int sort,
Widget parentWidget = NULL )
private

Create widgets by WidgetType.

◆ CreateWidgets()

proto native external Widget WorkspaceWidget::CreateWidgets ( string layout,
Widget parentWidget = NULL,
bool immedUpdate = true )
private

Create widgets from *.layout file.

◆ DisableSubtitles()

proto native void Widget::DisableSubtitles ( bool disable)
private

Enable/Disable subtitles.

Warning
Subtitles need font to be assigned to VideoWidget in layout to work
Note
Subtitles are in the format "videoName_Language.srt"
It is best to have the English one without language specified "videoName.srt"

◆ DrawLine()

proto native void Widget::DrawLine ( float x1,
float y1,
float x2,
float y2,
float width,
int color )
private

◆ ElideText()

proto native void TextWidget::ElideText ( int line,
float maxWidth,
string str )
private

◆ Enable()

proto native void Enable ( bool enable)
private

◆ EnsureVisible()

proto native void UIWidget::EnsureVisible ( int row)
private

◆ FindAnyWidget()

◆ FindAnyWidgetById()

proto native Widget FindAnyWidgetById ( int user_id)
private

◆ FindWidget()

proto native Widget FindWidget ( string pathname)
private

◆ GetAlpha()

proto native float GetAlpha ( )
private

◆ GetBold()

proto native bool Widget::GetBold ( )
private

◆ GetCarriageLine()

proto native int TextWidget::GetCarriageLine ( )
private

◆ GetCarriagePos()

proto native int TextWidget::GetCarriagePos ( )
private

◆ GetChildren()

proto native Widget GetChildren ( )
private

◆ GetColor()

proto native int GetColor ( )
private

◆ GetContentAlignmentH()

class SpacerBaseWidget extends UIWidget GetContentAlignmentH ( )
private

◆ GetContentAlignmentV()

proto native WidgetAlignment GetContentAlignmentV ( )
private

◆ GetContentHeight() [1/2]

proto native float TextWidget::GetContentHeight ( )
private

◆ GetContentHeight() [2/2]

proto native float GetContentHeight ( )
private

◆ GetContentOffset()

proto native float TextWidget::GetContentOffset ( )
private

◆ GetContentWidth()

proto native float GetContentWidth ( )
private

◆ GetCurrent()

proto native float UIWidget::GetCurrent ( )
private

◆ GetCurrentItem()

proto native int UIWidget::GetCurrentItem ( )
private

◆ GetDragWidget()

◆ GetFlags()

proto native int GetFlags ( )
private

◆ GetFocus()

◆ GetHScrollPos()

proto native float GetHScrollPos ( )
private

◆ GetHScrollPos01()

proto native float GetHScrollPos01 ( )
private

◆ GetImage()

proto native int Widget::GetImage ( )
private

Returns active image.

◆ GetImageSize()

proto void Widget::GetImageSize ( int image,
out int sx,
out int sy )
private

returns size of image

◆ GetItalic()

proto native bool Widget::GetItalic ( )
private

◆ GetItemData()

proto void SimpleListboxWidget::GetItemData ( int row,
int column,
out Class data )
private

◆ GetItemText()

proto bool SimpleListboxWidget::GetItemText ( int row,
int column,
out string text )
private

Get item.

Parameters
rowint Index of row
columnint Index of column
Returns
string Value in widget on row and column
string value;
textListboxWidg.GetItemText(2, 0, value);

◆ GetLine()

proto void TextWidget::GetLine ( int line,
out string text )
private

◆ GetLinesCount()

proto native int TextWidget::GetLinesCount ( )
private

◆ GetLineWidth()

proto native float TextWidget::GetLineWidth ( int line)
private

◆ GetMaskProgress()

proto native float Widget::GetMaskProgress ( )
private

Progress determines which alpha values are opaque using the mask. For progress x, pixels with alpha in mask < x will be opaque and alpha in mask > x will be transparent. For smooth transition see GetMaskTransitionWidth.

Returns
Progress from 0 to 1 representing alpha range which is visible in the mask

◆ GetMaskTransitionWidth()

proto native float Widget::GetMaskTransitionWidth ( )
private

Transition width 0.1 and progress 0.2 mean that values in mask lower than progress will be opaque. Values higher than (progress + width) will be transparent and values between progress and (progress + width) will be smoothly transitioned.

Returns
Width of the alpha mask transition representing softness of the transition.

◆ GetMax()

proto native float UIWidget::GetMax ( )
private

◆ GetMin()

proto native float UIWidget::GetMin ( )
private

◆ GetName()

◆ GetNumItems()

proto native int UIWidget::GetNumItems ( )
private

◆ GetNumLines()

proto native int TextWidget::GetNumLines ( )
private

◆ GetOutlineColor()

proto native int Widget::GetOutlineColor ( )
private

◆ GetOutlineSize()

proto native int Widget::GetOutlineSize ( )
private

◆ GetParent()

proto native Widget GetParent ( )
private

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 389 of file Effect.c.

390 {
391 return m_ParentObject;
392 }
Object m_ParentObject
Cached parent.
Definition Effect.c:39

References m_ParentObject.

Referenced by BuildPartServer(), DayZPlayer::CameraHandler(), Bolt_Base::CanBeActionTarget(), CanUseToolToBuildPart(), CanUseToolToDismantlePart(), ClosableHeader::ClosableHeader(), CreateCollisionTrigger(), DestroyMaterialsServer(), DestroyPartServer(), EntityLightSource::DetachFromParent(), DismantlePartServer(), DrawDebugCollisionBox(), DropNonUsableMaterialsServer(), DayZPlayer::EOnContact(), GetAttachmentParent(), GetCollisionBoxData(), EffectParticle::GetCurrentLocalPosition(), DayZPlayer::GetDebugText(), GetMaterialType(), ParticleSource::GetParticleParent(), GetRequiredParts(), HasConflictPart(), HasMaterials(), HasMaterialWithQuantityAttached(), HasRequiredPart(), HideConstructionPart(), HideConstructionPartPhysics(), IsColliding(), IsCollidingEx(), EntityAI::IsInTransport(), DayZPlayer::IsInVehicle(), Entity::IsInventoryVisible(), HumanCommandVehicle::IsObjectIgnoredOnGettingOut(), MaterialIsRuined(), EffectParticle::ReAttach(), ReceiveMaterialsServer(), EffectParticle::SetCurrentLocalPosition(), SetLockOnAttachedMaterials(), AttachmentsGroupContainer::SetNextActive(), LayoutHolder::SetNextActive(), AttachmentsGroupContainer::SetPreviousActive(), LayoutHolder::SetPreviousActive(), ShowConstructionPart(), ShowConstructionPartPhysics(), EffectParticle::Start(), Particle::StopParticle(), TakeMaterialsServer(), PlayerContainer::TransferItem(), ZombieContainer::TransferItem(), DayZPlayer::TriggerPullPlayerOutOfVehicle(), UpdateConstructionParts(), Container::UpdateHeaderText(), and VicinityContainer::UpdateInterval().

◆ GetPos()

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

◆ GetRotation()

proto native vector GetRotation ( )
private

returns rotation of widget in order roll, pitch, yaw

◆ GetScreenPos()

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

◆ GetScreenSize()

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

◆ GetScript()

proto void GetScript ( out Class data)
private

◆ GetSelectedRow()

proto native int UIWidget::GetSelectedRow ( )
private

◆ GetShadowColor()

proto native int Widget::GetShadowColor ( )
private

◆ GetShadowOffset()

proto void Widget::GetShadowOffset ( out float sx,
out float sy )
private

◆ GetShadowOpacity()

proto native float Widget::GetShadowOpacity ( )
private

◆ GetShadowSize()

proto native int Widget::GetShadowSize ( )
private

◆ GetSibling()

proto native Widget GetSibling ( )
private

◆ GetSize()

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

◆ GetSort()

proto native int GetSort ( )
private

◆ GetState() [1/2]

proto native bool UIWidget::GetState ( )
private

◆ GetState() [2/2]

proto native VideoState Widget::GetState ( )
private

Get the current state of the video.

◆ GetStep()

proto native float UIWidget::GetStep ( )
private

◆ GetStyleName()

proto native owned string GetStyleName ( )
private

◆ GetText() [1/3]

proto string UIWidget::GetText ( )
private

◆ GetText() [2/3]

proto void TextWidget::GetText ( out string text)
private

◆ GetText() [3/3]

proto void UIWidget::GetText ( out string text)
private

◆ GetTextBold()

proto native bool Widget::GetTextBold ( )
private

◆ GetTextItalic()

proto native bool Widget::GetTextItalic ( )
private

◆ GetTextOutlineColor()

proto native int Widget::GetTextOutlineColor ( )
private

◆ GetTextOutlineSize()

proto native int Widget::GetTextOutlineSize ( )
private

◆ GetTextProportion() [1/2]

proto native float Widget::GetTextProportion ( )
private

Get text proportion - ratio between button height and button text height in interval <0,1>

◆ GetTextProportion() [2/2]

proto native float UIWidget::GetTextProportion ( )
private

Get text proportion - ratio between button height and button text height in interval <0,1>

◆ GetTextShadowColor()

proto native int Widget::GetTextShadowColor ( )
private

◆ GetTextShadowOffsetX()

proto native float Widget::GetTextShadowOffsetX ( )
private

◆ GetTextShadowOffsetY()

proto native float Widget::GetTextShadowOffsetY ( )
private

◆ GetTextShadowOpacity()

proto native float Widget::GetTextShadowOpacity ( )
private

◆ GetTextShadowSize()

proto native int Widget::GetTextShadowSize ( )
private

◆ GetTextSize()

proto void Widget::GetTextSize ( out int sx,
out int sy )
private

Returns text size in pixels.

◆ GetTime()

proto native int Widget::GetTime ( )
private

Get the current time of the video.

Referenced by Widget::Play().

◆ GetTotalTime()

proto native int Widget::GetTotalTime ( )
private

Get the total time of the video.

◆ GetTypeID()

proto native WidgetType GetTypeID ( )
private

◆ GetTypeName()

proto native owned string GetTypeName ( )
private

◆ GetUserData()

proto void GetUserData ( out Class data)
private

◆ GetUserID()

proto native int GetUserID ( )
private

◆ GetVScrollPos()

proto native float GetVScrollPos ( )
private

◆ GetVScrollPos01()

proto native float GetVScrollPos01 ( )
private

◆ GetWidgetUnderCursor()

proto native Widget GetWidgetUnderCursor ( )
private

◆ HScrollStep()

proto native bool HScrollStep ( int steps)
private

◆ HScrollToPos()

proto native void HScrollToPos ( float pos)
private

◆ HScrollToPos01()

proto native void HScrollToPos01 ( float pos01)
private

◆ HScrollToWidget()

proto native void HScrollToWidget ( Widget child)
private

◆ IsChecked()

proto native bool UIWidget::IsChecked ( )
private

◆ IsControlClass()

proto native bool IsControlClass ( )
private

◆ IsLooping()

proto native bool Widget::IsLooping ( )
private

Whether looping is enabled.

◆ IsPlaying()

proto native bool Widget::IsPlaying ( )
private

QoL direct method to check for playing state (buffering while playing will still return true)

Referenced by Widget::Play().

◆ IsScrollbarVisible()

proto native bool IsScrollbarVisible ( )
private

◆ IsSubtitlesDisabled()

proto native bool Widget::IsSubtitlesDisabled ( )
private

Check if subtitles are disabled (enabled by default if available, so it will return false even if there are none)

◆ IsVisible()

◆ IsVisibleHierarchy()

proto native bool IsVisibleHierarchy ( )
private

◆ Load()

proto native bool Widget::Load ( string name,
bool looping = false,
int startTime = 0 )
private

Load a video file.

Referenced by Widget::LoadVideo().

◆ LoadImageFile()

proto native bool Widget::LoadImageFile ( int num,
string name,
bool noCache = false )
private

Loads image. When image of this 'num' is already loaded, then is replaced by new one.

Parameters
numNumber of image (0...7)
nameName of image file
noCacheDo not cache the texture
Returns
True when image is loaded, false otherwise

◆ LoadMaskTexture()

proto native bool Widget::LoadMaskTexture ( string resource)
private

Loads texture as mask used for alpha masking.

Parameters
resourceResource name of the texture to load
Returns
True if texture was successfully loaded, false otherwise

◆ LoadVideo()

bool Widget::LoadVideo ( string name,
int soundScene )
inlineprivate

Legacy, preferably not used, left for backwards compat.

Definition at line 622 of file EnWidgets.c.

623 {
624 return Load(name);
625 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native bool Load(string name, bool looping=false, int startTime=0)
Load a video file.

References Widget::Load(), and name.

◆ LoadWidgetImageSet()

proto native bool LoadWidgetImageSet ( string filename)
private

◆ LoadWidgetStyles()

proto native void LoadWidgetStyles ( string filename)
private

◆ OnChange()

bool ScriptedWidgetEventHandler::OnChange ( Widget w,
int x,
int y,
bool finished )
private

◆ OnChildAdd()

bool ScriptedWidgetEventHandler::OnChildAdd ( Widget w,
Widget child )
private

◆ OnChildRemove()

bool ScriptedWidgetEventHandler::OnChildRemove ( Widget w,
Widget child )
private

◆ OnClick()

bool ScriptedWidgetEventHandler::OnClick ( Widget w,
int x,
int y,
int button )
private

◆ OnController()

bool ScriptedWidgetEventHandler::OnController ( Widget w,
int control,
int value )
private

control is one of ControlID

◆ OnDoubleClick()

bool ScriptedWidgetEventHandler::OnDoubleClick ( Widget w,
int x,
int y,
int button )
private

◆ OnDrag()

bool ScriptedWidgetEventHandler::OnDrag ( Widget w,
int x,
int y )
private

◆ OnDragging()

bool ScriptedWidgetEventHandler::OnDragging ( Widget w,
int x,
int y,
Widget reciever )
private

◆ OnDraggingOver()

bool ScriptedWidgetEventHandler::OnDraggingOver ( Widget w,
int x,
int y,
Widget reciever )
private

◆ OnDrop()

bool ScriptedWidgetEventHandler::OnDrop ( Widget w,
int x,
int y,
Widget reciever )
private

◆ OnDropReceived()

bool ScriptedWidgetEventHandler::OnDropReceived ( Widget w,
int x,
int y,
Widget reciever )
private

◆ OnEvent()

bool ScriptedWidgetEventHandler::OnEvent ( EventType eventType,
Widget target,
int parameter0,
int parameter1 )
private

◆ OnFocus()

◆ OnFocusLost()

bool ScriptedWidgetEventHandler::OnFocusLost ( Widget w,
int x,
int y )
private

◆ OnItemSelected()

bool ScriptedWidgetEventHandler::OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
private

◆ OnKeyDown()

bool ScriptedWidgetEventHandler::OnKeyDown ( Widget w,
int x,
int y,
int key )
private

◆ OnKeyPress()

bool ScriptedWidgetEventHandler::OnKeyPress ( Widget w,
int x,
int y,
int key )
private

◆ OnKeyUp()

bool ScriptedWidgetEventHandler::OnKeyUp ( Widget w,
int x,
int y,
int key )
private

◆ OnModalResult()

bool ScriptedWidgetEventHandler::OnModalResult ( Widget w,
int x,
int y,
int code,
int result )
private

◆ OnMouseButtonDown()

bool ScriptedWidgetEventHandler::OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
private

◆ OnMouseButtonUp()

bool ScriptedWidgetEventHandler::OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
private

◆ OnMouseEnter()

bool ScriptedWidgetEventHandler::OnMouseEnter ( Widget w,
int x,
int y )
private

◆ OnMouseLeave()

bool ScriptedWidgetEventHandler::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
private

◆ OnMouseWheel()

bool ScriptedWidgetEventHandler::OnMouseWheel ( Widget w,
int x,
int y,
int wheel )
private

◆ OnResize()

bool ScriptedWidgetEventHandler::OnResize ( Widget w,
int x,
int y )
private

◆ OnSelect()

bool ScriptedWidgetEventHandler::OnSelect ( Widget w,
int x,
int y )
private

◆ OnUpdate()

bool ScriptedWidgetEventHandler::OnUpdate ( Widget w)
private

◆ Pause()

proto native bool Widget::Pause ( )
private

Pauses video playback.

Referenced by Widget::Play().

◆ Play() [1/2]

proto native bool Widget::Play ( )
private

Starts video playback.

Referenced by Widget::Play().

◆ Play() [2/2]

int Widget::Play ( VideoCommand cmd)
inlineprivate

Legacy, preferably not used, left for backwards compat.

Definition at line 587 of file EnWidgets.c.

588 {
589 // Yes, some things here do not do what the name implies
590 // And it returns 0 whether successful or not
591 // But this is what the old functionality looked like
592 // So for true backwards compat, it will be left like this
593 switch (cmd)
594 {
595 case VideoCommand.PLAY:
596 Play();
597 break;
598 case VideoCommand.STOP:
599 Pause();
600 break;
601 case VideoCommand.REWIND:
602 SetTime(0, true);
603 break;
604 case VideoCommand.POSITION:
605 return GetTime();
606 case VideoCommand.REPEAT:
607 SetLooping(true);
608 break;
609 case VideoCommand.ISPLAYING:
610 return IsPlaying();
611 case VideoCommand.KILL:
612 Unload();
613 break;
614 default:
615 return 0;
616 }
617
618 return 0;
619 }
VideoCommand
Legacy, do not use.
Definition EnWidgets.c:506
proto native bool IsPlaying()
QoL direct method to check for playing state (buffering while playing will still return true)
proto native int GetTime()
Get the current time of the video.
proto native bool Play()
Starts video playback.
proto native bool Pause()
Pauses video playback.
proto native void SetLooping(bool looping)
Set whether the video should loop.
proto native bool SetTime(int time, bool preload)
Set the desired time for the video (preload decides whether it will already load the next frames too)
proto native void Unload()
Unload the video, freeing up all resources.

References Widget::GetTime(), Widget::IsPlaying(), Widget::Pause(), Widget::Play(), Widget::SetLooping(), Widget::SetTime(), and Widget::Unload().

◆ ReloadTexture()

proto native bool ReloadTexture ( string path)
private

◆ RemoveChild()

proto native void RemoveChild ( Widget child)
private

◆ RemoveItem()

proto native void UIWidget::RemoveItem ( int item)
private

◆ RemoveRow()

proto native void UIWidget::RemoveRow ( int row)
private

◆ ReportMouse()

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

◆ SelectRow()

proto native void UIWidget::SelectRow ( int row)
private

◆ SetActiveWindow()

proto native bool SetActiveWindow ( Widget w,
bool resetFocus )
private

◆ SetAlpha()

proto native void SetAlpha ( float alpha)
private

◆ SetBold()

proto native void Widget::SetBold ( bool bold)
private

◆ SetCallback()

proto void Widget::SetCallback ( VideoCallback cb,
func fn )
private

Set a callback for a certain video event.

◆ SetChecked()

proto native void UIWidget::SetChecked ( bool checked)
private

◆ SetColor()

proto native void SetColor ( int color)
private

◆ SetContentAlignmentH()

proto native void SetContentAlignmentH ( WidgetAlignment alignment)
private

◆ SetContentAlignmentV()

proto native void SetContentAlignmentV ( WidgetAlignment alignment)
private

◆ SetContentOffset()

proto native void TextWidget::SetContentOffset ( float offset,
bool snapToLine = false )
private

◆ SetCurrent()

proto native void UIWidget::SetCurrent ( float curr)
private

◆ SetCurrentItem()

proto native int UIWidget::SetCurrentItem ( int n)
private

◆ SetCursorWidget()

proto native void SetCursorWidget ( Widget cursor)
private

◆ SetFlags()

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

◆ SetFocus()

◆ SetGUIWidget()

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

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)
private

◆ SetHideText()

proto native void EditBoxWidget::SetHideText ( bool hide)
private

◆ SetImage()

proto native bool Widget::SetImage ( int num)
private

Switches to another image, if it's loaded

Parameters
numNumber of image.
Returns
True when there is such image, false otherwise.

◆ SetImageTexture()

proto native void Widget::SetImageTexture ( int image,
RTTextureWidget texture )
private

◆ SetItalic()

proto native void Widget::SetItalic ( bool italic)
private

◆ SetItem() [1/2]

proto native void UIWidget::SetItem ( int item,
string value )
private

◆ SetItem() [2/2]

proto native void SimpleListboxWidget::SetItem ( int position,
string text,
Class userData,
int column )
private

◆ SetItemColor()

proto native void SimpleListboxWidget::SetItemColor ( int row,
int column,
int color )
private

◆ SetLine()

proto native void TextWidget::SetLine ( int line,
string text )
private

◆ SetLineBreakingOverride()

proto native float TextWidget::SetLineBreakingOverride ( int mode)
private

◆ SetLinesVisibility()

proto native void TextWidget::SetLinesVisibility ( int lineFrom,
int lineTo,
bool visible )
private

◆ SetLooping()

proto native void Widget::SetLooping ( bool looping)
private

Set whether the video should loop.

Referenced by Widget::Play().

◆ SetLV()

static proto void SetLV ( float lv)
staticprivate

Set global LV of widgets, value between [-15, 0], default: 0, lower value is less bright.

◆ SetMaskProgress()

proto native void Widget::SetMaskProgress ( float value)
private

See GetMaskProgress for explanation.

Parameters
valueExpected in range [0; 1]

◆ SetMaskTransitionWidth()

proto native void Widget::SetMaskTransitionWidth ( float value)
private

See GetMaskTransitionWidth for transition width explanation.

Parameters
valueExpected in range [0; 1]

◆ SetMinMax()

proto native void UIWidget::SetMinMax ( float minimum,
float maximum )
private

◆ SetModal()

proto native void SetModal ( Widget w)
private

◆ SetName()

proto native void SetName ( string name)
private

◆ SetObjectLighting()

static proto void SetObjectLighting ( float lighting)
staticprivate

Set global lighting of objects in widgets, value between [0, 1], default: 1, lower value is less bright.

◆ SetOutline()

proto native void Widget::SetOutline ( int outlineSize,
int argb = 0xFF000000 )
private

◆ SetPos()

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

◆ SetRefresh()

proto native void Widget::SetRefresh ( int period,
int offset )
private

when period > 1 then every n-th frame will be rendered. Offset is initial counter.

◆ SetResolutionScale()

proto native void Widget::SetResolutionScale ( float xscale,
float ycale )
private

◆ SetRotation()

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

◆ SetScreenPos()

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

◆ SetScreenSize()

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

◆ SetShadow()

proto native void Widget::SetShadow ( int shadowSize,
int shadowARGB = 0xFF000000,
float shadowOpacity = 1,
float shadowOffsetX = 0,
float shadowOffsetY = 0 )
private

◆ SetSize()

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

Referenced by updateSlotsCount().

◆ SetSort()

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

◆ SetState()

proto native bool UIWidget::SetState ( bool state)
private

◆ SetStep()

proto native void UIWidget::SetStep ( float step)
private

◆ SetText() [1/2]

proto native void UIWidget::SetText ( string str)
private

◆ SetText() [2/2]

proto native void Widget::SetText ( string text,
bool immedUpdate = true )
private

◆ SetTextBold()

proto native void Widget::SetTextBold ( bool bold)
private

◆ SetTextColor()

proto native void Widget::SetTextColor ( int color)
private

◆ SetTextExactSize()

proto native void Widget::SetTextExactSize ( int size)
private

set text exact size. Exact Text flag must be enabled. 0 equals original size.

◆ SetTextFormat()

proto void Widget::SetTextFormat ( string text,
void param1 = NULL,
void param2 = NULL,
void param3 = NULL,
void param4 = NULL,
void param5 = NULL,
void param6 = NULL,
void param7 = NULL,
void param8 = NULL,
void param9 = NULL )
private

◆ SetTextHorizontalAlignment()

proto native void UIWidget::SetTextHorizontalAlignment ( int align)
private
Parameters
alignALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT

◆ SetTextItalic()

proto native void Widget::SetTextItalic ( bool italic)
private

◆ SetTextLV()

static proto void SetTextLV ( float lv)
staticprivate

Set global LV of the text in widgets, value between [-15, 0], default: 0, lower value is less bright.

◆ SetTextOffset() [1/2]

proto native void UIWidget::SetTextOffset ( float xoffset,
float yoffset )
private

◆ SetTextOffset() [2/2]

proto native void Widget::SetTextOffset ( int left,
int top )
private

◆ SetTextOutline()

proto native void Widget::SetTextOutline ( int outlineSize,
int argb = 0xFF000000 )
private

◆ SetTextProportion() [1/2]

proto native void Widget::SetTextProportion ( float val)
private

Set text proportion - ratio between button height and button text height in interval <0,1>

◆ SetTextProportion() [2/2]

proto native void UIWidget::SetTextProportion ( float val)
private

Set text proportion - ratio between button height and button text height in interval <0,1>

◆ SetTextShadow()

proto native void Widget::SetTextShadow ( int shadowSize,
int shadowARGB = 0xFF000000,
float shadowOpacity = 1.0,
float shadowOffsetX = 0.0,
float shadowOffsetY = 0.0 )
private

◆ SetTextSpacing()

proto native void Widget::SetTextSpacing ( int horiz,
int vert )
private

◆ SetTextVerticalAlignment()

proto native void UIWidget::SetTextVerticalAlignment ( int align)
private
Parameters
alignALIGN_CENTER, ALIGN_TOP, ALIGN_BOTTOM

◆ SetTime()

proto native bool Widget::SetTime ( int time,
bool preload )
private

Set the desired time for the video (preload decides whether it will already load the next frames too)

Referenced by Widget::Play().

◆ SetTransform()

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

◆ SetUserData()

proto native void SetUserData ( Class data)
private

◆ SetUserID()

proto native void SetUserID ( int id)
private

◆ SetUV()

proto native void Widget::SetUV ( float uv[4][2])
private

When WF_CUSTOMUV is set, we can supply our own UV coords instead of computed ones.

Parameters
uvPointer to array of at least 8 floats (4 corners * 2 floats for u/v)

◆ SetWidgetWorld()

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

◆ Show()

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

◆ ShowCursorWidget()

proto native void ShowCursorWidget ( bool show)
private

direct mouse cursor visibility control

Referenced by CGame::RefreshMouseCursorVisibility().

◆ Stop()

proto native bool Widget::Stop ( )
private

Stop video playback (cancels everything and sets it back at time 0)

◆ TranslateString()

static proto string TranslateString ( string stringId)
staticprivate

◆ Unlink()

proto native void Unlink ( )
private

◆ Unload()

proto native void Widget::Unload ( )
private

Unload the video, freeing up all resources.

Referenced by Widget::Play().

◆ Update()

override void Update ( )
private

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

Definition at line 118 of file PlayerSoundManager.c.

119 {
120 if (!m_Player.IsAlive())
121 {
122 SetAllowUpdate(false);
123 return;
124 }
125
126#ifndef NO_GUI
127 for (int i = 0; i < MAX_HANDLERS_COUNT; i++)
129#endif
130 }
void SetAllowUpdate(bool enable)
ref SoundHandlerBase m_Handlers[MAX_HANDLERS_COUNT]
const int MAX_HANDLERS_COUNT
enum eSoundHandlers m_Player
void Update()

References CONTROLLER_DESELECT_TIMEOUT, CONTROLLER_TILT_TRESHOLD_SELECT, g_Game, ScriptedWidgetEventHandler::GetActionManager(), GetAngleInDegrees(), GetCurrentCrossHair(), GetGame(), GetMouseDistance(), GetMousePointerAngle(), GetObjectByDegAngle(), ScriptedWidgetEventHandler::GetPlayer(), GetZone(), HideRadialSelector(), DayZPlayer::IsPlayerSelected(), IsUsingController(), IsUsingMouse(), last_time, m_AM, m_ControllerAngle, m_ControllerTilt, m_ControllerTimout, m_Handlers, m_IsControllerTimoutEnabled, m_Player, m_player, m_RegisteredClass, m_SelectedObject, m_Stamina, m_StaminaLastValue, m_StaminaZoneOffset, m_UpdateTimer, m_WidgetInitialized, MAX_HANDLERS_COUNT, MOUSE_SAFE_ZONE_RADIUS, ProcessSound(), randomValuesArray, Refresh(), SelectCrossHair(), SetAgents(), SetAllowUpdate(), ShowCrossHair(), ShowRadialSelector(), UpdataControllerInput(), PlayerSoundManagerBase::Update(), and USAGE_COUNT.

Referenced by ScriptedWidgetEventHandler::ContinuousActionProgress(), CrossHairSelector(), GameplayEffectsData::ForceStop(), Init(), ScriptedWidgetEventHandler::ItemActionsWidget(), ScriptedWidgetEventHandler::ProjectedCrosshair(), RadialProgressBar::RadialProgressBar(), ParticleSource::SetWiggle(), PlayerSoundManagerBase::Update(), Hud::UpdateHitDirEffects(), ScriptedWidgetEventHandler::~ContinuousActionProgress(), ~CrossHairSelector(), ScriptedWidgetEventHandler::~ItemActionsWidget(), ScriptedWidgetEventHandler::~ProjectedCrosshair(), and RadialProgressBar::~RadialProgressBar().

◆ VScrollStep()

proto native bool VScrollStep ( int steps)
private

◆ VScrollToPos()

proto native void VScrollToPos ( float pos)
private

◆ VScrollToPos01()

proto native void VScrollToPos01 ( float pos01)
private

◆ VScrollToWidget()

proto native void VScrollToWidget ( Widget child)
private

Variable Documentation

◆ GetScrollbarWidth

class GridSpacerWidget extends SpacerWidget GetScrollbarWidth
private

◆ WA_BOTTOM

WA_BOTTOM = 1

Definition at line 4 of file EnWidgets.c.

◆ WA_CENTER

WA_CENTER = 2

Definition at line 2 of file EnWidgets.c.

◆ WA_LEFT

WA_LEFT = 0

Definition at line 0 of file EnWidgets.c.

◆ WA_RIGHT

WA_RIGHT = 1

Definition at line 1 of file EnWidgets.c.

◆ WA_TOP

WA_TOP = 0

Definition at line 3 of file EnWidgets.c.

◆ Widget

void Widget
private

Defined in code.