private static bool Prefix(
     List <Vector2> outDrawLocs, float scale, bool onlyOneRow, int maxPerGlobalRow,
     ref List <int> ___horizontalSlotsPerGroup, ref List <int> ___entriesInGroup)
 {
     ColonistBarDrawLocsUtility.GetDrawLocs(scale, onlyOneRow, maxPerGlobalRow, ___entriesInGroup, ___horizontalSlotsPerGroup, outDrawLocs);
     return(false);
 }
 private static void CalculateDrawLocs(List <Vector2> outDrawLocs, List <int> entriesInGroup, out float scale, ref List <int> horizontalSlotsPerGroup)
 {
     if (!ColonistBarUtility.AnyVisibleEntries())
     {
         outDrawLocs.Clear();
         scale = 1f;
     }
     else
     {
         entriesInGroup = ColonistBarDrawLocsUtility.GetGroupEntryCounts();
         scale          = ColonistBarDrawLocsUtility.GetBestScale(
             entriesInGroup,
             out bool onlyOneRow, out int maxPerGlobalRow, out horizontalSlotsPerGroup);
         ColonistBarDrawLocsUtility.GetDrawLocs(scale, onlyOneRow, maxPerGlobalRow, entriesInGroup, horizontalSlotsPerGroup, outDrawLocs);
     }
 }
 private static bool Prefix(ref List <int> ___entriesInGroup)
 {
     ___entriesInGroup = ColonistBarDrawLocsUtility.GetGroupEntryCounts();
     return(false);
 }
Example #4
0
 private static bool Prefix(float __result, out bool onlyOneRow, out int maxPerGlobalRow, ref List <int> ___entriesInGroup, ref List <int> ___horizontalSlotsPerGroup)
 {
     __result = ColonistBarDrawLocsUtility.GetBestScale(___entriesInGroup, out onlyOneRow, out maxPerGlobalRow, out ___horizontalSlotsPerGroup);
     return(false);
 }