6 protected const string TEXT_CURRENT_VERSION =
"CurrentVersionMessage";
7 protected const string TEXT_WRONG_VERSION =
"WrongVersionMessage";
9 protected RichTextWidget m_wWrongVersion;
12 protected override void HandlerAttached(Widget w)
14 RichTextWidget currentVersion = RichTextWidget.Cast(w.FindAnyWidget(TEXT_CURRENT_VERSION));
16 currentVersion.SetText(
GetGame().GetBuildVersion());
18 m_wWrongVersion = RichTextWidget.Cast(w.FindAnyWidget(TEXT_WRONG_VERSION));
20 super.HandlerAttached(w);
24 bool SetWrongVersionMessage(
string wrongVersion)
29 m_wWrongVersion.SetText(wrongVersion);