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

◆ GetAccessorySlotPerColumn()

int Terraria.ModLoader.AccessorySlotLoader.GetAccessorySlotPerColumn ( )
inlinepackage

Definition at line 74 of file AccessorySlotLoader.cs.

75 {
76 float minimumClearance = (float)DrawVerticalAlignment + 112f * Main.inventoryScale + 4f;
77 return (int)(((float)Main.screenHeight - minimumClearance) / (56f * Main.inventoryScale) - 1.8f);
78 }
static int DrawVerticalAlignment
The variable known as num20 used to align all equipment slot drawing in Main. Represents the y positi...

References Terraria.ModLoader.AccessorySlotLoader.DrawVerticalAlignment, Terraria.Main.inventoryScale, and Terraria.Main.screenHeight.

Referenced by Terraria.ModLoader.AccessorySlotLoader.DrawAccSlots(), and Terraria.ModLoader.AccessorySlotLoader.SetDrawLocation().

+ Here is the caller graph for this function: