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

◆ Step_SmartKeys()

void Terraria.GameContent.ChromaHotkeyPainter.Step_SmartKeys ( )
inlineprivate

Definition at line 344 of file ChromaHotkeyPainter.cs.

345 {
349 {
350 smartCursorKey.SetClear();
351 smartSelectKey.SetClear();
352 return;
353 }
354 if (Main.SmartCursorWanted)
355 {
356 smartCursorKey.SetSolid(PainterColors.SmartCursor);
357 }
358 else
359 {
360 smartCursorKey.SetClear();
361 }
362 if (_player.nonTorch >= 0)
363 {
364 smartSelectKey.SetSolid(PainterColors.SmartSelect);
365 }
366 else
367 {
368 smartSelectKey.SetClear();
369 }
370 }

References Terraria.GameContent.ChromaHotkeyPainter._player, Terraria.GameContent.ChromaHotkeyPainter._smartCursorKey, Terraria.GameContent.ChromaHotkeyPainter._smartSelectKey, Terraria.Player.DeadOrGhost, Terraria.Player.frozen, Terraria.Player.noItems, Terraria.Player.nonTorch, Terraria.GameContent.ChromaHotkeyPainter.PainterColors.SmartCursor, Terraria.Main.SmartCursorWanted, Terraria.GameContent.ChromaHotkeyPainter.PainterColors.SmartSelect, Terraria.Player.stoned, Terraria.Player.tongued, and Terraria.Player.webbed.