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

◆ SetResourcePackAsTopPriority()

void Terraria.GameContent.UI.States.UIResourcePackSelectionMenu.SetResourcePackAsTopPriority ( ResourcePack resourcePack)
inlineprivate

Definition at line 211 of file UIResourcePackSelectionMenu.cs.

212 {
213 if (!resourcePack.IsEnabled)
214 {
215 return;
216 }
217 int num = -1;
219 {
220 if (num < enabledPack.SortingOrder && enabledPack != resourcePack)
221 {
222 num = enabledPack.SortingOrder;
223 }
224 }
225 resourcePack.SortingOrder = num + 1;
226 }
IEnumerable< ResourcePack > EnabledPacks

References Terraria.GameContent.UI.States.UIResourcePackSelectionMenu._packsList, and Terraria.IO.ResourcePackList.EnabledPacks.

Referenced by Terraria.GameContent.UI.States.UIResourcePackSelectionMenu.CreatePackToggleButton().