huddebugwinversion.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. class HudDebugWinVersion extends HudDebugWinBase
  2. {
  3. private PluginDeveloper m_ModuleDeveloper;
  4. private TextWidget m_VersionTextWidget;
  5. //============================================
  6. // HudDebugWinVersion
  7. //============================================
  8. void HudDebugWinVersion(Widget widget_root)
  9. {
  10. m_VersionTextWidget = TextWidget.Cast( widget_root.FindAnyWidget("txt_Version") );
  11. string version;
  12. g_Game.GetVersion(version);
  13. m_VersionTextWidget.SetText(string.Format("exe: %1 | scripts: %2", version, GetPBOAPI().GetPBOVersion("dta\\scripts.pbo")));
  14. }
  15. //============================================
  16. // ~HudDebugWinVersion
  17. //============================================
  18. void ~HudDebugWinVersion()
  19. {
  20. }
  21. //============================================
  22. // Update
  23. //============================================
  24. override void Update()
  25. {
  26. super.Update();
  27. }
  28. //============================================
  29. // GetWinType
  30. //============================================
  31. override int GetType()
  32. {
  33. return HudDebug.HUD_WIN_VERSION;
  34. }
  35. }