Exemplo n.º 1
0
        // Token: 0x06003975 RID: 14709 RVA: 0x001AA7D8 File Offset: 0x001A8BD8
        public override void tock(uint clock)
        {
            if (!this.isStrengthening)
            {
                return;
            }
            this.strengthTime += 1u;
            uint num = (uint)(100 + base.player.skills.skills[2][4].level * 20);

            this.strengthMultiplier  = 1f - Mathf.Abs(Mathf.Sin((this.strengthTime + num / 2u) % num / num * 3.14159274f));
            this.strengthMultiplier *= this.strengthMultiplier;
            if (base.channel.isOwner && this.castStrengthBar != null)
            {
                this.castStrengthBar.positionScale_Y = 1f - this.strengthMultiplier;
                this.castStrengthBar.sizeScale_Y     = this.strengthMultiplier;
                this.castStrengthBar.backgroundColor = ItemTool.getQualityColor(this.strengthMultiplier);
            }
        }
Exemplo n.º 2
0
        // Token: 0x060032BA RID: 12986 RVA: 0x0014923C File Offset: 0x0014763C
        public void updateItem(ItemJar newJar)
        {
            this._jar = newJar;
            ItemAsset itemAsset = (ItemAsset)Assets.find(EAssetType.ITEM, this.jar.item.id);

            if (itemAsset != null)
            {
                if (!this.isTemporary)
                {
                    this.button.tooltip = itemAsset.itemName;
                }
                if (this.jar.rot % 2 == 0)
                {
                    base.sizeOffset_X          = (int)(itemAsset.size_x * 50);
                    base.sizeOffset_Y          = (int)(itemAsset.size_y * 50);
                    this.icon.positionOffset_X = 0;
                    this.icon.positionOffset_Y = 0;
                }
                else
                {
                    base.sizeOffset_X = (int)(itemAsset.size_y * 50);
                    base.sizeOffset_Y = (int)(itemAsset.size_x * 50);
                    int num = Mathf.Abs((int)(itemAsset.size_y - itemAsset.size_x));
                    if (itemAsset.size_x > itemAsset.size_y)
                    {
                        this.icon.positionOffset_X = -num * 25;
                        this.icon.positionOffset_Y = num * 25;
                    }
                    else
                    {
                        this.icon.positionOffset_X = num * 25;
                        this.icon.positionOffset_Y = -num * 25;
                    }
                }
                this.icon.angle        = (float)(this.jar.rot * 90);
                this.icon.sizeOffset_X = (int)(itemAsset.size_x * 50);
                this.icon.sizeOffset_Y = (int)(itemAsset.size_y * 50);
                this.icon.isVisible    = false;
                ItemTool.getIcon(this.jar.item.id, this.jar.item.quality, this.jar.item.state, itemAsset, new ItemIconReady(this.onItemIconReady));
                if (itemAsset.size_x == 1 || itemAsset.size_y == 1)
                {
                    this.amountLabel.positionOffset_X = 0;
                    this.amountLabel.positionOffset_Y = -30;
                    this.amountLabel.sizeOffset_X     = 0;
                    this.amountLabel.fontSize         = 10;
                    this.hotkeyLabel.fontSize         = 10;
                }
                else
                {
                    this.amountLabel.positionOffset_X = 5;
                    this.amountLabel.positionOffset_Y = -35;
                    this.amountLabel.sizeOffset_X     = -10;
                    this.amountLabel.fontSize         = 12;
                    this.hotkeyLabel.fontSize         = 12;
                }
                this.button.backgroundColor = ItemTool.getRarityColorUI(itemAsset.rarity);
                this.button.foregroundColor = this.button.backgroundColor;
                if (itemAsset.showQuality)
                {
                    if (itemAsset.size_x == 1 || itemAsset.size_y == 1)
                    {
                        this.qualityImage.positionOffset_X = -15;
                        this.qualityImage.positionOffset_Y = -15;
                        this.qualityImage.sizeOffset_X     = 10;
                        this.qualityImage.sizeOffset_Y     = 10;
                        this.qualityImage.texture          = (Texture2D)PlayerDashboardInventoryUI.icons.load("Quality_1");
                    }
                    else
                    {
                        this.qualityImage.positionOffset_X = -30;
                        this.qualityImage.positionOffset_Y = -30;
                        this.qualityImage.sizeOffset_X     = 20;
                        this.qualityImage.sizeOffset_Y     = 20;
                        this.qualityImage.texture          = (Texture2D)PlayerDashboardInventoryUI.icons.load("Quality_0");
                    }
                    this.qualityImage.backgroundColor = ItemTool.getQualityColor((float)this.jar.item.quality / 100f);
                    this.qualityImage.foregroundColor = this.qualityImage.backgroundColor;
                    this.amountLabel.text             = this.jar.item.quality + "%";
                    this.amountLabel.backgroundColor  = this.qualityImage.backgroundColor;
                    this.amountLabel.foregroundColor  = this.qualityImage.backgroundColor;
                    this.qualityImage.isVisible       = true;
                    this.amountLabel.isVisible        = true;
                }
                else
                {
                    this.qualityImage.isVisible = false;
                    if (itemAsset.amount > 1)
                    {
                        this.amountLabel.text            = "x" + this.jar.item.amount;
                        this.amountLabel.backgroundColor = Color.white;
                        this.amountLabel.foregroundColor = Color.white;
                        this.amountLabel.isVisible       = true;
                    }
                    else
                    {
                        this.amountLabel.isVisible = false;
                    }
                }
            }
        }
