public static bool DebugGoFast() { if (Settings.debugCommandsEnabled) { return(GuiData.getKeyboadState().IsKeyDown(Keys.LeftAlt)); } return(false); }
public override void Update(float t) { base.Update(t); var lastRunCommand = os.terminal.getLastRunCommand(); if (lastCommand != lastRunCommand) { lastCommand = lastRunCommand; parseCommand(); } else if (GuiData.getKeyboadState().IsKeyDown(Keys.F8)) { lastCommand = ""; } flashTimer -= t; flashTimer = Math.Max(flashTimer, 0.0f); bounceEffect.Update(t, nodePos => { bounceEffect.NodeHitDelay = Math.Max(0.0f, Utils.randm(0.5f) - 0.2f); bounceEffect.TimeBetweenBounces = 0.15f + Utils.randm(0.7f); }); hintTextFadeTimer = Math.Max(0.0f, hintTextFadeTimer - t); }
public override void Update(float t) { base.Update(t); string lastRunCommand = this.os.terminal.getLastRunCommand(); if (this.lastCommand != lastRunCommand) { this.lastCommand = lastRunCommand; this.parseCommand(); } else if (GuiData.getKeyboadState().IsKeyDown(Keys.F8)) { this.lastCommand = ""; } this.flashTimer -= t; this.flashTimer = Math.Max(this.flashTimer, 0.0f); this.bounceEffect.Update(t, (Action <Vector2>)(nodePos => { this.bounceEffect.NodeHitDelay = Math.Max(0.0f, Utils.randm(0.5f) - 0.2f); this.bounceEffect.TimeBetweenBounces = 0.15f + Utils.randm(0.7f); })); this.hintTextFadeTimer = Math.Max(0.0f, this.hintTextFadeTimer - t); }
public override void Update(float t) { base.Update(t); double timer = (double)this.timer; this.timer += t; float num1 = Settings.isDemoMode ? IntroTextModule.DEMO_DELAY_FROM_START_MUSIC_TIMER : IntroTextModule.DELAY_FROM_START_MUSIC_TIMER; if (Settings.IsInExtensionMode) { num1 = ExtensionLoader.ActiveExtensionInfo.IntroStartupSongDelay; } if (timer < (double)num1 && (double)this.timer >= (double)num1) { MusicManager.playSong(); } float num2 = 1f; if (LocaleActivator.ActiveLocaleIsCJK()) { num2 = 0.6f; } if (this.finishedText) { if ((double)this.timer <= (double)IntroTextModule.STAY_ONSCREEN_TIME || (double)this.timer <= (double)IntroTextModule.STAY_ONSCREEN_TIME + (double)IntroTextModule.MODULE_FLASH_TIME) { return; } this.complete = true; } else if ((double)this.timer > (double)IntroTextModule.FLASH_TIME) { this.charTimer += t * num2; if ((double)this.charTimer < (double)IntroTextModule.CHAR_TIME) { return; } KeyboardState keyboadState; double num3; if (!Settings.isConventionDemo) { num3 = 0.0; } else { double charTime = (double)IntroTextModule.CHAR_TIME; keyboadState = GuiData.getKeyboadState(); double num4 = keyboadState.IsKeyDown(Keys.LeftShift) ? 0.990000009536743 : 0.5; num3 = charTime * num4; } this.charTimer = (float)num3; ++this.charIndex; if (this.charIndex >= this.text[this.textIndex].Length) { this.charTimer = IntroTextModule.CHAR_TIME; this.charIndex = this.text[this.textIndex].Length - 1; this.lineTimer += t; if ((double)this.lineTimer >= (double)IntroTextModule.LINE_TIME) { double num4; if (!Settings.isConventionDemo) { num4 = 0.0; } else { double lineTime = (double)IntroTextModule.LINE_TIME; keyboadState = GuiData.getKeyboadState(); double num5 = keyboadState.IsKeyDown(Keys.LeftShift) ? 0.990000009536743 : 0.200000002980232; num4 = lineTime * num5; } this.lineTimer = (float)num4; ++this.textIndex; this.charIndex = 0; if (this.textIndex >= this.text.Length) { if (!MusicManager.isPlaying) { MusicManager.playSong(); } this.finishedText = true; this.timer = 0.0f; } } } } else if (Settings.isConventionDemo && GuiData.getKeyboadState().IsKeyDown(Keys.LeftShift)) { this.timer += t + t; } }
public override void Update(float t) { base.Update(t); var num1 = timer; timer += t; var num2 = Settings.isDemoMode ? DEMO_DELAY_FROM_START_MUSIC_TIMER : DELAY_FROM_START_MUSIC_TIMER; if (num1 < (double)num2 && timer >= (double)num2) { MusicManager.playSong(); } if (finishedText) { if (timer <= (double)STAY_ONSCREEN_TIME || timer <= STAY_ONSCREEN_TIME + (double)MODULE_FLASH_TIME) { return; } complete = true; } else if (timer > (double)FLASH_TIME) { charTimer += t; if (charTimer < (double)CHAR_TIME) { return; } charTimer = Settings.isConventionDemo ? CHAR_TIME * (GuiData.getKeyboadState().IsKeyDown(Keys.LeftShift) ? 0.99f : 0.5f) : 0.0f; ++charIndex; if (charIndex < text[textIndex].Length) { return; } charIndex = text[textIndex].Length - 1; lineTimer += t; if (lineTimer < (double)LINE_TIME) { return; } lineTimer = Settings.isConventionDemo ? LINE_TIME * (GuiData.getKeyboadState().IsKeyDown(Keys.LeftShift) ? 0.99f : 0.2f) : 0.0f; ++textIndex; charIndex = 0; if (textIndex < text.Length) { return; } if (!MusicManager.isPlaying) { MusicManager.playSong(); } finishedText = true; timer = 0.0f; } else { if (!Settings.isConventionDemo || !GuiData.getKeyboadState().IsKeyDown(Keys.LeftShift)) { return; } timer += t + t; } }