public void OnViewClockTime(float dt)
 {
     if (this.rightLabel != null)
     {
         this.rightLabel.Text = DisableProtectionAlertScreen.GetProtectionTimeRemaining();
     }
 }
 protected override void SetupControls()
 {
     base.GetElement <UXLabel>("TickerDialogSmall").Visible = false;
     this.rightLabel.Text                  = DisableProtectionAlertScreen.GetProtectionTimeRemaining();
     this.titleLabel.Text                  = this.lang.Get("ALERT", new object[0]);
     this.primary2Option.Text              = this.lang.Get("YES", new object[0]);
     this.primary2OptionButton.Visible     = true;
     this.primary2OptionButton.Tag         = true;
     this.primary2OptionButton.OnClicked   = new UXButtonClickedDelegate(this.OnYesOrNoButtonClicked);
     this.secondary2Option.Text            = this.lang.Get("NO", new object[0]);
     this.secondary2OptionButton.Visible   = true;
     this.secondary2OptionButton.Tag       = null;
     this.secondary2OptionButton.OnClicked = new UXButtonClickedDelegate(this.OnYesOrNoButtonClicked);
     if (!string.IsNullOrEmpty(this.spriteName))
     {
         UXUtils.SetupGeometryForIcon(this.sprite, this.spriteName);
     }
 }
 public unsafe static long $Invoke0(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(DisableProtectionAlertScreen.GetProtectionTimeRemaining()));
 }
 protected DisableProtectionAlertScreen() : base(false, null, DisableProtectionAlertScreen.GetProtectionTimeRemaining(), UXUtils.GetCurrencyItemAssetName("protection"), false)
 {
     Service.Get <ViewTimeEngine>().RegisterClockTimeObserver(this, 1f);
 }