Exemplo n.º 3
0
        public SleekBlueprint(Blueprint newBlueprint)
        {
            this._blueprint = newBlueprint;
            base.init();
            this.fontStyle     = 1;
            this.fontAlignment = 4;
            this.fontSize      = SleekRender.FONT_SIZE;
            this.calculateContent();
            SleekLabel sleekLabel = new SleekLabel();

            sleekLabel.positionOffset_X = 5;
            sleekLabel.positionOffset_Y = 5;
            sleekLabel.sizeOffset_X     = -10;
            sleekLabel.sizeOffset_Y     = 30;
            sleekLabel.sizeScale_X      = 1f;
            sleekLabel.foregroundColor  = ((!this.blueprint.hasSupplies || !this.blueprint.hasTool || !this.blueprint.hasItem || !this.blueprint.hasSkills) ? Palette.COLOR_R : Palette.COLOR_G);
            sleekLabel.foregroundTint   = ESleekTint.NONE;
            sleekLabel.fontSize         = 14;
            base.add(sleekLabel);
            if (this.blueprint.skill != EBlueprintSkill.NONE)
            {
                base.add(new SleekLabel
                {
                    positionOffset_X = 5,
                    positionOffset_Y = -35,
                    positionScale_Y  = 1f,
                    sizeOffset_X     = -10,
                    sizeOffset_Y     = 30,
                    sizeScale_X      = 1f,
                    text             = PlayerDashboardCraftingUI.localization.format("Skill_" + (int)this.blueprint.skill, new object[]
                    {
                        PlayerDashboardSkillsUI.localization.format("Level_" + this.blueprint.level)
                    }),
                    foregroundColor = ((!this.blueprint.hasSkills) ? Palette.COLOR_R : Palette.COLOR_G),
                    foregroundTint  = ESleekTint.NONE,
                    fontSize        = 14
                });
            }
            Sleek sleek = new Sleek();

            sleek.positionOffset_Y = 40;
            sleek.positionScale_X  = 0.5f;
            sleek.sizeOffset_Y     = -45;
            sleek.sizeScale_Y      = 1f;
            base.add(sleek);
            int num = 0;

            for (int i = 0; i < this.blueprint.supplies.Length; i++)
            {
                BlueprintSupply blueprintSupply = this.blueprint.supplies[i];
                ItemAsset       itemAsset       = (ItemAsset)Assets.find(EAssetType.ITEM, blueprintSupply.id);
                if (itemAsset != null)
                {
                    SleekLabel sleekLabel2 = sleekLabel;
                    sleekLabel2.text += itemAsset.itemName;
                    SleekImageTexture sleekImageTexture = new SleekImageTexture();
                    sleekImageTexture.positionOffset_X = num;
                    sleekImageTexture.positionOffset_Y = (int)(-itemAsset.size_y * 25);
                    sleekImageTexture.positionScale_Y  = 0.5f;
                    sleekImageTexture.sizeOffset_X     = (int)(itemAsset.size_x * 50);
                    sleekImageTexture.sizeOffset_Y     = (int)(itemAsset.size_y * 50);
                    sleek.add(sleekImageTexture);
                    ItemTool.getIcon(blueprintSupply.id, 100, itemAsset.getState(false), itemAsset, new ItemIconReady(sleekImageTexture.updateTexture));
                    SleekLabel sleekLabel3 = new SleekLabel();
                    sleekLabel3.positionOffset_X = -100;
                    sleekLabel3.positionOffset_Y = -30;
                    sleekLabel3.positionScale_Y  = 1f;
                    sleekLabel3.sizeOffset_X     = 100;
                    sleekLabel3.sizeOffset_Y     = 30;
                    sleekLabel3.sizeScale_X      = 1f;
                    sleekLabel3.foregroundTint   = ESleekTint.NONE;
                    sleekLabel3.fontAlignment    = 5;
                    sleekLabel3.text             = blueprintSupply.hasAmount + "/" + blueprintSupply.amount;
                    sleekImageTexture.add(sleekLabel3);
                    SleekLabel sleekLabel4 = sleekLabel;
                    string     text        = sleekLabel4.text;
                    sleekLabel4.text = string.Concat(new object[]
                    {
                        text,
                        " ",
                        blueprintSupply.hasAmount,
                        "/",
                        blueprintSupply.amount
                    });
                    if (this.blueprint.type == EBlueprintType.AMMO)
                    {
                        if (blueprintSupply.hasAmount == 0 || blueprintSupply.amount == 0)
                        {
                            sleekLabel3.backgroundColor = Palette.COLOR_R;
                            sleekLabel3.foregroundColor = Palette.COLOR_R;
                        }
                    }
                    else if (blueprintSupply.hasAmount < blueprintSupply.amount)
                    {
                        sleekLabel3.backgroundColor = Palette.COLOR_R;
                        sleekLabel3.foregroundColor = Palette.COLOR_R;
                    }
                    num += (int)(itemAsset.size_x * 50 + 25);
                    if (i < this.blueprint.supplies.Length - 1 || this.blueprint.tool != 0 || this.blueprint.type == EBlueprintType.REPAIR || this.blueprint.type == EBlueprintType.AMMO)
                    {
                        SleekLabel sleekLabel5 = sleekLabel;
                        sleekLabel5.text += " + ";
                        sleek.add(new SleekImageTexture((Texture2D)PlayerDashboardCraftingUI.icons.load("Plus"))
                        {
                            positionOffset_X = num,
                            positionOffset_Y = -20,
                            positionScale_Y  = 0.5f,
                            sizeOffset_X     = 40,
                            sizeOffset_Y     = 40,
                            backgroundTint   = ESleekTint.FOREGROUND
                        });
                        num += 65;
                    }
                }
            }
            if (this.blueprint.tool != 0)
            {
                ItemAsset itemAsset2 = (ItemAsset)Assets.find(EAssetType.ITEM, this.blueprint.tool);
                if (itemAsset2 != null)
                {
                    SleekLabel sleekLabel6 = sleekLabel;
                    sleekLabel6.text += itemAsset2.itemName;
                    SleekImageTexture sleekImageTexture2 = new SleekImageTexture();
                    sleekImageTexture2.positionOffset_X = num;
                    sleekImageTexture2.positionOffset_Y = (int)(-itemAsset2.size_y * 25);
                    sleekImageTexture2.positionScale_Y  = 0.5f;
                    sleekImageTexture2.sizeOffset_X     = (int)(itemAsset2.size_x * 50);
                    sleekImageTexture2.sizeOffset_Y     = (int)(itemAsset2.size_y * 50);
                    sleek.add(sleekImageTexture2);
                    ItemTool.getIcon(this.blueprint.tool, 100, itemAsset2.getState(), itemAsset2, new ItemIconReady(sleekImageTexture2.updateTexture));
                    SleekLabel sleekLabel7 = new SleekLabel();
                    sleekLabel7.positionOffset_X = -100;
                    sleekLabel7.positionOffset_Y = -30;
                    sleekLabel7.positionScale_Y  = 1f;
                    sleekLabel7.sizeOffset_X     = 100;
                    sleekLabel7.sizeOffset_Y     = 30;
                    sleekLabel7.sizeScale_X      = 1f;
                    sleekLabel7.foregroundTint   = ESleekTint.NONE;
                    sleekLabel7.fontAlignment    = 5;
                    sleekLabel7.text             = this.blueprint.tools + "/1";
                    sleekImageTexture2.add(sleekLabel7);
                    SleekLabel sleekLabel8 = sleekLabel;
                    string     text        = sleekLabel8.text;
                    sleekLabel8.text = string.Concat(new object[]
                    {
                        text,
                        " ",
                        this.blueprint.tools,
                        "/1"
                    });
                    if (!this.blueprint.hasTool)
                    {
                        sleekLabel7.backgroundColor = Palette.COLOR_R;
                        sleekLabel7.foregroundColor = Palette.COLOR_R;
                    }
                    num += (int)(itemAsset2.size_x * 50 + 25);
                    if (this.blueprint.type == EBlueprintType.REPAIR || this.blueprint.type == EBlueprintType.AMMO)
                    {
                        SleekLabel sleekLabel9 = sleekLabel;
                        sleekLabel9.text += " + ";
                        sleek.add(new SleekImageTexture((Texture2D)PlayerDashboardCraftingUI.icons.load("Plus"))
                        {
                            positionOffset_X = num,
                            positionOffset_Y = -20,
                            positionScale_Y  = 0.5f,
                            sizeOffset_X     = 40,
                            sizeOffset_Y     = 40,
                            backgroundTint   = ESleekTint.FOREGROUND
                        });
                        num += 65;
                    }
                }
            }
            if (this.blueprint.type == EBlueprintType.REPAIR || this.blueprint.type == EBlueprintType.AMMO)
            {
                ItemAsset itemAsset3 = (ItemAsset)Assets.find(EAssetType.ITEM, this.blueprint.outputs[0].id);
                if (itemAsset3 != null)
                {
                    SleekLabel sleekLabel10 = sleekLabel;
                    sleekLabel10.text += itemAsset3.itemName;
                    SleekImageTexture sleekImageTexture3 = new SleekImageTexture();
                    sleekImageTexture3.positionOffset_X = num;
                    sleekImageTexture3.positionOffset_Y = (int)(-itemAsset3.size_y * 25);
                    sleekImageTexture3.positionScale_Y  = 0.5f;
                    sleekImageTexture3.sizeOffset_X     = (int)(itemAsset3.size_x * 50);
                    sleekImageTexture3.sizeOffset_Y     = (int)(itemAsset3.size_y * 50);
                    sleek.add(sleekImageTexture3);
                    ItemTool.getIcon(this.blueprint.outputs[0].id, 100, itemAsset3.getState(), itemAsset3, new ItemIconReady(sleekImageTexture3.updateTexture));
                    SleekLabel sleekLabel11 = new SleekLabel();
                    sleekLabel11.positionOffset_X = -100;
                    sleekLabel11.positionOffset_Y = -30;
                    sleekLabel11.positionScale_Y  = 1f;
                    sleekLabel11.sizeOffset_X     = 100;
                    sleekLabel11.sizeOffset_Y     = 30;
                    sleekLabel11.sizeScale_X      = 1f;
                    sleekLabel11.foregroundTint   = ESleekTint.NONE;
                    sleekLabel11.fontAlignment    = 5;
                    if (this.blueprint.type == EBlueprintType.REPAIR)
                    {
                        SleekLabel sleekLabel12 = sleekLabel;
                        string     text         = sleekLabel12.text;
                        sleekLabel12.text = string.Concat(new object[]
                        {
                            text,
                            " ",
                            this.blueprint.items,
                            "%"
                        });
                        sleekLabel11.text            = this.blueprint.items + "%";
                        sleekLabel11.backgroundColor = ItemTool.getQualityColor((float)this.blueprint.items / 100f);
                        sleekLabel11.foregroundColor = sleekLabel11.backgroundColor;
                    }
                    else if (this.blueprint.type == EBlueprintType.AMMO)
                    {
                        SleekLabel sleekLabel13 = sleekLabel;
                        string     text         = sleekLabel13.text;
                        sleekLabel13.text = string.Concat(new object[]
                        {
                            text,
                            " ",
                            this.blueprint.items,
                            "/",
                            this.blueprint.products
                        });
                        sleekLabel11.text = this.blueprint.items + "/" + itemAsset3.amount;
                    }
                    if (!this.blueprint.hasItem)
                    {
                        sleekLabel11.backgroundColor = Palette.COLOR_R;
                        sleekLabel11.foregroundColor = Palette.COLOR_R;
                    }
                    sleekImageTexture3.add(sleekLabel11);
                    num += (int)(itemAsset3.size_x * 50 + 25);
                }
            }
            SleekLabel sleekLabel14 = sleekLabel;

            sleekLabel14.text += " = ";
            sleek.add(new SleekImageTexture((Texture2D)PlayerDashboardCraftingUI.icons.load("Equals"))
            {
                positionOffset_X = num,
                positionOffset_Y = -20,
                positionScale_Y  = 0.5f,
                sizeOffset_X     = 40,
                sizeOffset_Y     = 40,
                backgroundTint   = ESleekTint.FOREGROUND
            });
            num += 65;
            for (int j = 0; j < this.blueprint.outputs.Length; j++)
            {
                BlueprintOutput blueprintOutput = this.blueprint.outputs[j];
                ItemAsset       itemAsset4      = (ItemAsset)Assets.find(EAssetType.ITEM, blueprintOutput.id);
                if (itemAsset4 != null)
                {
                    SleekLabel sleekLabel15 = sleekLabel;
                    sleekLabel15.text += itemAsset4.itemName;
                    SleekImageTexture sleekImageTexture4 = new SleekImageTexture();
                    sleekImageTexture4.positionOffset_X = num;
                    sleekImageTexture4.positionOffset_Y = (int)(-itemAsset4.size_y * 25);
                    sleekImageTexture4.positionScale_Y  = 0.5f;
                    sleekImageTexture4.sizeOffset_X     = (int)(itemAsset4.size_x * 50);
                    sleekImageTexture4.sizeOffset_Y     = (int)(itemAsset4.size_y * 50);
                    sleek.add(sleekImageTexture4);
                    ItemTool.getIcon(blueprintOutput.id, 100, itemAsset4.getState(), itemAsset4, new ItemIconReady(sleekImageTexture4.updateTexture));
                    SleekLabel sleekLabel16 = new SleekLabel();
                    sleekLabel16.positionOffset_X = -100;
                    sleekLabel16.positionOffset_Y = -30;
                    sleekLabel16.positionScale_Y  = 1f;
                    sleekLabel16.sizeOffset_X     = 100;
                    sleekLabel16.sizeOffset_Y     = 30;
                    sleekLabel16.sizeScale_X      = 1f;
                    sleekLabel16.foregroundTint   = ESleekTint.NONE;
                    sleekLabel16.fontAlignment    = 5;
                    if (this.blueprint.type == EBlueprintType.REPAIR)
                    {
                        SleekLabel sleekLabel17 = sleekLabel;
                        sleekLabel17.text           += " 100%";
                        sleekLabel16.text            = "100%";
                        sleekLabel16.backgroundColor = Palette.COLOR_G;
                        sleekLabel16.foregroundColor = Palette.COLOR_G;
                    }
                    else if (this.blueprint.type == EBlueprintType.AMMO)
                    {
                        ItemAsset itemAsset5 = (ItemAsset)Assets.find(EAssetType.ITEM, blueprintOutput.id);
                        if (itemAsset5 != null)
                        {
                            SleekLabel sleekLabel18 = sleekLabel;
                            string     text         = sleekLabel18.text;
                            sleekLabel18.text = string.Concat(new object[]
                            {
                                text,
                                " ",
                                this.blueprint.products,
                                "/",
                                itemAsset5.amount
                            });
                            sleekLabel16.text = this.blueprint.products + "/" + itemAsset5.amount;
                        }
                    }
                    else
                    {
                        SleekLabel sleekLabel19 = sleekLabel;
                        sleekLabel19.text = sleekLabel19.text + " x" + blueprintOutput.amount;
                        sleekLabel16.text = "x" + blueprintOutput.amount.ToString();
                    }
                    sleekImageTexture4.add(sleekLabel16);
                    num += (int)(itemAsset4.size_x * 50);
                    if (j < this.blueprint.outputs.Length - 1)
                    {
                        num += 25;
                        SleekLabel sleekLabel20 = sleekLabel;
                        sleekLabel20.text += " + ";
                        sleek.add(new SleekImageTexture((Texture2D)PlayerDashboardCraftingUI.icons.load("Plus"))
                        {
                            positionOffset_X = num,
                            positionOffset_Y = -20,
                            positionScale_Y  = 0.5f,
                            sizeOffset_X     = 40,
                            sizeOffset_Y     = 40,
                            backgroundTint   = ESleekTint.FOREGROUND
                        });
                        num += 65;
                    }
                }
            }
            sleek.positionOffset_X = -num / 2;
            sleek.sizeOffset_X     = num;
            base.tooltip           = sleekLabel.text;
            this.foregroundTint    = ESleekTint.NONE;
            base.foregroundColor   = sleekLabel.foregroundColor;
        }
 // Token: 0x06003516 RID: 13590 RVA: 0x0015F8A4 File Offset: 0x0015DCA4
 private static void update(int x, int y)
 {
     for (int i = 0; i < (int)EditorLevelVisibilityUI.DEBUG_SIZE; i++)
     {
         for (int j = 0; j < (int)EditorLevelVisibilityUI.DEBUG_SIZE; j++)
         {
             int        num        = i * (int)EditorLevelVisibilityUI.DEBUG_SIZE + j;
             int        num2       = x - (int)(EditorLevelVisibilityUI.DEBUG_SIZE / 2) + i;
             int        num3       = y - (int)(EditorLevelVisibilityUI.DEBUG_SIZE / 2) + j;
             SleekLabel sleekLabel = EditorLevelVisibilityUI.regionLabels[num];
             if (Regions.checkSafe(num2, num3))
             {
                 int    num4 = LevelObjects.objects[num2, num3].Count + LevelGround.trees[num2, num3].Count;
                 int    num5 = LevelObjects.total + LevelGround.total;
                 double num6 = Math.Round((double)num4 / (double)num5 * 1000.0) / 10.0;
                 int    num7 = 0;
                 for (int k = 0; k < LevelObjects.objects[num2, num3].Count; k++)
                 {
                     LevelObject levelObject = LevelObjects.objects[num2, num3][k];
                     if (levelObject.transform)
                     {
                         levelObject.transform.GetComponents <MeshFilter>(EditorLevelVisibilityUI.meshes);
                         if (EditorLevelVisibilityUI.meshes.Count == 0)
                         {
                             Transform transform = levelObject.transform.FindChild("Model_0");
                             if (transform)
                             {
                                 transform.GetComponentsInChildren <MeshFilter>(true, EditorLevelVisibilityUI.meshes);
                             }
                         }
                         if (EditorLevelVisibilityUI.meshes.Count != 0)
                         {
                             for (int l = 0; l < EditorLevelVisibilityUI.meshes.Count; l++)
                             {
                                 Mesh sharedMesh = EditorLevelVisibilityUI.meshes[l].sharedMesh;
                                 if (sharedMesh)
                                 {
                                     num7 += sharedMesh.triangles.Length;
                                 }
                             }
                         }
                     }
                 }
                 for (int m = 0; m < LevelGround.trees[num2, num3].Count; m++)
                 {
                     ResourceSpawnpoint resourceSpawnpoint = LevelGround.trees[num2, num3][m];
                     if (resourceSpawnpoint.model)
                     {
                         resourceSpawnpoint.model.GetComponents <MeshFilter>(EditorLevelVisibilityUI.meshes);
                         if (EditorLevelVisibilityUI.meshes.Count == 0)
                         {
                             Transform transform2 = resourceSpawnpoint.model.FindChild("Model_0");
                             if (transform2)
                             {
                                 transform2.GetComponentsInChildren <MeshFilter>(true, EditorLevelVisibilityUI.meshes);
                             }
                         }
                         if (EditorLevelVisibilityUI.meshes.Count != 0)
                         {
                             for (int n = 0; n < EditorLevelVisibilityUI.meshes.Count; n++)
                             {
                                 Mesh sharedMesh2 = EditorLevelVisibilityUI.meshes[n].sharedMesh;
                                 if (sharedMesh2)
                                 {
                                     num7 += sharedMesh2.triangles.Length;
                                 }
                             }
                         }
                     }
                 }
                 long  num8    = (long)num4 * (long)num7;
                 float quality = Mathf.Clamp01((float)(1.0 - (double)num8 / 50000000.0));
                 sleekLabel.text = EditorLevelVisibilityUI.localization.format("Point", new object[]
                 {
                     num2,
                     num3
                 });
                 SleekLabel sleekLabel2 = sleekLabel;
                 sleekLabel2.text = sleekLabel2.text + "\n" + EditorLevelVisibilityUI.localization.format("Objects", new object[]
                 {
                     num4,
                     num6
                 });
                 SleekLabel sleekLabel3 = sleekLabel;
                 sleekLabel3.text = sleekLabel3.text + "\n" + EditorLevelVisibilityUI.localization.format("Triangles", new object[]
                 {
                     num7
                 });
                 if (num4 == 0 && num7 == 0)
                 {
                     sleekLabel.foregroundColor = Color.white;
                 }
                 else
                 {
                     sleekLabel.foregroundColor = ItemTool.getQualityColor(quality);
                 }
             }
         }
     }
 }