File size: 1,066 Bytes
24b81cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
class HudDebugWinVersion extends HudDebugWinBase
{
	private PluginDeveloper m_ModuleDeveloper;
	
	private TextWidget 		m_VersionTextWidget;

	//============================================
	// HudDebugWinVersion
	//============================================
	void HudDebugWinVersion(Widget widget_root)
	{	
		m_VersionTextWidget = TextWidget.Cast( widget_root.FindAnyWidget("txt_Version") );
		
		string version;
		g_Game.GetVersion(version);
		m_VersionTextWidget.SetText(string.Format("exe: %1 | scripts: %2", version, GetPBOAPI().GetPBOVersion("dta\\scripts.pbo")));
	}

	//============================================
	// ~HudDebugWinVersion
	//============================================
	void ~HudDebugWinVersion()
	{
	}
	
	//============================================
	// Update
	//============================================
	override void Update()
	{
		super.Update();
	}

	//============================================
	// GetWinType
	//============================================
	override int GetType()
	{
		return HudDebug.HUD_WIN_VERSION;
	}
}