3 private PluginDeveloper m_ModuleDeveloper;
11 void HudDebugWinCharDebug(
Widget widget_root)
13 m_PlayerPosTextWidget =
TextWidget.Cast( widget_root.FindAnyWidget(
"txt_PlayerPos") );
14 m_ClipboardTextWidget =
TextWidget.Cast( widget_root.FindAnyWidget(
"txt_Clipboard") );
20 void ~HudDebugWinCharDebug()
34 vector pos = player.GetPosition();
35 string pos_str =
"Pos: " + pos[0].ToString() +
" " + pos[2].ToString();
36 m_PlayerPosTextWidget.SetText(pos_str);
40 GetGame().CopyFromClipboard(clipboard);
41 clipboard = clipboard.Substring( 0,
Math.Min( clipboard.Length(), 128 ) );
42 clipboard =
"Clipboard: " + clipboard;
43 m_ClipboardTextWidget.SetText(clipboard);