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

◆ OnMouseOver()

void Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.OnMouseOver ( bool reject = false)
inlineprivate

Definition at line 250 of file InGamePopups.cs.

251 {
253 {
254 return;
255 }
256 Main.player[Main.myPlayer].mouseInterface = true;
257 if (Main.mouseLeft && Main.mouseLeftRelease)
258 {
259 Main.mouseLeftRelease = false;
260 _timeLeft = 0;
261 if (reject)
262 {
264 }
265 else
266 {
268 }
269 }
270 }

References Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup._request, Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup._timeLeft, Terraria.Social.Base.UserJoinToServerRequest.Accept(), Terraria.GameInput.PlayerInput.IgnoreMouseInterface, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, Terraria.Main.myPlayer, Terraria.Main.player, and Terraria.Social.Base.UserJoinToServerRequest.Reject().

Referenced by Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInGame(), and Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInNotificationsArea().