Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DoUpdate_F10_ToggleFPS()

static void Terraria.Main.DoUpdate_F10_ToggleFPS ( )
inlinestaticprivate

Definition at line 17188 of file Main.cs.

17189 {
17190 if (keyState.IsKeyDown(Microsoft.Xna.Framework.Input.Keys.F10) && !drawingPlayerChat && !editSign && !editChest)
17191 {
17192 if (frameRelease)
17193 {
17195 if (showFrameRate)
17196 {
17197 showFrameRate = false;
17198 }
17199 else
17200 {
17201 showFrameRate = true;
17202 }
17203 }
17204 frameRelease = false;
17205 }
17206 else
17207 {
17208 frameRelease = true;
17209 }
17210 }
static void PlaySound(int type, Vector2 position, int style=1)
static bool showFrameRate
Definition Main.cs:1094
static bool drawingPlayerChat
Definition Main.cs:1739
static bool frameRelease
Definition Main.cs:1092
static bool editSign
Definition Main.cs:1815
static bool editChest
Definition Main.cs:1817
static KeyboardState keyState
Definition Main.cs:988

References Terraria.Main.drawingPlayerChat, Terraria.Main.editChest, Terraria.Main.editSign, Terraria.Main.frameRelease, Terraria.Main.keyState, Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Main.showFrameRate.

Referenced by Terraria.Main.DoUpdate().