Download scripts/5_Mission/DayZ/GUI/ScriptsHudDebug/HudDebugWinCharDebug.c from FelonieZ/DayZ_Scripts: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/5_Mission/DayZ/GUI/ScriptsHudDebug/HudDebugWinCharDebug.c
- Command line
-
hf download hf://datasets/FelonieZ/DayZ_Scripts/scripts/5_Mission/DayZ/GUI/ScriptsHudDebug/HudDebugWinCharDebug.c
-
curl -L -o HudDebugWinCharDebug.c https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/5_Mission/DayZ/GUI/ScriptsHudDebug/HudDebugWinCharDebug.c
1.54 kB
| class HudDebugWinCharDebug extends HudDebugWinBase | |
| { | |
| private PluginDeveloper m_ModuleDeveloper; | |
| private TextWidget m_PlayerPosTextWidget; | |
| private TextWidget m_ClipboardTextWidget; | |
| //============================================ | |
| // HudDebugWinCharDebug | |
| //============================================ | |
| void HudDebugWinCharDebug(Widget widget_root) | |
| { | |
| m_PlayerPosTextWidget = TextWidget.Cast( widget_root.FindAnyWidget("txt_PlayerPos") ); | |
| m_ClipboardTextWidget = TextWidget.Cast( widget_root.FindAnyWidget("txt_Clipboard") ); | |
| } | |
| //============================================ | |
| // ~HudDebugWinCharDebug | |
| //============================================ | |
| void ~HudDebugWinCharDebug() | |
| { | |
| } | |
| //============================================ | |
| // Update | |
| //============================================ | |
| override void Update() | |
| { | |
| super.Update(); | |
| PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() ); | |
| if ( player != NULL ) | |
| { | |
| vector pos = player.GetPosition(); | |
| string pos_str = "Pos: " + pos[0].ToString() + " " + pos[2].ToString(); | |
| m_PlayerPosTextWidget.SetText(pos_str); | |
| } | |
| string clipboard; | |
| GetGame().CopyFromClipboard(clipboard); | |
| clipboard = clipboard.Substring( 0, Math.Min( clipboard.Length(), 128 ) ); //max 128 chars | |
| clipboard = "Clipboard: " + clipboard; | |
| m_ClipboardTextWidget.SetText(clipboard); | |
| } | |
| //============================================ | |
| // GetWinType | |
| //============================================ | |
| override int GetType() | |
| { | |
| return HudDebug.HUD_WIN_CHAR_DEBUG; | |
| } | |
| } | |