Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ScriptConsoleOutputTab
+ Граф наследования:ScriptConsoleOutputTab:

Защищенные члены

void ScriptConsoleOutputTab (Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
 
void ~ScriptConsoleOutputTab ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void Clear (bool clearFile=false)
 
void Add (string message, bool isReload=false)
 
void ReloadOutput ()
 

Защищенные данные

TextListboxWidget m_ClientLogListbox
 
ButtonWidget m_ClientLogClearButton
 
CheckBoxWidget m_ClientLogScrollCheckbox
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от ScriptConsoleTabBase
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)
 
- Закрытые данные унаследованные от ScriptConsoleTabBase
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
 

Подробное описание

Конструктор(ы)

◆ ScriptConsoleOutputTab()

void ScriptConsoleOutputTab ( Widget root,
ScriptConsole console,
Widget button,
ScriptConsoleTabBase parent = null )
inlineprotected
8 {
9 m_ClientLogListbox = TextListboxWidget.Cast(root.FindAnyWidget("TextListbox"));
10 m_ClientLogClearButton = ButtonWidget.Cast(root.FindAnyWidget("ButtonClear"));
11 m_ClientLogScrollCheckbox = CheckBoxWidget.Cast(root.FindAnyWidget("CheckBoxAutoScroll"));
13 }
Definition EntityAI.c:95
TextListboxWidget m_ClientLogListbox
Definition ScriptConsoleOutputTab.c:3
ButtonWidget m_ClientLogClearButton
Definition ScriptConsoleOutputTab.c:4
CheckBoxWidget m_ClientLogScrollCheckbox
Definition ScriptConsoleOutputTab.c:5
void ReloadOutput()
Definition ScriptConsoleOutputTab.c:58

Перекрестные ссылки m_ClientLogClearButton, m_ClientLogListbox, m_ClientLogScrollCheckbox и ReloadOutput().

◆ ~ScriptConsoleOutputTab()

void ~ScriptConsoleOutputTab ( )
inlineprotected
16 {
17 }

Методы

◆ Add()

void Add ( string message,
bool isReload = false )
inlineprotected
46 {
48 {
50
51 if (m_ClientLogScrollCheckbox.IsChecked())
52 {
53 m_ClientLogListbox.EnsureVisible(m_ClientLogListbox.GetNumItems());
54 }
55 }
56 }
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
Definition EnScript.c:339

Перекрестные ссылки m_ClientLogListbox, m_ClientLogScrollCheckbox и String().

Используется в ReloadOutput().

◆ Clear()

void Clear ( bool clearFile = false)
inlineprotected
39 {
40 if(clearFile)
42 m_ClientLogListbox.ClearItems();
43 }
Definition Debug.c:14
static void ClearLogs()
Definition Debug.c:698

Перекрестные ссылки Debug::ClearLogs() и m_ClientLogListbox.

Используется в OnClick() и ReloadOutput().

◆ OnChange()

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprotected
32 {
33 super.OnChange(w, x, y, finished);
34 return false;
35 }
Icon x
Icon y

Перекрестные ссылки x и y.

◆ OnClick()

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
20 {
21 super.OnClick(w,x,y,button);
22
24 {
25 Clear(true);
26 return true;
27 }
28 return false;
29 }
void Clear(bool clearFile=false)
Definition ScriptConsoleOutputTab.c:38

Перекрестные ссылки Clear(), m_ClientLogClearButton, x и y.

◆ ReloadOutput()

void ReloadOutput ( )
inlineprotected
59 {
60 Clear();
62
63 if ( file_index )
64 {
65 string line_content;
66 while ( FGets( file_index, line_content ) != -1 )
67 {
68 Add(line_content, true);
69 }
70
72 }
73 }
static string GetFileName()
Definition Debug.c:711
void Add(string message, bool isReload=false)
Definition ScriptConsoleOutputTab.c:45
FileMode
Definition EnSystem.c:383
proto void CloseFile(FileHandle file)
Close the File.
proto int FGets(FileHandle file, string var)
Get line from file, every next call of this function returns next line.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.

Перекрестные ссылки Add(), Clear(), CloseFile(), FGets(), Debug::GetFileName() и OpenFile().

Используется в ScriptConsoleOutputTab().

Поля

◆ m_ClientLogClearButton

ButtonWidget m_ClientLogClearButton
protected

Используется в OnClick() и ScriptConsoleOutputTab().

◆ m_ClientLogListbox

TextListboxWidget m_ClientLogListbox
protected

Используется в Add(), Clear() и ScriptConsoleOutputTab().

◆ m_ClientLogScrollCheckbox

CheckBoxWidget m_ClientLogScrollCheckbox
protected

Используется в Add() и ScriptConsoleOutputTab().


Объявления и описания членов класса находятся в файле: