uipopupscriptnotify.c 931 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. class UIPopupScriptNotify extends UIPopupScript
  2. {
  3. private ButtonWidget m_BtnOk;
  4. private TextWidget m_TxtLabel;
  5. //================================================
  6. // UIPopupScriptNotify
  7. //================================================
  8. void UIPopupScriptNotify(Widget wgt)
  9. {
  10. m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget("btn_ppp_notify_ok") );
  11. m_TxtLabel = TextWidget.Cast( wgt.FindAnyWidget("txt_ppp_notify_label") );
  12. }
  13. //================================================
  14. // OnClick
  15. //================================================
  16. override bool OnClick(Widget w, int x, int y, int button)
  17. {
  18. super.OnClick(w, x, y, button);
  19. if ( w == m_BtnOk )
  20. {
  21. PopupBack();
  22. return true;
  23. }
  24. return false;
  25. }
  26. //================================================
  27. // OnClick
  28. //================================================
  29. void SetLabelText(string text)
  30. {
  31. m_TxtLabel.SetText(text);
  32. }
  33. }