Esempio n. 1
0
 void OnMessage_SilenceTimeChanged(Timer timer)
 {
     SilenceTimeText.Text       = string.Format("Time left: {0:0.0}s", timer.Value - timer.CurrentTime);
     SilenceTime.RelativeSize.x = 1f - timer.Procentage;
     SilenceTime.UpdateRects();
     SilenceTime.Visible = SilenceTime.absoluteRect.width > 4;
 }
Esempio n. 2
0
 void OnMessage_SilenceCooldownChanged(Timer timer)
 {
     SilenceCooldownTimeText.Text   = string.Format("Cooldown: {0:0.0}s", timer.Value - timer.CurrentTime);
     SilenceCooldown.RelativeSize.x = timer.Procentage;
     SilenceCooldown.UpdateRects();
     SilenceCooldown.Visible = SilenceCooldown.absoluteRect.width > 4;
 }