public static string AssignWMode(int mode, Player P) { Main.chatMode = true; string a = Main.GetInputText(Main.chatText); ModPlayer.poss[0][mode - 1] = P.position.X; ModPlayer.poss[1][mode - 1] = P.position.Y; ModPlayer.WMPoints[mode - 1] = a; return a; } public void HoldStyle(Player P) { if (Main.keyState.IsKeyDown(Microsoft.Xna.Framework.Input.Keys.F) && !isFdown) { Main.chatMode = true; string s = Main.GetInputText(Main.chatText); int thing = Convert.ToInt32(s); string h = AssignWMode(thing, P); Main.NewText("Mode " + s + " assigned as " + h); isFdown = true; } if (!Main.keyState.IsKeyDown(Microsoft.Xna.Framework.Input.Keys.F) && isFdown) { isFdown = false; } if (!runonce && Main.keyState.IsKeyDown(Microsoft.Xna.Framework.Input.Keys.N) && !isNDown) { mode++; runonce = true; isNDown = true; } if (!Main.keyState.IsKeyDown(Microsoft.Xna.Framework.Input.Keys.N) && isNDown) { isNDown = false; } if (ModPlayer.WMActive[mode - 1] && runonce) { if (Main.netMode == 0) Main.NewText("Mirror Mode: " + ModPlayer.WMPoints[mode - 1]); else if (Main.netMode == 2) { NetMessage.SendData(25, -1, -1, P.name + "'s Mirror Mode: " + ModPlayer.WMPoints[mode - 1], 255, 255f, 255f, 255f, 0); } runonce = false; } }