public static void SetupMultiCostElements(UXFactory uxFactory, string[] costElementNames, string clonedParentName, string[] cost, int costMapCount) { int credits; int num; int num2; int num3; GameUtils.GetHQScaledCurrency(cost, out credits, out num, out num2, out num3); bool locked = false; string lockedText = null; UXUtils.SetupCostElements(uxFactory, costElementNames[0], clonedParentName, credits, num, num2, 0, 0, locked, lockedText); if (costMapCount == 2 && costElementNames.Length == 2) { if (num != 0 && num2 != 0) { num = 0; } UXUtils.SetupCostElements(uxFactory, costElementNames[1], clonedParentName, 0, num, num2, 0, 0, locked, lockedText); } }
public static void SetupCostElements(UXFactory uxFactory, string costElementName, string clonedParentName, int credits, int materials, int contraband, int crystals, int eventPoints, bool locked, string lockedText) { UXUtils.SetupCostElements(uxFactory, costElementName, clonedParentName, credits, materials, contraband, crystals, eventPoints, locked, lockedText, -1); }