DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ScriptConsoleTabBase.c
См. документацию.
2{
3 protected int m_Id;
4 protected bool m_IsSelected;
5 protected bool m_IsShiftDown;
7 protected Widget m_Root;
8 protected Widget m_Button;
10 protected ScriptConsoleTabBase m_Parent;//for subtabs
12 protected PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed;
13
14 void Init(int id)
15 {
16 m_Id = id;
17 }
18
19 void InitializeTab(Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent = null)
20 {
21 m_Button = button;
22 m_ScriptConsole = console;
23 m_Root = root;
24 if (parent)
25 m_ParentRoot = parent.GetRoot();
26 else
27 m_ParentRoot = console.layoutRoot;
29 m_ConfigDebugProfileFixed = PluginConfigDebugProfileFixed.Cast(GetPlugin(PluginConfigDebugProfileFixed));
30 }
31
32 int GetID()
33 {
34 return m_Id;
35 }
36
38 {
39 return m_Root;
40 }
41
43 {
44 return m_IsSelected;
45 }
46
47 void Select(bool select, ScriptConsoleTabBase selectedHandler)
48 {
49 m_IsSelected = select;
50 if (m_Root)
51 {
52 Show(select, selectedHandler);
53 }
54 if (select)
55 OnSelected();
56 }
57
58 void OnSelected();
59
60 void Show(bool show, ScriptConsoleTabBase selectedHandler)
61 {
62 m_Root.Show(show);
63 m_Root.Enable(show);
64 }
65
67 {
68 return m_Button;
69 }
70
71 void Update(float timeslice)
72 {
73 m_IsShiftDown = KeyState(KeyCode.KC_LSHIFT) || KeyState(KeyCode.KC_RSHIFT);
74 }
75
76 bool OnChange(Widget w, int x, int y, bool finished);
77 bool OnClick(Widget w, int x, int y, int button);
78 bool OnItemSelected(Widget w, int x, int y, int row, int column, int oldRow, int oldColumn);
79 bool OnKeyDown(Widget w, int x, int y, int key);
80 bool OnDoubleClick(Widget w, int x, int y, int button);
81 void OnRPCEx(int rpc_type, ParamsReadContext ctx);
82 bool OnMouseButtonDown(Widget w, int x, int y, int button);
83 bool OnKeyPress(Widget w, int x, int y, int key);
84 bool OnMouseEnter(Widget w, int x, int y);
85 bool OnMouseLeave(Widget w, Widget enterW, int x, int y);
86
87 protected void AddItemToClipboard(TextListboxWidget text_listbox_widget)
88 {
89 int selected_row_index = text_listbox_widget.GetSelectedRow();
90 if (selected_row_index != -1)
91 {
92 string item_name;
93 text_listbox_widget.GetItemText(selected_row_index, 0, item_name);
94 g_Game.CopyToClipboard(item_name);
95 }
96 }
97
98 void OnInputDeviceChanged(EInputDeviceType pInputDeviceType);
99 //void PressA();
100}
DayZGame g_Game
Определения DayZGame.c:4074
void Show()
Определения DayZGame.c:171
Icon x
Icon y
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:326
void ScriptConsole()
Определения ScriptConsole.c:114
bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
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 m_IsShiftDown
Определения ScriptConsoleTabBase.c:5
void InitializeTab(Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
Определения ScriptConsoleTabBase.c:19
bool m_IsSelected
Определения ScriptConsoleTabBase.c:4
PluginConfigDebugProfile m_ConfigDebugProfile
Определения ScriptConsoleTabBase.c:11
bool OnDoubleClick(Widget w, int x, int y, int button)
bool OnMouseButtonDown(Widget w, int x, int y, int button)
void AddItemToClipboard(TextListboxWidget text_listbox_widget)
Определения ScriptConsoleTabBase.c:87
ScriptConsole m_ScriptConsole
Определения ScriptConsoleTabBase.c:9
bool OnMouseEnter(Widget w, int x, int y)
Widget m_Button
Определения ScriptConsoleTabBase.c:8
bool OnKeyPress(Widget w, int x, int y, int key)
void Select(bool select, ScriptConsoleTabBase selectedHandler)
Определения ScriptConsoleTabBase.c:47
ScriptConsoleTabBase m_Parent
Определения ScriptConsoleTabBase.c:10
void Init(int id)
Определения ScriptConsoleTabBase.c:14
void OnRPCEx(int rpc_type, ParamsReadContext ctx)
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
Определения ScriptConsoleTabBase.c:12
Widget GetRoot()
Определения ScriptConsoleTabBase.c:37
Widget m_ParentRoot
Определения ScriptConsoleTabBase.c:6
bool OnChange(Widget w, int x, int y, bool finished)
Widget GetButton()
Определения ScriptConsoleTabBase.c:66
bool OnClick(Widget w, int x, int y, int button)
Widget m_Root
Определения ScriptConsoleTabBase.c:7
void Show(bool show, ScriptConsoleTabBase selectedHandler)
Определения ScriptConsoleTabBase.c:60
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
bool IsSelected()
Определения ScriptConsoleTabBase.c:42
void Update(float timeslice)
Определения ScriptConsoleTabBase.c:71
Определения EnWidgets.c:190
Serializer ParamsReadContext
Определения gameplay.c:15
KeyCode
Определения EnSystem.c:157
proto native int KeyState(KeyCode key)
EInputDeviceType
Определения input.c:3