using System; using CIG.Translation; using UnityEngine; public class SparkSocMenuPopupView : PopupBaseView { public void SetFriendCode(string friendCode) { ILocalizedString localizedString = (!string.IsNullOrEmpty(friendCode)) ? Localization.Literal(friendCode) : Localization.Key("social_loading"); this._friendCodeLabel.LocalizedString = Localization.Concat(new ILocalizedString[] { Localization.Key("social_your_friendcode"), Localization.LiteralWhiteSpace, localizedString }); } public void OnYouClicked() { ((SparkSocMenuPopupState)this.State).OpenYouPopup(); } public void OnGiftsClicked() { ((SparkSocMenuPopupState)this.State).OpenGiftsPopup(); } public void OnOtherGamesClicked() { ((SparkSocMenuPopupState)this.State).OpenOtherGamesPopup(); } public void OnNewsletterClicked() { ((SparkSocMenuPopupState)this.State).OpenNewsletterPopup(); } [SerializeField] protected LocalizedText _friendCodeLabel; }