DayZ 1.24
Loading...
Searching...
No Matches
ScriptConsoleTabBase Class Reference
Inheritance diagram for ScriptConsoleTabBase:
[legend]
Collaboration diagram for ScriptConsoleTabBase:
[legend]

Protected Member Functions

void ScriptConsoleTabBase (Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
 
void Init (int id)
 
int GetID ()
 
Widget GetRoot ()
 
bool IsSelected ()
 
void Select (bool select, ScriptConsoleTabBase selectedHandler)
 
void OnSelected ()
 
void Show (bool show, ScriptConsoleTabBase selectedHandler)
 
Widget GetButton ()
 
void Update (float timeslice)
 
bool OnChange (Widget w, int x, int y, bool finished)
 
bool OnClick (Widget w, int x, int y, int button)
 
bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
bool OnKeyDown (Widget w, int x, int y, int key)
 
bool OnDoubleClick (Widget w, int x, int y, int button)
 
void OnRPCEx (int rpc_type, ParamsReadContext ctx)
 
bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool OnKeyPress (Widget w, int x, int y, int key)
 
void AddItemToClipboard (TextListboxWidget text_listbox_widget)
 

Protected Attributes

int m_Id
 
bool m_IsSelected
 
Widget m_ParentRoot
 
Widget m_Root
 
Widget m_Button
 
ScriptConsole m_ScriptConsole
 
ScriptConsoleTabBase m_Parent
 
PluginConfigDebugProfile m_ConfigDebugProfile
 
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
 

Detailed Description

Definition at line 1 of file ScriptConsoleTabBase.c.

Constructor & Destructor Documentation

◆ ScriptConsoleTabBase()

void ScriptConsoleTabBase::ScriptConsoleTabBase ( Widget root,
ScriptConsole console,
Widget button,
ScriptConsoleTabBase parent = null )
inlineprotected

Definition at line 13 of file ScriptConsoleTabBase.c.

14 {
17 m_Root = root;
18 if (parent)
19 m_ParentRoot = parent.GetRoot();
20 else
21 m_ParentRoot = console.layoutRoot;
23 m_ConfigDebugProfileFixed = PluginConfigDebugProfileFixed.Cast(GetPlugin(PluginConfigDebugProfileFixed));
24 }
PluginBase GetPlugin(typename plugin_type)
PluginConfigDebugProfile m_ConfigDebugProfile
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed

References GetPlugin(), m_Button, m_ConfigDebugProfile, m_ConfigDebugProfileFixed, m_ParentRoot, m_Root, and m_ScriptConsole.

Member Function Documentation

◆ AddItemToClipboard()

void ScriptConsoleTabBase::AddItemToClipboard ( TextListboxWidget text_listbox_widget)
inlineprotected

Definition at line 84 of file ScriptConsoleTabBase.c.

85 {
86 int selected_row_index = text_listbox_widget.GetSelectedRow();
87 if (selected_row_index != -1)
88 {
89 string item_name;
91 GetGame().CopyToClipboard(item_name);
92 }
93 }
proto native CGame GetGame()

References GetGame().

Referenced by ScriptConsoleConfigTab::OnClick(), ScriptConsoleItemsTab::OnClick(), and ScriptConsoleSoundsTab::OnClick().

◆ GetButton()

Widget ScriptConsoleTabBase::GetButton ( )
inlineprotected

Definition at line 68 of file ScriptConsoleTabBase.c.

69 {
70 return m_Button;
71 }

References m_Button.

◆ GetID()

int ScriptConsoleTabBase::GetID ( )
inlineprotected

Definition at line 31 of file ScriptConsoleTabBase.c.

32 {
33 return m_Id;
34 }

References m_Id.

◆ GetRoot()

Widget ScriptConsoleTabBase::GetRoot ( )
inlineprotected

Definition at line 36 of file ScriptConsoleTabBase.c.

37 {
38 return m_Root;
39 }

References m_Root.

◆ Init()

void ScriptConsoleTabBase::Init ( int id)
inlineprotected

Definition at line 26 of file ScriptConsoleTabBase.c.

27 {
28 m_Id = id;
29 }

References m_Id.

◆ IsSelected()

bool ScriptConsoleTabBase::IsSelected ( )
inlineprotected

Definition at line 41 of file ScriptConsoleTabBase.c.

42 {
43 return m_IsSelected;
44 }

References m_IsSelected.

◆ OnChange()

bool ScriptConsoleTabBase::OnChange ( Widget w,
int x,
int y,
bool finished )
protected

◆ OnClick()

bool ScriptConsoleTabBase::OnClick ( Widget w,
int x,
int y,
int button )
protected

Referenced by UIScriptedMenu::OnClick().

◆ OnDoubleClick()

bool ScriptConsoleTabBase::OnDoubleClick ( Widget w,
int x,
int y,
int button )
protected

◆ OnItemSelected()

bool ScriptConsoleTabBase::OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
protected

◆ OnKeyDown()

bool ScriptConsoleTabBase::OnKeyDown ( Widget w,
int x,
int y,
int key )
protected

◆ OnKeyPress()

bool ScriptConsoleTabBase::OnKeyPress ( Widget w,
int x,
int y,
int key )
protected

◆ OnMouseButtonDown()

bool ScriptConsoleTabBase::OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
protected

◆ OnRPCEx()

void ScriptConsoleTabBase::OnRPCEx ( int rpc_type,
ParamsReadContext ctx )
protected

◆ OnSelected()

void ScriptConsoleTabBase::OnSelected ( )
protected

Referenced by Select().

◆ Select()

void ScriptConsoleTabBase::Select ( bool select,
ScriptConsoleTabBase selectedHandler )
inlineprotected

Definition at line 46 of file ScriptConsoleTabBase.c.

47 {
49 if (m_Root)
50 {
53 if (btn)
54 btn.SetState(select);
55 }
56 if (select)
57 OnSelected();
58 }
void Show()
Definition DayZGame.c:155

References m_Button, m_IsSelected, m_Root, OnSelected(), and Show().

◆ Show()

void ScriptConsoleTabBase::Show ( bool show,
ScriptConsoleTabBase selectedHandler )
inlineprotected

Definition at line 62 of file ScriptConsoleTabBase.c.

63 {
64 m_Root.Show(show);
65 m_Root.Enable(show);
66 }

References m_Root.

◆ Update()

void ScriptConsoleTabBase::Update ( float timeslice)
protected

Member Data Documentation

◆ m_Button

Widget ScriptConsoleTabBase::m_Button
protected

Definition at line 7 of file ScriptConsoleTabBase.c.

Referenced by GetButton(), ScriptConsoleTabBase(), and Select().

◆ m_ConfigDebugProfile

◆ m_ConfigDebugProfileFixed

◆ m_Id

int ScriptConsoleTabBase::m_Id
protected

Definition at line 3 of file ScriptConsoleTabBase.c.

Referenced by GetID(), and Init().

◆ m_IsSelected

bool ScriptConsoleTabBase::m_IsSelected
protected

Definition at line 4 of file ScriptConsoleTabBase.c.

Referenced by IsSelected(), and Select().

◆ m_Parent

ScriptConsoleTabBase ScriptConsoleTabBase::m_Parent
protected

Definition at line 9 of file ScriptConsoleTabBase.c.

◆ m_ParentRoot

Widget ScriptConsoleTabBase::m_ParentRoot
protected

Definition at line 5 of file ScriptConsoleTabBase.c.

Referenced by ScriptConsoleItemsTab::Init(), and ScriptConsoleTabBase().

◆ m_Root

Widget ScriptConsoleTabBase::m_Root
protected

◆ m_ScriptConsole

ScriptConsole ScriptConsoleTabBase::m_ScriptConsole
protected

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