Ejemplo n.º 1
0
        public static void SetupSingleCostElement(UXFactory uxFactory, string costElementName, int credits, int materials, int contraband, int crystals, int eventPoints, bool locked, string lockedText)
        {
            string costElementStr  = costElementName + "Label";
            string creditName      = costElementName + "CreditIcon";
            string materialName    = costElementName + "MaterialIcon";
            string contrabandName  = costElementName + "ContrabandIcon";
            string crystalName     = costElementName + "CrystalIcon";
            string eventPointsName = costElementName + "EventIcon";
            string reputationName  = costElementName + "ReputationIcon";

            UXUtils.CommonSetupTasks(uxFactory, credits, materials, contraband, crystals, eventPoints, locked, lockedText, costElementName, creditName, materialName, contrabandName, crystalName, eventPointsName, reputationName, costElementStr, -1);
        }
Ejemplo n.º 2
0
        public static void SetupCostElements(UXFactory uxFactory, string costElementName, string clonedParentName, int credits, int materials, int contraband, int crystals, int eventPoints, bool locked, string lockedText, int clampWidth)
        {
            string costGroupStr    = UXUtils.FormatAppendedName(costElementName, clonedParentName);
            string costElementStr  = UXUtils.FormatAppendedName(costElementName + "Label", clonedParentName);
            string creditName      = UXUtils.FormatAppendedName(costElementName + "CreditIcon", clonedParentName);
            string materialName    = UXUtils.FormatAppendedName(costElementName + "MaterialIcon", clonedParentName);
            string contrabandName  = UXUtils.FormatAppendedName(costElementName + "ContrabandIcon", clonedParentName);
            string crystalName     = UXUtils.FormatAppendedName(costElementName + "CrystalIcon", clonedParentName);
            string eventPointsName = UXUtils.FormatAppendedName(costElementName + "EventIcon", clonedParentName);
            string reputationName  = UXUtils.FormatAppendedName(costElementName + "ReputationIcon", clonedParentName);

            UXUtils.CommonSetupTasks(uxFactory, credits, materials, contraband, crystals, eventPoints, locked, lockedText, costGroupStr, creditName, materialName, contrabandName, crystalName, eventPointsName, reputationName, costElementStr, clampWidth);
        }