Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
huddebugwinchardebug.c
Go to the documentation of this file.
1
class
HudDebugWinCharDebug
extends
HudDebugWinBase
2
{
3
private
PluginDeveloper
m_ModuleDeveloper
;
4
5
private
TextWidget
m_PlayerPosTextWidget
;
6
private
TextWidget
m_ClipboardTextWidget
;
7
8
//============================================
9
// HudDebugWinCharDebug
10
//============================================
11
void
HudDebugWinCharDebug
(
Widget
widget_root)
12
{
13
m_PlayerPosTextWidget
=
TextWidget
.Cast( widget_root.FindAnyWidget(
"txt_PlayerPos"
) );
14
m_ClipboardTextWidget
=
TextWidget
.Cast( widget_root.FindAnyWidget(
"txt_Clipboard"
) );
15
}
16
17
//============================================
18
// ~HudDebugWinCharDebug
19
//============================================
20
void
~HudDebugWinCharDebug
()
21
{
22
}
23
24
//============================================
25
// Update
26
//============================================
27
override
void
Update
()
28
{
29
super.Update();
30
31
PlayerBase
player =
PlayerBase
.Cast(
g_Game
.GetPlayer() );
32
if
( player != NULL )
33
{
34
vector
pos = player.GetPosition();
35
string
pos_str =
"Pos: "
+ pos[0].
ToString
() +
" "
+ pos[2].
ToString
();
36
m_PlayerPosTextWidget
.SetText(pos_str);
37
}
38
39
string
clipboard;
40
g_Game
.CopyFromClipboard(clipboard);
41
clipboard = clipboard.
Substring
( 0,
Math
.
Min
( clipboard.
Length
(), 128 ) );
//max 128 chars
42
clipboard =
"Clipboard: "
+ clipboard;
43
m_ClipboardTextWidget
.SetText(clipboard);
44
}
45
46
//============================================
47
// GetWinType
48
//============================================
49
override
int
GetType
()
50
{
51
return
HudDebug
.HUD_WIN_CHAR_DEBUG;
52
}
53
}
HudDebugWinBase
Definition
huddebugwinbase.c:2
HudDebugWinBase::~HudDebugWinCharDebug
void ~HudDebugWinCharDebug()
Definition
huddebugwinchardebug.c:20
HudDebugWinBase::Update
override void Update()
Definition
huddebugwinchardebug.c:27
HudDebugWinBase::GetType
override int GetType()
Definition
huddebugwinchardebug.c:49
HudDebugWinBase::m_ModuleDeveloper
PluginDeveloper m_ModuleDeveloper
Definition
huddebugwinchardebug.c:3
HudDebugWinBase::m_ClipboardTextWidget
TextWidget m_ClipboardTextWidget
Definition
huddebugwinchardebug.c:6
HudDebugWinBase::HudDebugWinCharDebug
void HudDebugWinCharDebug(Widget widget_root)
Definition
huddebugwinchardebug.c:11
HudDebugWinBase::m_PlayerPosTextWidget
TextWidget m_PlayerPosTextWidget
Definition
huddebugwinchardebug.c:5
Math
Definition
enmath.c:7
PlayerBase
Definition
playerbaseclient.c:2
TextWidget
Definition
enwidgets.c:220
Widget
Definition
enwidgets.c:190
vector
Definition
enconvert.c:119
vector::ToString
proto string ToString(bool beautify=true)
Vector to string.
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
Math::Min
static proto float Min(float x, float y)
Returns smaller of two given values.
string::Substring
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
string::Length
proto native int Length()
Returns length of string.
HudDebug
void HudDebug()
Definition
huddebug.c:108
Games
Dayz
scripts
5_mission
gui
scriptshuddebug
huddebugwinchardebug.c
Generated by
1.17.0