You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 rivejä
1000 B

  1. using System;
  2. using CIG.Translation;
  3. using UnityEngine;
  4. public class SparkSocMenuPopupView : PopupBaseView
  5. {
  6. public void SetFriendCode(string friendCode)
  7. {
  8. ILocalizedString localizedString = (!string.IsNullOrEmpty(friendCode)) ? Localization.Literal(friendCode) : Localization.Key("social_loading");
  9. this._friendCodeLabel.LocalizedString = Localization.Concat(new ILocalizedString[]
  10. {
  11. Localization.Key("social_your_friendcode"),
  12. Localization.LiteralWhiteSpace,
  13. localizedString
  14. });
  15. }
  16. public void OnYouClicked()
  17. {
  18. ((SparkSocMenuPopupState)this.State).OpenYouPopup();
  19. }
  20. public void OnGiftsClicked()
  21. {
  22. ((SparkSocMenuPopupState)this.State).OpenGiftsPopup();
  23. }
  24. public void OnOtherGamesClicked()
  25. {
  26. ((SparkSocMenuPopupState)this.State).OpenOtherGamesPopup();
  27. }
  28. public void OnNewsletterClicked()
  29. {
  30. ((SparkSocMenuPopupState)this.State).OpenNewsletterPopup();
  31. }
  32. [SerializeField]
  33. protected LocalizedText _friendCodeLabel;
  34. }