Пример #1
0
 private static void onRegenFieldTyped(SleekSingleField field, float state)
 {
     if ((int)EditorSpawns.selectedZombie < LevelZombies.tables.Count)
     {
         LevelZombies.tables[(int)EditorSpawns.selectedZombie].regen = state;
     }
 }
Пример #2
0
 // Token: 0x06003371 RID: 13169 RVA: 0x0014D900 File Offset: 0x0014BD00
 private void onTypedSingleField(SleekSingleField field, float state)
 {
     if (this.onValued != null)
     {
         this.onValued(this, state);
     }
     this._state       = state;
     this.slider.state = state;
 }
 private static void onTypedLengthField(SleekSingleField field, float state)
 {
     if (EditorNodes.node != null && EditorNodes.node.type == ENodeType.EFFECT)
     {
         Vector3 bounds = ((EffectNode)EditorNodes.node).bounds;
         bounds.z = state;
         ((EffectNode)EditorNodes.node).bounds = bounds;
     }
 }
Пример #4
0
 // Token: 0x060034DB RID: 13531 RVA: 0x0015D442 File Offset: 0x0015B842
 private static void onTypedDepthField(SleekSingleField field, float state)
 {
     LevelRoads.materials[(int)EditorRoads.selected].depth = state;
 }
Пример #5
0
 // Token: 0x060034DA RID: 13530 RVA: 0x0015D42F File Offset: 0x0015B82F
 private static void onTypedHeightField(SleekSingleField field, float state)
 {
     LevelRoads.materials[(int)EditorRoads.selected].height = state;
 }
Пример #6
0
        // Token: 0x060034D3 RID: 13523 RVA: 0x0015C8C0 File Offset: 0x0015ACC0
        public EditorEnvironmentRoadsUI()
        {
            Local  local  = Localization.read("/Editor/EditorEnvironmentRoads.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorEnvironmentRoads/EditorEnvironmentRoads.unity3d");

            EditorEnvironmentRoadsUI.container = new Sleek();
            EditorEnvironmentRoadsUI.container.positionOffset_X = 10;
            EditorEnvironmentRoadsUI.container.positionOffset_Y = 10;
            EditorEnvironmentRoadsUI.container.positionScale_X  = 1f;
            EditorEnvironmentRoadsUI.container.sizeOffset_X     = -20;
            EditorEnvironmentRoadsUI.container.sizeOffset_Y     = -20;
            EditorEnvironmentRoadsUI.container.sizeScale_X      = 1f;
            EditorEnvironmentRoadsUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorEnvironmentRoadsUI.container);
            EditorEnvironmentRoadsUI.active        = false;
            EditorEnvironmentRoadsUI.roadScrollBox = new SleekScrollBox();
            EditorEnvironmentRoadsUI.roadScrollBox.positionOffset_X = -400;
            EditorEnvironmentRoadsUI.roadScrollBox.positionOffset_Y = 120;
            EditorEnvironmentRoadsUI.roadScrollBox.positionScale_X  = 1f;
            EditorEnvironmentRoadsUI.roadScrollBox.sizeOffset_X     = 400;
            EditorEnvironmentRoadsUI.roadScrollBox.sizeOffset_Y     = -160;
            EditorEnvironmentRoadsUI.roadScrollBox.sizeScale_Y      = 1f;
            EditorEnvironmentRoadsUI.roadScrollBox.area             = new Rect(0f, 0f, 5f, (float)(LevelRoads.materials.Length * 70 + 160));
            EditorEnvironmentRoadsUI.container.add(EditorEnvironmentRoadsUI.roadScrollBox);
            for (int i = 0; i < LevelRoads.materials.Length; i++)
            {
                SleekImageTexture sleekImageTexture = new SleekImageTexture();
                sleekImageTexture.positionOffset_X = 200;
                sleekImageTexture.positionOffset_Y = i * 70;
                sleekImageTexture.sizeOffset_X     = 64;
                sleekImageTexture.sizeOffset_Y     = 64;
                sleekImageTexture.texture          = LevelRoads.materials[i].material.mainTexture;
                EditorEnvironmentRoadsUI.roadScrollBox.add(sleekImageTexture);
                SleekButton sleekButton = new SleekButton();
                sleekButton.positionOffset_X = 70;
                sleekButton.sizeOffset_X     = 100;
                sleekButton.sizeOffset_Y     = 64;
                sleekButton.text             = LevelRoads.materials[i].material.mainTexture.name;
                SleekButton sleekButton2 = sleekButton;
                if (EditorEnvironmentRoadsUI.< > f__mg$cache0 == null)
                {
                    EditorEnvironmentRoadsUI.< > f__mg$cache0 = new ClickedButton(EditorEnvironmentRoadsUI.onClickedRoadButton);
                }
                sleekButton2.onClickedButton = EditorEnvironmentRoadsUI.< > f__mg$cache0;
                sleekImageTexture.add(sleekButton);
            }
            EditorEnvironmentRoadsUI.widthField = new SleekSingleField();
            EditorEnvironmentRoadsUI.widthField.positionOffset_X = 200;
            EditorEnvironmentRoadsUI.widthField.positionOffset_Y = LevelRoads.materials.Length * 70;
            EditorEnvironmentRoadsUI.widthField.sizeOffset_X     = 170;
            EditorEnvironmentRoadsUI.widthField.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.widthField.addLabel(local.format("WidthFieldLabelText"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField = EditorEnvironmentRoadsUI.widthField;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache1 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache1 = new TypedSingle(EditorEnvironmentRoadsUI.onTypedWidthField);
            }
            sleekSingleField.onTypedSingle = EditorEnvironmentRoadsUI.< > f__mg$cache1;
            EditorEnvironmentRoadsUI.roadScrollBox.add(EditorEnvironmentRoadsUI.widthField);
            EditorEnvironmentRoadsUI.heightField = new SleekSingleField();
            EditorEnvironmentRoadsUI.heightField.positionOffset_X = 200;
            EditorEnvironmentRoadsUI.heightField.positionOffset_Y = LevelRoads.materials.Length * 70 + 40;
            EditorEnvironmentRoadsUI.heightField.sizeOffset_X     = 170;
            EditorEnvironmentRoadsUI.heightField.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.heightField.addLabel(local.format("HeightFieldLabelText"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField2 = EditorEnvironmentRoadsUI.heightField;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache2 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache2 = new TypedSingle(EditorEnvironmentRoadsUI.onTypedHeightField);
            }
            sleekSingleField2.onTypedSingle = EditorEnvironmentRoadsUI.< > f__mg$cache2;
            EditorEnvironmentRoadsUI.roadScrollBox.add(EditorEnvironmentRoadsUI.heightField);
            EditorEnvironmentRoadsUI.depthField = new SleekSingleField();
            EditorEnvironmentRoadsUI.depthField.positionOffset_X = 200;
            EditorEnvironmentRoadsUI.depthField.positionOffset_Y = LevelRoads.materials.Length * 70 + 80;
            EditorEnvironmentRoadsUI.depthField.sizeOffset_X     = 170;
            EditorEnvironmentRoadsUI.depthField.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.depthField.addLabel(local.format("DepthFieldLabelText"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField3 = EditorEnvironmentRoadsUI.depthField;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache3 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache3 = new TypedSingle(EditorEnvironmentRoadsUI.onTypedDepthField);
            }
            sleekSingleField3.onTypedSingle = EditorEnvironmentRoadsUI.< > f__mg$cache3;
            EditorEnvironmentRoadsUI.roadScrollBox.add(EditorEnvironmentRoadsUI.depthField);
            EditorEnvironmentRoadsUI.offset2Field = new SleekSingleField();
            EditorEnvironmentRoadsUI.offset2Field.positionOffset_X = 200;
            EditorEnvironmentRoadsUI.offset2Field.positionOffset_Y = LevelRoads.materials.Length * 70 + 120;
            EditorEnvironmentRoadsUI.offset2Field.sizeOffset_X     = 170;
            EditorEnvironmentRoadsUI.offset2Field.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.offset2Field.addLabel(local.format("OffsetFieldLabelText"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField4 = EditorEnvironmentRoadsUI.offset2Field;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache4 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache4 = new TypedSingle(EditorEnvironmentRoadsUI.onTypedOffset2Field);
            }
            sleekSingleField4.onTypedSingle = EditorEnvironmentRoadsUI.< > f__mg$cache4;
            EditorEnvironmentRoadsUI.roadScrollBox.add(EditorEnvironmentRoadsUI.offset2Field);
            EditorEnvironmentRoadsUI.concreteToggle = new SleekToggle();
            EditorEnvironmentRoadsUI.concreteToggle.positionOffset_X = 200;
            EditorEnvironmentRoadsUI.concreteToggle.positionOffset_Y = LevelRoads.materials.Length * 70 + 160;
            EditorEnvironmentRoadsUI.concreteToggle.sizeOffset_X     = 40;
            EditorEnvironmentRoadsUI.concreteToggle.sizeOffset_Y     = 40;
            EditorEnvironmentRoadsUI.concreteToggle.addLabel(local.format("ConcreteToggleLabelText"), ESleekSide.RIGHT);
            SleekToggle sleekToggle = EditorEnvironmentRoadsUI.concreteToggle;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache5 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache5 = new Toggled(EditorEnvironmentRoadsUI.onToggledConcreteToggle);
            }
            sleekToggle.onToggled = EditorEnvironmentRoadsUI.< > f__mg$cache5;
            EditorEnvironmentRoadsUI.roadScrollBox.add(EditorEnvironmentRoadsUI.concreteToggle);
            EditorEnvironmentRoadsUI.selectedBox = new SleekBox();
            EditorEnvironmentRoadsUI.selectedBox.positionOffset_X = -200;
            EditorEnvironmentRoadsUI.selectedBox.positionOffset_Y = 80;
            EditorEnvironmentRoadsUI.selectedBox.positionScale_X  = 1f;
            EditorEnvironmentRoadsUI.selectedBox.sizeOffset_X     = 200;
            EditorEnvironmentRoadsUI.selectedBox.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.selectedBox.addLabel(local.format("SelectionBoxLabelText"), ESleekSide.LEFT);
            EditorEnvironmentRoadsUI.container.add(EditorEnvironmentRoadsUI.selectedBox);
            EditorEnvironmentRoadsUI.updateSelection();
            EditorEnvironmentRoadsUI.bakeRoadsButton = new SleekButtonIcon((Texture2D)bundle.load("Roads"));
            EditorEnvironmentRoadsUI.bakeRoadsButton.positionOffset_X = -200;
            EditorEnvironmentRoadsUI.bakeRoadsButton.positionOffset_Y = -30;
            EditorEnvironmentRoadsUI.bakeRoadsButton.positionScale_X  = 1f;
            EditorEnvironmentRoadsUI.bakeRoadsButton.positionScale_Y  = 1f;
            EditorEnvironmentRoadsUI.bakeRoadsButton.sizeOffset_X     = 200;
            EditorEnvironmentRoadsUI.bakeRoadsButton.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.bakeRoadsButton.text             = local.format("BakeRoadsButtonText");
            EditorEnvironmentRoadsUI.bakeRoadsButton.tooltip          = local.format("BakeRoadsButtonTooltip");
            SleekButton sleekButton3 = EditorEnvironmentRoadsUI.bakeRoadsButton;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache6 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache6 = new ClickedButton(EditorEnvironmentRoadsUI.onClickedBakeRoadsButton);
            }
            sleekButton3.onClickedButton = EditorEnvironmentRoadsUI.< > f__mg$cache6;
            EditorEnvironmentRoadsUI.container.add(EditorEnvironmentRoadsUI.bakeRoadsButton);
            EditorEnvironmentRoadsUI.offsetField = new SleekSingleField();
            EditorEnvironmentRoadsUI.offsetField.positionOffset_Y = -210;
            EditorEnvironmentRoadsUI.offsetField.positionScale_Y  = 1f;
            EditorEnvironmentRoadsUI.offsetField.sizeOffset_X     = 200;
            EditorEnvironmentRoadsUI.offsetField.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.offsetField.addLabel(local.format("OffsetFieldLabelText"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField5 = EditorEnvironmentRoadsUI.offsetField;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache7 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache7 = new TypedSingle(EditorEnvironmentRoadsUI.onTypedOffsetField);
            }
            sleekSingleField5.onTypedSingle = EditorEnvironmentRoadsUI.< > f__mg$cache7;
            EditorEnvironmentRoadsUI.container.add(EditorEnvironmentRoadsUI.offsetField);
            EditorEnvironmentRoadsUI.offsetField.isVisible       = false;
            EditorEnvironmentRoadsUI.loopToggle                  = new SleekToggle();
            EditorEnvironmentRoadsUI.loopToggle.positionOffset_Y = -170;
            EditorEnvironmentRoadsUI.loopToggle.positionScale_Y  = 1f;
            EditorEnvironmentRoadsUI.loopToggle.sizeOffset_X     = 40;
            EditorEnvironmentRoadsUI.loopToggle.sizeOffset_Y     = 40;
            EditorEnvironmentRoadsUI.loopToggle.addLabel(local.format("LoopToggleLabelText"), ESleekSide.RIGHT);
            SleekToggle sleekToggle2 = EditorEnvironmentRoadsUI.loopToggle;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache8 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache8 = new Toggled(EditorEnvironmentRoadsUI.onToggledLoopToggle);
            }
            sleekToggle2.onToggled = EditorEnvironmentRoadsUI.< > f__mg$cache8;
            EditorEnvironmentRoadsUI.container.add(EditorEnvironmentRoadsUI.loopToggle);
            EditorEnvironmentRoadsUI.loopToggle.isVisible = false;
            EditorEnvironmentRoadsUI.ignoreTerrainToggle  = new SleekToggle();
            EditorEnvironmentRoadsUI.ignoreTerrainToggle.positionOffset_Y = -120;
            EditorEnvironmentRoadsUI.ignoreTerrainToggle.positionScale_Y  = 1f;
            EditorEnvironmentRoadsUI.ignoreTerrainToggle.sizeOffset_X     = 40;
            EditorEnvironmentRoadsUI.ignoreTerrainToggle.sizeOffset_Y     = 40;
            EditorEnvironmentRoadsUI.ignoreTerrainToggle.addLabel(local.format("IgnoreTerrainToggleLabelText"), ESleekSide.RIGHT);
            SleekToggle sleekToggle3 = EditorEnvironmentRoadsUI.ignoreTerrainToggle;

            if (EditorEnvironmentRoadsUI.< > f__mg$cache9 == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cache9 = new Toggled(EditorEnvironmentRoadsUI.onToggledIgnoreTerrainToggle);
            }
            sleekToggle3.onToggled = EditorEnvironmentRoadsUI.< > f__mg$cache9;
            EditorEnvironmentRoadsUI.container.add(EditorEnvironmentRoadsUI.ignoreTerrainToggle);
            EditorEnvironmentRoadsUI.ignoreTerrainToggle.isVisible = false;
            EditorEnvironmentRoadsUI.modeButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(local.format("Mirror")),
                new GUIContent(local.format("Aligned")),
                new GUIContent(local.format("Free"))
            });
            EditorEnvironmentRoadsUI.modeButton.positionOffset_Y = -70;
            EditorEnvironmentRoadsUI.modeButton.positionScale_Y  = 1f;
            EditorEnvironmentRoadsUI.modeButton.sizeOffset_X     = 200;
            EditorEnvironmentRoadsUI.modeButton.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.modeButton.tooltip          = local.format("ModeButtonTooltipText");
            SleekButtonState sleekButtonState = EditorEnvironmentRoadsUI.modeButton;

            if (EditorEnvironmentRoadsUI.< > f__mg$cacheA == null)
            {
                EditorEnvironmentRoadsUI.< > f__mg$cacheA = new SwappedState(EditorEnvironmentRoadsUI.onSwappedStateMode);
            }
            sleekButtonState.onSwappedState = EditorEnvironmentRoadsUI.< > f__mg$cacheA;
            EditorEnvironmentRoadsUI.container.add(EditorEnvironmentRoadsUI.modeButton);
            EditorEnvironmentRoadsUI.modeButton.isVisible          = false;
            EditorEnvironmentRoadsUI.roadIndexBox                  = new SleekBox();
            EditorEnvironmentRoadsUI.roadIndexBox.positionOffset_Y = -30;
            EditorEnvironmentRoadsUI.roadIndexBox.positionScale_Y  = 1f;
            EditorEnvironmentRoadsUI.roadIndexBox.sizeOffset_X     = 200;
            EditorEnvironmentRoadsUI.roadIndexBox.sizeOffset_Y     = 30;
            EditorEnvironmentRoadsUI.roadIndexBox.addLabel(local.format("RoadIndexLabelText"), ESleekSide.RIGHT);
            EditorEnvironmentRoadsUI.container.add(EditorEnvironmentRoadsUI.roadIndexBox);
            EditorEnvironmentRoadsUI.roadIndexBox.isVisible = false;
            bundle.unload();
        }
 // Token: 0x060034A9 RID: 13481 RVA: 0x0015AAD0 File Offset: 0x00158ED0
 private static void onTypedRainFreqField(SleekSingleField field, float state)
 {
     LevelLighting.rainFreq = state;
 }
Пример #8
0
 private static void onTypedSnapRotationField(SleekSingleField field, float value)
 {
     EditorObjects.snapRotation = value;
 }
Пример #9
0
        private static void refreshConfig()
        {
            MenuPlayConfigUI.configBox.remove();
            MenuPlayConfigUI.configOffset = 0;
            MenuPlayConfigUI.configGroups.Clear();
            Type type = MenuPlayConfigUI.modeConfigData.GetType();

            foreach (FieldInfo fieldInfo in type.GetFields())
            {
                SleekBox sleekBox = new SleekBox();
                sleekBox.positionOffset_Y = MenuPlayConfigUI.configOffset;
                sleekBox.sizeOffset_X     = -30;
                sleekBox.sizeOffset_Y     = 30;
                sleekBox.sizeScale_X      = 1f;
                sleekBox.text             = MenuPlayConfigUI.localization.format(fieldInfo.Name);
                MenuPlayConfigUI.configBox.add(sleekBox);
                int num = 40;
                MenuPlayConfigUI.configOffset += 40;
                object value = fieldInfo.GetValue(MenuPlayConfigUI.modeConfigData);
                Type   type2 = value.GetType();
                foreach (FieldInfo fieldInfo2 in type2.GetFields())
                {
                    object value2 = fieldInfo2.GetValue(value);
                    Type   type3  = value2.GetType();
                    if (type3 == typeof(uint))
                    {
                        SleekUInt32Field sleekUInt32Field = new SleekUInt32Field();
                        sleekUInt32Field.positionOffset_Y = num;
                        sleekUInt32Field.sizeOffset_X     = 200;
                        sleekUInt32Field.sizeOffset_Y     = 30;
                        sleekUInt32Field.state            = (uint)value2;
                        sleekUInt32Field.addLabel(MenuPlayConfigUI.localization.format(fieldInfo2.Name), ESleekSide.RIGHT);
                        SleekUInt32Field sleekUInt32Field2 = sleekUInt32Field;
                        Delegate         onTypedUInt       = sleekUInt32Field2.onTypedUInt32;
                        if (MenuPlayConfigUI.< > f__mg$cache0 == null)
                        {
                            MenuPlayConfigUI.< > f__mg$cache0 = new TypedUInt32(MenuPlayConfigUI.onTypedUInt32);
                        }
                        sleekUInt32Field2.onTypedUInt32 = (TypedUInt32)Delegate.Combine(onTypedUInt, MenuPlayConfigUI.< > f__mg$cache0);
                        sleekBox.add(sleekUInt32Field);
                        num += 40;
                        MenuPlayConfigUI.configOffset += 40;
                    }
                    else if (type3 == typeof(float))
                    {
                        SleekSingleField sleekSingleField = new SleekSingleField();
                        sleekSingleField.positionOffset_Y = num;
                        sleekSingleField.sizeOffset_X     = 200;
                        sleekSingleField.sizeOffset_Y     = 30;
                        sleekSingleField.state            = (float)value2;
                        sleekSingleField.addLabel(MenuPlayConfigUI.localization.format(fieldInfo2.Name), ESleekSide.RIGHT);
                        SleekSingleField sleekSingleField2 = sleekSingleField;
                        Delegate         onTypedSingle     = sleekSingleField2.onTypedSingle;
                        if (MenuPlayConfigUI.< > f__mg$cache1 == null)
                        {
                            MenuPlayConfigUI.< > f__mg$cache1 = new TypedSingle(MenuPlayConfigUI.onTypedSingle);
                        }
                        sleekSingleField2.onTypedSingle = (TypedSingle)Delegate.Combine(onTypedSingle, MenuPlayConfigUI.< > f__mg$cache1);
                        sleekBox.add(sleekSingleField);
                        num += 40;
                        MenuPlayConfigUI.configOffset += 40;
                    }
                    else if (type3 == typeof(bool))
                    {
                        SleekToggle sleekToggle = new SleekToggle();
                        sleekToggle.positionOffset_Y = num;
                        sleekToggle.sizeOffset_X     = 40;
                        sleekToggle.sizeOffset_Y     = 40;
                        sleekToggle.state            = (bool)value2;
                        sleekToggle.addLabel(MenuPlayConfigUI.localization.format(fieldInfo2.Name), ESleekSide.RIGHT);
                        SleekToggle sleekToggle2 = sleekToggle;
                        Delegate    onToggled    = sleekToggle2.onToggled;
                        if (MenuPlayConfigUI.< > f__mg$cache2 == null)
                        {
                            MenuPlayConfigUI.< > f__mg$cache2 = new Toggled(MenuPlayConfigUI.onToggled);
                        }
                        sleekToggle2.onToggled = (Toggled)Delegate.Combine(onToggled, MenuPlayConfigUI.< > f__mg$cache2);
                        sleekBox.add(sleekToggle);
                        num += 50;
                        MenuPlayConfigUI.configOffset += 50;
                    }
                }
                MenuPlayConfigUI.configOffset += 40;
                MenuPlayConfigUI.configGroups.Add(value);
            }
            MenuPlayConfigUI.configBox.area = new Rect(0f, 0f, 5f, (float)(MenuPlayConfigUI.configOffset - 50));
        }
Пример #10
0
 // Token: 0x060035E7 RID: 13799 RVA: 0x0016BB52 File Offset: 0x00169F52
 private static void onTypedSensitivityField(SleekSingleField field, float state)
 {
     ControlsSettings.sensitivity = state;
 }
Пример #11
0
        // Token: 0x060035E0 RID: 13792 RVA: 0x0016B0D8 File Offset: 0x001694D8
        public MenuConfigurationControlsUI()
        {
            MenuConfigurationControlsUI.localization = Localization.read("/Menu/Configuration/MenuConfigurationControls.dat");
            MenuConfigurationControlsUI.container    = new Sleek();
            MenuConfigurationControlsUI.container.positionOffset_X = 10;
            MenuConfigurationControlsUI.container.positionOffset_Y = 10;
            MenuConfigurationControlsUI.container.positionScale_Y  = 1f;
            MenuConfigurationControlsUI.container.sizeOffset_X     = -20;
            MenuConfigurationControlsUI.container.sizeOffset_Y     = -20;
            MenuConfigurationControlsUI.container.sizeScale_X      = 1f;
            MenuConfigurationControlsUI.container.sizeScale_Y      = 1f;
            if (Provider.isConnected)
            {
                PlayerUI.container.add(MenuConfigurationControlsUI.container);
            }
            else
            {
                MenuUI.container.add(MenuConfigurationControlsUI.container);
            }
            MenuConfigurationControlsUI.active      = false;
            MenuConfigurationControlsUI.binding     = byte.MaxValue;
            MenuConfigurationControlsUI.controlsBox = new SleekScrollBox();
            MenuConfigurationControlsUI.controlsBox.positionOffset_X = -200;
            MenuConfigurationControlsUI.controlsBox.positionOffset_Y = 100;
            MenuConfigurationControlsUI.controlsBox.positionScale_X  = 0.5f;
            MenuConfigurationControlsUI.controlsBox.sizeOffset_X     = 430;
            MenuConfigurationControlsUI.controlsBox.sizeOffset_Y     = -200;
            MenuConfigurationControlsUI.controlsBox.sizeScale_Y      = 1f;
            MenuConfigurationControlsUI.controlsBox.area             = new Rect(0f, 0f, 5f, (float)(380 + (ControlsSettings.bindings.Length + (MenuConfigurationControlsUI.layouts.Length - 1) * 2) * 40 - 10));
            MenuConfigurationControlsUI.container.add(MenuConfigurationControlsUI.controlsBox);
            MenuConfigurationControlsUI.sensitivityField = new SleekSingleField();
            MenuConfigurationControlsUI.sensitivityField.positionOffset_Y = 100;
            MenuConfigurationControlsUI.sensitivityField.sizeOffset_X     = 200;
            MenuConfigurationControlsUI.sensitivityField.sizeOffset_Y     = 30;
            MenuConfigurationControlsUI.sensitivityField.addLabel(MenuConfigurationControlsUI.localization.format("Sensitivity_Field_Label"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField = MenuConfigurationControlsUI.sensitivityField;

            if (MenuConfigurationControlsUI.< > f__mg$cache0 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache0 = new TypedSingle(MenuConfigurationControlsUI.onTypedSensitivityField);
            }
            sleekSingleField.onTypedSingle = MenuConfigurationControlsUI.< > f__mg$cache0;
            MenuConfigurationControlsUI.controlsBox.add(MenuConfigurationControlsUI.sensitivityField);
            MenuConfigurationControlsUI.invertToggle = new SleekToggle();
            MenuConfigurationControlsUI.invertToggle.sizeOffset_X = 40;
            MenuConfigurationControlsUI.invertToggle.sizeOffset_Y = 40;
            MenuConfigurationControlsUI.invertToggle.addLabel(MenuConfigurationControlsUI.localization.format("Invert_Toggle_Label"), ESleekSide.RIGHT);
            SleekToggle sleekToggle = MenuConfigurationControlsUI.invertToggle;

            if (MenuConfigurationControlsUI.< > f__mg$cache1 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache1 = new Toggled(MenuConfigurationControlsUI.onToggledInvertToggle);
            }
            sleekToggle.onToggled = MenuConfigurationControlsUI.< > f__mg$cache1;
            MenuConfigurationControlsUI.controlsBox.add(MenuConfigurationControlsUI.invertToggle);
            MenuConfigurationControlsUI.invertFlightToggle = new SleekToggle();
            MenuConfigurationControlsUI.invertFlightToggle.positionOffset_Y = 50;
            MenuConfigurationControlsUI.invertFlightToggle.sizeOffset_X     = 40;
            MenuConfigurationControlsUI.invertFlightToggle.sizeOffset_Y     = 40;
            MenuConfigurationControlsUI.invertFlightToggle.addLabel(MenuConfigurationControlsUI.localization.format("Invert_Flight_Toggle_Label"), ESleekSide.RIGHT);
            SleekToggle sleekToggle2 = MenuConfigurationControlsUI.invertFlightToggle;

            if (MenuConfigurationControlsUI.< > f__mg$cache2 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache2 = new Toggled(MenuConfigurationControlsUI.onToggledInvertFlightToggle);
            }
            sleekToggle2.onToggled = MenuConfigurationControlsUI.< > f__mg$cache2;
            MenuConfigurationControlsUI.controlsBox.add(MenuConfigurationControlsUI.invertFlightToggle);
            MenuConfigurationControlsUI.aimingButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuConfigurationControlsUI.localization.format("Hold")),
                new GUIContent(MenuConfigurationControlsUI.localization.format("Toggle"))
            });
            MenuConfigurationControlsUI.aimingButton.positionOffset_Y = 140;
            MenuConfigurationControlsUI.aimingButton.sizeOffset_X     = 200;
            MenuConfigurationControlsUI.aimingButton.sizeOffset_Y     = 30;
            MenuConfigurationControlsUI.aimingButton.addLabel(MenuConfigurationControlsUI.localization.format("Aiming_Label"), ESleekSide.RIGHT);
            SleekButtonState sleekButtonState = MenuConfigurationControlsUI.aimingButton;

            if (MenuConfigurationControlsUI.< > f__mg$cache3 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache3 = new SwappedState(MenuConfigurationControlsUI.onSwappedAimingState);
            }
            sleekButtonState.onSwappedState = MenuConfigurationControlsUI.< > f__mg$cache3;
            MenuConfigurationControlsUI.controlsBox.add(MenuConfigurationControlsUI.aimingButton);
            MenuConfigurationControlsUI.crouchingButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuConfigurationControlsUI.localization.format("Hold")),
                new GUIContent(MenuConfigurationControlsUI.localization.format("Toggle"))
            });
            MenuConfigurationControlsUI.crouchingButton.positionOffset_Y = 180;
            MenuConfigurationControlsUI.crouchingButton.sizeOffset_X     = 200;
            MenuConfigurationControlsUI.crouchingButton.sizeOffset_Y     = 30;
            MenuConfigurationControlsUI.crouchingButton.addLabel(MenuConfigurationControlsUI.localization.format("Crouching_Label"), ESleekSide.RIGHT);
            SleekButtonState sleekButtonState2 = MenuConfigurationControlsUI.crouchingButton;

            if (MenuConfigurationControlsUI.< > f__mg$cache4 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache4 = new SwappedState(MenuConfigurationControlsUI.onSwappedCrouchingState);
            }
            sleekButtonState2.onSwappedState = MenuConfigurationControlsUI.< > f__mg$cache4;
            MenuConfigurationControlsUI.controlsBox.add(MenuConfigurationControlsUI.crouchingButton);
            MenuConfigurationControlsUI.proningButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuConfigurationControlsUI.localization.format("Hold")),
                new GUIContent(MenuConfigurationControlsUI.localization.format("Toggle"))
            });
            MenuConfigurationControlsUI.proningButton.positionOffset_Y = 220;
            MenuConfigurationControlsUI.proningButton.sizeOffset_X     = 200;
            MenuConfigurationControlsUI.proningButton.sizeOffset_Y     = 30;
            MenuConfigurationControlsUI.proningButton.addLabel(MenuConfigurationControlsUI.localization.format("Proning_Label"), ESleekSide.RIGHT);
            SleekButtonState sleekButtonState3 = MenuConfigurationControlsUI.proningButton;

            if (MenuConfigurationControlsUI.< > f__mg$cache5 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache5 = new SwappedState(MenuConfigurationControlsUI.onSwappedProningState);
            }
            sleekButtonState3.onSwappedState = MenuConfigurationControlsUI.< > f__mg$cache5;
            MenuConfigurationControlsUI.controlsBox.add(MenuConfigurationControlsUI.proningButton);
            MenuConfigurationControlsUI.sprintingButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuConfigurationControlsUI.localization.format("Hold")),
                new GUIContent(MenuConfigurationControlsUI.localization.format("Toggle"))
            });
            MenuConfigurationControlsUI.sprintingButton.positionOffset_Y = 260;
            MenuConfigurationControlsUI.sprintingButton.sizeOffset_X     = 200;
            MenuConfigurationControlsUI.sprintingButton.sizeOffset_Y     = 30;
            MenuConfigurationControlsUI.sprintingButton.addLabel(MenuConfigurationControlsUI.localization.format("Sprinting_Label"), ESleekSide.RIGHT);
            SleekButtonState sleekButtonState4 = MenuConfigurationControlsUI.sprintingButton;

            if (MenuConfigurationControlsUI.< > f__mg$cache6 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache6 = new SwappedState(MenuConfigurationControlsUI.onSwappedSprintingState);
            }
            sleekButtonState4.onSwappedState = MenuConfigurationControlsUI.< > f__mg$cache6;
            MenuConfigurationControlsUI.controlsBox.add(MenuConfigurationControlsUI.sprintingButton);
            MenuConfigurationControlsUI.leaningButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuConfigurationControlsUI.localization.format("Hold")),
                new GUIContent(MenuConfigurationControlsUI.localization.format("Toggle"))
            });
            MenuConfigurationControlsUI.leaningButton.positionOffset_Y = 300;
            MenuConfigurationControlsUI.leaningButton.sizeOffset_X     = 200;
            MenuConfigurationControlsUI.leaningButton.sizeOffset_Y     = 30;
            MenuConfigurationControlsUI.leaningButton.addLabel(MenuConfigurationControlsUI.localization.format("Leaning_Label"), ESleekSide.RIGHT);
            SleekButtonState sleekButtonState5 = MenuConfigurationControlsUI.leaningButton;

            if (MenuConfigurationControlsUI.< > f__mg$cache7 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache7 = new SwappedState(MenuConfigurationControlsUI.onSwappedLeaningState);
            }
            sleekButtonState5.onSwappedState = MenuConfigurationControlsUI.< > f__mg$cache7;
            MenuConfigurationControlsUI.controlsBox.add(MenuConfigurationControlsUI.leaningButton);
            MenuConfigurationControlsUI.buttons = new SleekButton[ControlsSettings.bindings.Length];
            byte b  = 0;
            byte b2 = 0;

            while ((int)b2 < MenuConfigurationControlsUI.layouts.Length)
            {
                SleekBox sleekBox = new SleekBox();
                sleekBox.positionOffset_Y = 340 + (int)((b + b2 * 2) * 40);
                sleekBox.sizeOffset_X     = -30;
                sleekBox.sizeOffset_Y     = 30;
                sleekBox.sizeScale_X      = 1f;
                sleekBox.text             = MenuConfigurationControlsUI.localization.format("Layout_" + b2);
                MenuConfigurationControlsUI.controlsBox.add(sleekBox);
                byte b3 = 0;
                while ((int)b3 < MenuConfigurationControlsUI.layouts[(int)b2].Length)
                {
                    SleekButton sleekButton = new SleekButton();
                    sleekButton.positionOffset_Y = (int)((b3 + 1) * 40);
                    sleekButton.sizeOffset_Y     = 30;
                    sleekButton.sizeScale_X      = 1f;
                    SleekButton sleekButton2 = sleekButton;
                    if (MenuConfigurationControlsUI.< > f__mg$cache8 == null)
                    {
                        MenuConfigurationControlsUI.< > f__mg$cache8 = new ClickedButton(MenuConfigurationControlsUI.onClickedKeyButton);
                    }
                    sleekButton2.onClickedButton = MenuConfigurationControlsUI.< > f__mg$cache8;
                    sleekBox.add(sleekButton);
                    MenuConfigurationControlsUI.buttons[(int)MenuConfigurationControlsUI.layouts[(int)b2][(int)b3]] = sleekButton;
                    b  += 1;
                    b3 += 1;
                }
                b2 += 1;
            }
            MenuConfigurationControlsUI.backButton = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Exit"));
            MenuConfigurationControlsUI.backButton.positionOffset_Y = -50;
            MenuConfigurationControlsUI.backButton.positionScale_Y  = 1f;
            MenuConfigurationControlsUI.backButton.sizeOffset_X     = 200;
            MenuConfigurationControlsUI.backButton.sizeOffset_Y     = 50;
            MenuConfigurationControlsUI.backButton.text             = MenuDashboardUI.localization.format("BackButtonText");
            MenuConfigurationControlsUI.backButton.tooltip          = MenuDashboardUI.localization.format("BackButtonTooltip");
            SleekButton sleekButton3 = MenuConfigurationControlsUI.backButton;

            if (MenuConfigurationControlsUI.< > f__mg$cache9 == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cache9 = new ClickedButton(MenuConfigurationControlsUI.onClickedBackButton);
            }
            sleekButton3.onClickedButton = MenuConfigurationControlsUI.< > f__mg$cache9;
            MenuConfigurationControlsUI.backButton.fontSize = 14;
            MenuConfigurationControlsUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuConfigurationControlsUI.container.add(MenuConfigurationControlsUI.backButton);
            MenuConfigurationControlsUI.defaultButton = new SleekButton();
            MenuConfigurationControlsUI.defaultButton.positionOffset_X = -200;
            MenuConfigurationControlsUI.defaultButton.positionOffset_Y = -50;
            MenuConfigurationControlsUI.defaultButton.positionScale_X  = 1f;
            MenuConfigurationControlsUI.defaultButton.positionScale_Y  = 1f;
            MenuConfigurationControlsUI.defaultButton.sizeOffset_X     = 200;
            MenuConfigurationControlsUI.defaultButton.sizeOffset_Y     = 50;
            MenuConfigurationControlsUI.defaultButton.text             = MenuPlayConfigUI.localization.format("Default");
            MenuConfigurationControlsUI.defaultButton.tooltip          = MenuPlayConfigUI.localization.format("Default_Tooltip");
            SleekButton sleekButton4 = MenuConfigurationControlsUI.defaultButton;

            if (MenuConfigurationControlsUI.< > f__mg$cacheA == null)
            {
                MenuConfigurationControlsUI.< > f__mg$cacheA = new ClickedButton(MenuConfigurationControlsUI.onClickedDefaultButton);
            }
            sleekButton4.onClickedButton = MenuConfigurationControlsUI.< > f__mg$cacheA;
            MenuConfigurationControlsUI.defaultButton.fontSize = 14;
            MenuConfigurationControlsUI.container.add(MenuConfigurationControlsUI.defaultButton);
            MenuConfigurationControlsUI.updateAll();
        }
Пример #12
0
        public EditorSpawnsZombiesUI()
        {
            EditorSpawnsZombiesUI.localization = Localization.read("/Editor/EditorSpawnsZombies.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorSpawnsZombies/EditorSpawnsZombies.unity3d");

            EditorSpawnsZombiesUI.container = new Sleek();
            EditorSpawnsZombiesUI.container.positionOffset_X = 10;
            EditorSpawnsZombiesUI.container.positionOffset_Y = 10;
            EditorSpawnsZombiesUI.container.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.container.sizeOffset_X     = -20;
            EditorSpawnsZombiesUI.container.sizeOffset_Y     = -20;
            EditorSpawnsZombiesUI.container.sizeScale_X      = 1f;
            EditorSpawnsZombiesUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorSpawnsZombiesUI.container);
            EditorSpawnsZombiesUI.active         = false;
            EditorSpawnsZombiesUI.tableScrollBox = new SleekScrollBox();
            EditorSpawnsZombiesUI.tableScrollBox.positionOffset_X = -470;
            EditorSpawnsZombiesUI.tableScrollBox.positionOffset_Y = 120;
            EditorSpawnsZombiesUI.tableScrollBox.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.tableScrollBox.sizeOffset_X     = 470;
            EditorSpawnsZombiesUI.tableScrollBox.sizeOffset_Y     = 200;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.tableScrollBox);
            EditorSpawnsZombiesUI.tableNameField = new SleekField();
            EditorSpawnsZombiesUI.tableNameField.positionOffset_X = -230;
            EditorSpawnsZombiesUI.tableNameField.positionOffset_Y = 330;
            EditorSpawnsZombiesUI.tableNameField.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.tableNameField.sizeOffset_X     = 230;
            EditorSpawnsZombiesUI.tableNameField.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.tableNameField.maxLength        = 64;
            EditorSpawnsZombiesUI.tableNameField.addLabel(EditorSpawnsZombiesUI.localization.format("TableNameFieldLabelText"), ESleekSide.LEFT);
            SleekField sleekField = EditorSpawnsZombiesUI.tableNameField;
            Delegate   onTyped    = sleekField.onTyped;

            if (EditorSpawnsZombiesUI.< > f__mg$cache4 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache4 = new Typed(EditorSpawnsZombiesUI.onTypedNameField);
            }
            sleekField.onTyped = (Typed)Delegate.Combine(onTyped, EditorSpawnsZombiesUI.< > f__mg$cache4);
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.tableNameField);
            EditorSpawnsZombiesUI.addTableButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsZombiesUI.addTableButton.positionOffset_X = -230;
            EditorSpawnsZombiesUI.addTableButton.positionOffset_Y = 370;
            EditorSpawnsZombiesUI.addTableButton.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.addTableButton.sizeOffset_X     = 110;
            EditorSpawnsZombiesUI.addTableButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.addTableButton.text             = EditorSpawnsZombiesUI.localization.format("AddTableButtonText");
            EditorSpawnsZombiesUI.addTableButton.tooltip          = EditorSpawnsZombiesUI.localization.format("AddTableButtonTooltip");
            SleekButton sleekButton = EditorSpawnsZombiesUI.addTableButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache5 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache5 = new ClickedButton(EditorSpawnsZombiesUI.onClickedAddTableButton);
            }
            sleekButton.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache5;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.addTableButton);
            EditorSpawnsZombiesUI.removeTableButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsZombiesUI.removeTableButton.positionOffset_X = -110;
            EditorSpawnsZombiesUI.removeTableButton.positionOffset_Y = 370;
            EditorSpawnsZombiesUI.removeTableButton.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.removeTableButton.sizeOffset_X     = 110;
            EditorSpawnsZombiesUI.removeTableButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.removeTableButton.text             = EditorSpawnsZombiesUI.localization.format("RemoveTableButtonText");
            EditorSpawnsZombiesUI.removeTableButton.tooltip          = EditorSpawnsZombiesUI.localization.format("RemoveTableButtonTooltip");
            SleekButton sleekButton2 = EditorSpawnsZombiesUI.removeTableButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache6 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache6 = new ClickedButton(EditorSpawnsZombiesUI.onClickedRemoveTableButton);
            }
            sleekButton2.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache6;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.removeTableButton);
            EditorSpawnsZombiesUI.updateTables();
            EditorSpawnsZombiesUI.spawnsScrollBox = new SleekScrollBox();
            EditorSpawnsZombiesUI.spawnsScrollBox.positionOffset_X = -470;
            EditorSpawnsZombiesUI.spawnsScrollBox.positionOffset_Y = 410;
            EditorSpawnsZombiesUI.spawnsScrollBox.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.spawnsScrollBox.sizeOffset_X     = 470;
            EditorSpawnsZombiesUI.spawnsScrollBox.sizeOffset_Y     = -410;
            EditorSpawnsZombiesUI.spawnsScrollBox.sizeScale_Y      = 1f;
            EditorSpawnsZombiesUI.spawnsScrollBox.area             = new Rect(0f, 0f, 5f, 1000f);
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.spawnsScrollBox);
            EditorSpawnsZombiesUI.tableColorPicker = new SleekColorPicker();
            EditorSpawnsZombiesUI.tableColorPicker.positionOffset_X = 200;
            SleekColorPicker sleekColorPicker = EditorSpawnsZombiesUI.tableColorPicker;

            if (EditorSpawnsZombiesUI.< > f__mg$cache7 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache7 = new ColorPicked(EditorSpawnsZombiesUI.onZombieColorPicked);
            }
            sleekColorPicker.onColorPicked = EditorSpawnsZombiesUI.< > f__mg$cache7;
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.tableColorPicker);
            EditorSpawnsZombiesUI.megaToggle = new SleekToggle();
            EditorSpawnsZombiesUI.megaToggle.positionOffset_X = 240;
            EditorSpawnsZombiesUI.megaToggle.positionOffset_Y = 130;
            EditorSpawnsZombiesUI.megaToggle.sizeOffset_X     = 40;
            EditorSpawnsZombiesUI.megaToggle.sizeOffset_Y     = 40;
            SleekToggle sleekToggle = EditorSpawnsZombiesUI.megaToggle;

            if (EditorSpawnsZombiesUI.< > f__mg$cache8 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache8 = new Toggled(EditorSpawnsZombiesUI.onToggledMegaToggle);
            }
            sleekToggle.onToggled = EditorSpawnsZombiesUI.< > f__mg$cache8;
            EditorSpawnsZombiesUI.megaToggle.addLabel(EditorSpawnsZombiesUI.localization.format("MegaToggleLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.megaToggle);
            EditorSpawnsZombiesUI.healthField = new SleekUInt16Field();
            EditorSpawnsZombiesUI.healthField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.healthField.positionOffset_Y = 180;
            EditorSpawnsZombiesUI.healthField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.healthField.sizeOffset_Y     = 30;
            SleekUInt16Field sleekUInt16Field = EditorSpawnsZombiesUI.healthField;

            if (EditorSpawnsZombiesUI.< > f__mg$cache9 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache9 = new TypedUInt16(EditorSpawnsZombiesUI.onHealthFieldTyped);
            }
            sleekUInt16Field.onTypedUInt16 = EditorSpawnsZombiesUI.< > f__mg$cache9;
            EditorSpawnsZombiesUI.healthField.addLabel(EditorSpawnsZombiesUI.localization.format("HealthFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.healthField);
            EditorSpawnsZombiesUI.damageField = new SleekByteField();
            EditorSpawnsZombiesUI.damageField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.damageField.positionOffset_Y = 220;
            EditorSpawnsZombiesUI.damageField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.damageField.sizeOffset_Y     = 30;
            SleekByteField sleekByteField = EditorSpawnsZombiesUI.damageField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheA == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheA = new TypedByte(EditorSpawnsZombiesUI.onDamageFieldTyped);
            }
            sleekByteField.onTypedByte = EditorSpawnsZombiesUI.< > f__mg$cacheA;
            EditorSpawnsZombiesUI.damageField.addLabel(EditorSpawnsZombiesUI.localization.format("DamageFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.damageField);
            EditorSpawnsZombiesUI.lootIndexField = new SleekByteField();
            EditorSpawnsZombiesUI.lootIndexField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.lootIndexField.positionOffset_Y = 260;
            EditorSpawnsZombiesUI.lootIndexField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.lootIndexField.sizeOffset_Y     = 30;
            SleekByteField sleekByteField2 = EditorSpawnsZombiesUI.lootIndexField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheB == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheB = new TypedByte(EditorSpawnsZombiesUI.onLootIndexFieldTyped);
            }
            sleekByteField2.onTypedByte = EditorSpawnsZombiesUI.< > f__mg$cacheB;
            EditorSpawnsZombiesUI.lootIndexField.addLabel(EditorSpawnsZombiesUI.localization.format("LootIndexFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.lootIndexField);
            EditorSpawnsZombiesUI.lootIDField = new SleekUInt16Field();
            EditorSpawnsZombiesUI.lootIDField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.lootIDField.positionOffset_Y = 300;
            EditorSpawnsZombiesUI.lootIDField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.lootIDField.sizeOffset_Y     = 30;
            SleekUInt16Field sleekUInt16Field2 = EditorSpawnsZombiesUI.lootIDField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheC == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheC = new TypedUInt16(EditorSpawnsZombiesUI.onLootIDFieldTyped);
            }
            sleekUInt16Field2.onTypedUInt16 = EditorSpawnsZombiesUI.< > f__mg$cacheC;
            EditorSpawnsZombiesUI.lootIDField.addLabel(EditorSpawnsZombiesUI.localization.format("LootIDFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.lootIDField);
            EditorSpawnsZombiesUI.xpField = new SleekUInt32Field();
            EditorSpawnsZombiesUI.xpField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.xpField.positionOffset_Y = 340;
            EditorSpawnsZombiesUI.xpField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.xpField.sizeOffset_Y     = 30;
            SleekUInt32Field sleekUInt32Field = EditorSpawnsZombiesUI.xpField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheD == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheD = new TypedUInt32(EditorSpawnsZombiesUI.onXPFieldTyped);
            }
            sleekUInt32Field.onTypedUInt32 = EditorSpawnsZombiesUI.< > f__mg$cacheD;
            EditorSpawnsZombiesUI.xpField.addLabel(EditorSpawnsZombiesUI.localization.format("XPFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.xpField);
            EditorSpawnsZombiesUI.regenField = new SleekSingleField();
            EditorSpawnsZombiesUI.regenField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.regenField.positionOffset_Y = 380;
            EditorSpawnsZombiesUI.regenField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.regenField.sizeOffset_Y     = 30;
            SleekSingleField sleekSingleField = EditorSpawnsZombiesUI.regenField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheE == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheE = new TypedSingle(EditorSpawnsZombiesUI.onRegenFieldTyped);
            }
            sleekSingleField.onTypedSingle = EditorSpawnsZombiesUI.< > f__mg$cacheE;
            EditorSpawnsZombiesUI.regenField.addLabel(EditorSpawnsZombiesUI.localization.format("RegenFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.regenField);
            EditorSpawnsZombiesUI.difficultyGUIDField = new SleekField();
            EditorSpawnsZombiesUI.difficultyGUIDField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.difficultyGUIDField.positionOffset_Y = 420;
            EditorSpawnsZombiesUI.difficultyGUIDField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.difficultyGUIDField.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.difficultyGUIDField.maxLength        = 32;
            SleekField sleekField2 = EditorSpawnsZombiesUI.difficultyGUIDField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheF == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheF = new Typed(EditorSpawnsZombiesUI.onDifficultyGUIDFieldTyped);
            }
            sleekField2.onTyped = EditorSpawnsZombiesUI.< > f__mg$cacheF;
            EditorSpawnsZombiesUI.difficultyGUIDField.addLabel(EditorSpawnsZombiesUI.localization.format("DifficultyGUIDFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.difficultyGUIDField);
            EditorSpawnsZombiesUI.itemIDField = new SleekUInt16Field();
            EditorSpawnsZombiesUI.itemIDField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.itemIDField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.itemIDField.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.itemIDField.addLabel(EditorSpawnsZombiesUI.localization.format("ItemIDFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.itemIDField);
            EditorSpawnsZombiesUI.addItemButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsZombiesUI.addItemButton.positionOffset_X = 240;
            EditorSpawnsZombiesUI.addItemButton.sizeOffset_X     = 95;
            EditorSpawnsZombiesUI.addItemButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.addItemButton.text             = EditorSpawnsZombiesUI.localization.format("AddItemButtonText");
            EditorSpawnsZombiesUI.addItemButton.tooltip          = EditorSpawnsZombiesUI.localization.format("AddItemButtonTooltip");
            SleekButton sleekButton3 = EditorSpawnsZombiesUI.addItemButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache10 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache10 = new ClickedButton(EditorSpawnsZombiesUI.onClickedAddItemButton);
            }
            sleekButton3.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache10;
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.addItemButton);
            EditorSpawnsZombiesUI.removeItemButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsZombiesUI.removeItemButton.positionOffset_X = 345;
            EditorSpawnsZombiesUI.removeItemButton.sizeOffset_X     = 95;
            EditorSpawnsZombiesUI.removeItemButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.removeItemButton.text             = EditorSpawnsZombiesUI.localization.format("RemoveItemButtonText");
            EditorSpawnsZombiesUI.removeItemButton.tooltip          = EditorSpawnsZombiesUI.localization.format("RemoveItemButtonTooltip");
            SleekButton sleekButton4 = EditorSpawnsZombiesUI.removeItemButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache11 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache11 = new ClickedButton(EditorSpawnsZombiesUI.onClickedRemoveItemButton);
            }
            sleekButton4.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache11;
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.removeItemButton);
            EditorSpawnsZombiesUI.selectedBox = new SleekBox();
            EditorSpawnsZombiesUI.selectedBox.positionOffset_X = -230;
            EditorSpawnsZombiesUI.selectedBox.positionOffset_Y = 80;
            EditorSpawnsZombiesUI.selectedBox.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.selectedBox.sizeOffset_X     = 230;
            EditorSpawnsZombiesUI.selectedBox.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.selectedBox.addLabel(EditorSpawnsZombiesUI.localization.format("SelectionBoxLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.selectedBox);
            EditorSpawnsZombiesUI.updateSelection();
            EditorSpawnsZombiesUI.radiusSlider = new SleekSlider();
            EditorSpawnsZombiesUI.radiusSlider.positionOffset_Y = -100;
            EditorSpawnsZombiesUI.radiusSlider.positionScale_Y  = 1f;
            EditorSpawnsZombiesUI.radiusSlider.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.radiusSlider.sizeOffset_Y     = 20;
            EditorSpawnsZombiesUI.radiusSlider.state            = (float)(EditorSpawns.radius - EditorSpawns.MIN_REMOVE_SIZE) / (float)EditorSpawns.MAX_REMOVE_SIZE;
            EditorSpawnsZombiesUI.radiusSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorSpawnsZombiesUI.radiusSlider.addLabel(EditorSpawnsZombiesUI.localization.format("RadiusSliderLabelText"), ESleekSide.RIGHT);
            SleekSlider sleekSlider = EditorSpawnsZombiesUI.radiusSlider;

            if (EditorSpawnsZombiesUI.< > f__mg$cache12 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache12 = new Dragged(EditorSpawnsZombiesUI.onDraggedRadiusSlider);
            }
            sleekSlider.onDragged = EditorSpawnsZombiesUI.< > f__mg$cache12;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.radiusSlider);
            EditorSpawnsZombiesUI.addButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsZombiesUI.addButton.positionOffset_Y = -70;
            EditorSpawnsZombiesUI.addButton.positionScale_Y  = 1f;
            EditorSpawnsZombiesUI.addButton.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.addButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.addButton.text             = EditorSpawnsZombiesUI.localization.format("AddButtonText", new object[]
            {
                ControlsSettings.tool_0
            });
            EditorSpawnsZombiesUI.addButton.tooltip = EditorSpawnsZombiesUI.localization.format("AddButtonTooltip");
            SleekButton sleekButton5 = EditorSpawnsZombiesUI.addButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache13 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache13 = new ClickedButton(EditorSpawnsZombiesUI.onClickedAddButton);
            }
            sleekButton5.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache13;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.addButton);
            EditorSpawnsZombiesUI.removeButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsZombiesUI.removeButton.positionOffset_Y = -30;
            EditorSpawnsZombiesUI.removeButton.positionScale_Y  = 1f;
            EditorSpawnsZombiesUI.removeButton.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.removeButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.removeButton.text             = EditorSpawnsZombiesUI.localization.format("RemoveButtonText", new object[]
            {
                ControlsSettings.tool_1
            });
            EditorSpawnsZombiesUI.removeButton.tooltip = EditorSpawnsZombiesUI.localization.format("RemoveButtonTooltip");
            SleekButton sleekButton6 = EditorSpawnsZombiesUI.removeButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache14 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache14 = new ClickedButton(EditorSpawnsZombiesUI.onClickedRemoveButton);
            }
            sleekButton6.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache14;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.removeButton);
            bundle.unload();
        }
 // Token: 0x060034AC RID: 13484 RVA: 0x0015AAE8 File Offset: 0x00158EE8
 private static void onTypedSnowDurField(SleekSingleField field, float state)
 {
     LevelLighting.snowDur = state;
 }
Пример #14
0
 // Token: 0x060034DC RID: 13532 RVA: 0x0015D455 File Offset: 0x0015B855
 private static void onTypedOffset2Field(SleekSingleField field, float state)
 {
     LevelRoads.materials[(int)EditorRoads.selected].offset = state;
 }
Пример #15
0
 private static void onTypedSingle(SleekSingleField singleField, float state)
 {
     MenuPlayConfigUI.updateValue(singleField, state);
 }
Пример #16
0
 // Token: 0x060034DF RID: 13535 RVA: 0x0015D482 File Offset: 0x0015B882
 private static void onTypedOffsetField(SleekSingleField field, float state)
 {
     EditorRoads.joint.offset = state;
     EditorRoads.road.updatePoints();
 }
Пример #17
0
        // Token: 0x060038F8 RID: 14584 RVA: 0x001A28D8 File Offset: 0x001A0CD8
        public PlayerWorkzoneUI()
        {
            Local  local  = Localization.read("/Editor/EditorLevelObjects.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorLevelObjects/EditorLevelObjects.unity3d");

            PlayerWorkzoneUI.container = new Sleek();
            PlayerWorkzoneUI.container.positionOffset_X = 10;
            PlayerWorkzoneUI.container.positionOffset_Y = 10;
            PlayerWorkzoneUI.container.positionScale_X  = 1f;
            PlayerWorkzoneUI.container.sizeOffset_X     = -20;
            PlayerWorkzoneUI.container.sizeOffset_Y     = -20;
            PlayerWorkzoneUI.container.sizeScale_X      = 1f;
            PlayerWorkzoneUI.container.sizeScale_Y      = 1f;
            PlayerUI.window.add(PlayerWorkzoneUI.container);
            PlayerWorkzoneUI.active = false;
            PlayerWorkzone workzone = Player.player.workzone;

            if (PlayerWorkzoneUI.< > f__mg$cache0 == null)
            {
                PlayerWorkzoneUI.< > f__mg$cache0 = new DragStarted(PlayerWorkzoneUI.onDragStarted);
            }
            workzone.onDragStarted = PlayerWorkzoneUI.< > f__mg$cache0;
            PlayerWorkzone workzone2 = Player.player.workzone;

            if (PlayerWorkzoneUI.< > f__mg$cache1 == null)
            {
                PlayerWorkzoneUI.< > f__mg$cache1 = new DragStopped(PlayerWorkzoneUI.onDragStopped);
            }
            workzone2.onDragStopped  = PlayerWorkzoneUI.< > f__mg$cache1;
            PlayerWorkzoneUI.dragBox = new SleekBox();
            PlayerUI.window.add(PlayerWorkzoneUI.dragBox);
            PlayerWorkzoneUI.dragBox.isVisible  = false;
            PlayerWorkzoneUI.snapTransformField = new SleekSingleField();
            PlayerWorkzoneUI.snapTransformField.positionOffset_Y = -190;
            PlayerWorkzoneUI.snapTransformField.positionScale_Y  = 1f;
            PlayerWorkzoneUI.snapTransformField.sizeOffset_X     = 200;
            PlayerWorkzoneUI.snapTransformField.sizeOffset_Y     = 30;
            PlayerWorkzoneUI.snapTransformField.text             = (Mathf.Floor(Player.player.workzone.snapTransform * 100f) / 100f).ToString();
            PlayerWorkzoneUI.snapTransformField.addLabel(local.format("SnapTransformLabelText"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField = PlayerWorkzoneUI.snapTransformField;

            if (PlayerWorkzoneUI.< > f__mg$cache2 == null)
            {
                PlayerWorkzoneUI.< > f__mg$cache2 = new TypedSingle(PlayerWorkzoneUI.onTypedSnapTransformField);
            }
            sleekSingleField.onTypedSingle = PlayerWorkzoneUI.< > f__mg$cache2;
            PlayerWorkzoneUI.container.add(PlayerWorkzoneUI.snapTransformField);
            PlayerWorkzoneUI.snapRotationField = new SleekSingleField();
            PlayerWorkzoneUI.snapRotationField.positionOffset_Y = -150;
            PlayerWorkzoneUI.snapRotationField.positionScale_Y  = 1f;
            PlayerWorkzoneUI.snapRotationField.sizeOffset_X     = 200;
            PlayerWorkzoneUI.snapRotationField.sizeOffset_Y     = 30;
            PlayerWorkzoneUI.snapRotationField.text             = (Mathf.Floor(Player.player.workzone.snapRotation * 100f) / 100f).ToString();
            PlayerWorkzoneUI.snapRotationField.addLabel(local.format("SnapRotationLabelText"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField2 = PlayerWorkzoneUI.snapRotationField;

            if (PlayerWorkzoneUI.< > f__mg$cache3 == null)
            {
                PlayerWorkzoneUI.< > f__mg$cache3 = new TypedSingle(PlayerWorkzoneUI.onTypedSnapRotationField);
            }
            sleekSingleField2.onTypedSingle = PlayerWorkzoneUI.< > f__mg$cache3;
            PlayerWorkzoneUI.container.add(PlayerWorkzoneUI.snapRotationField);
            PlayerWorkzoneUI.transformButton = new SleekButtonIcon((Texture2D)bundle.load("Transform"));
            PlayerWorkzoneUI.transformButton.positionOffset_Y = -110;
            PlayerWorkzoneUI.transformButton.positionScale_Y  = 1f;
            PlayerWorkzoneUI.transformButton.sizeOffset_X     = 200;
            PlayerWorkzoneUI.transformButton.sizeOffset_Y     = 30;
            PlayerWorkzoneUI.transformButton.text             = local.format("TransformButtonText", new object[]
            {
                ControlsSettings.tool_0
            });
            PlayerWorkzoneUI.transformButton.tooltip = local.format("TransformButtonTooltip");
            SleekButton sleekButton = PlayerWorkzoneUI.transformButton;

            if (PlayerWorkzoneUI.< > f__mg$cache4 == null)
            {
                PlayerWorkzoneUI.< > f__mg$cache4 = new ClickedButton(PlayerWorkzoneUI.onClickedTransformButton);
            }
            sleekButton.onClickedButton = PlayerWorkzoneUI.< > f__mg$cache4;
            PlayerWorkzoneUI.container.add(PlayerWorkzoneUI.transformButton);
            PlayerWorkzoneUI.rotateButton = new SleekButtonIcon((Texture2D)bundle.load("Rotate"));
            PlayerWorkzoneUI.rotateButton.positionOffset_Y = -70;
            PlayerWorkzoneUI.rotateButton.positionScale_Y  = 1f;
            PlayerWorkzoneUI.rotateButton.sizeOffset_X     = 200;
            PlayerWorkzoneUI.rotateButton.sizeOffset_Y     = 30;
            PlayerWorkzoneUI.rotateButton.text             = local.format("RotateButtonText", new object[]
            {
                ControlsSettings.tool_1
            });
            PlayerWorkzoneUI.rotateButton.tooltip = local.format("RotateButtonTooltip");
            SleekButton sleekButton2 = PlayerWorkzoneUI.rotateButton;

            if (PlayerWorkzoneUI.< > f__mg$cache5 == null)
            {
                PlayerWorkzoneUI.< > f__mg$cache5 = new ClickedButton(PlayerWorkzoneUI.onClickedRotateButton);
            }
            sleekButton2.onClickedButton = PlayerWorkzoneUI.< > f__mg$cache5;
            PlayerWorkzoneUI.container.add(PlayerWorkzoneUI.rotateButton);
            PlayerWorkzoneUI.coordinateButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(local.format("CoordinateButtonTextGlobal"), (Texture)bundle.load("Global")),
                new GUIContent(local.format("CoordinateButtonTextLocal"), (Texture)bundle.load("Local"))
            });
            PlayerWorkzoneUI.coordinateButton.positionOffset_Y = -30;
            PlayerWorkzoneUI.coordinateButton.positionScale_Y  = 1f;
            PlayerWorkzoneUI.coordinateButton.sizeOffset_X     = 200;
            PlayerWorkzoneUI.coordinateButton.sizeOffset_Y     = 30;
            PlayerWorkzoneUI.coordinateButton.tooltip          = local.format("CoordinateButtonTooltip");
            SleekButtonState sleekButtonState = PlayerWorkzoneUI.coordinateButton;

            if (PlayerWorkzoneUI.< > f__mg$cache6 == null)
            {
                PlayerWorkzoneUI.< > f__mg$cache6 = new SwappedState(PlayerWorkzoneUI.onSwappedStateCoordinate);
            }
            sleekButtonState.onSwappedState = PlayerWorkzoneUI.< > f__mg$cache6;
            PlayerWorkzoneUI.container.add(PlayerWorkzoneUI.coordinateButton);
            bundle.unload();
        }
        public EditorEnvironmentNodesUI()
        {
            Local local = Localization.read("/Editor/EditorEnvironmentNodes.dat");

            EditorEnvironmentNodesUI.container = new Sleek();
            EditorEnvironmentNodesUI.container.positionOffset_X = 10;
            EditorEnvironmentNodesUI.container.positionOffset_Y = 10;
            EditorEnvironmentNodesUI.container.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.container.sizeOffset_X     = -20;
            EditorEnvironmentNodesUI.container.sizeOffset_Y     = -20;
            EditorEnvironmentNodesUI.container.sizeScale_X      = 1f;
            EditorEnvironmentNodesUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorEnvironmentNodesUI.container);
            EditorEnvironmentNodesUI.active    = false;
            EditorEnvironmentNodesUI.nameField = new SleekField();
            EditorEnvironmentNodesUI.nameField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.nameField.positionOffset_Y = 80;
            EditorEnvironmentNodesUI.nameField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.nameField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.nameField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.nameField.addLabel(local.format("Name_Label"), ESleekSide.LEFT);
            SleekField sleekField = EditorEnvironmentNodesUI.nameField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache0 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache0 = new Typed(EditorEnvironmentNodesUI.onTypedNameField);
            }
            sleekField.onTyped = EditorEnvironmentNodesUI.< > f__mg$cache0;
            EditorEnvironmentNodesUI.nameField.maxLength = 32;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.nameField);
            EditorEnvironmentNodesUI.nameField.isVisible           = false;
            EditorEnvironmentNodesUI.radiusSlider                  = new SleekSlider();
            EditorEnvironmentNodesUI.radiusSlider.positionOffset_X = -200;
            EditorEnvironmentNodesUI.radiusSlider.positionOffset_Y = 80;
            EditorEnvironmentNodesUI.radiusSlider.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.radiusSlider.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.radiusSlider.sizeOffset_Y     = 20;
            EditorEnvironmentNodesUI.radiusSlider.addLabel(local.format("Radius_Label"), ESleekSide.LEFT);
            EditorEnvironmentNodesUI.radiusSlider.orientation = ESleekOrientation.HORIZONTAL;
            SleekSlider sleekSlider = EditorEnvironmentNodesUI.radiusSlider;

            if (EditorEnvironmentNodesUI.< > f__mg$cache1 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache1 = new Dragged(EditorEnvironmentNodesUI.onDraggedRadiusSlider);
            }
            sleekSlider.onDragged = EditorEnvironmentNodesUI.< > f__mg$cache1;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.radiusSlider);
            EditorEnvironmentNodesUI.radiusSlider.isVisible      = false;
            EditorEnvironmentNodesUI.widthField                  = new SleekSingleField();
            EditorEnvironmentNodesUI.widthField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.widthField.positionOffset_Y = 110;
            EditorEnvironmentNodesUI.widthField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.widthField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.widthField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.widthField.addLabel(local.format("Width_Label"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField = EditorEnvironmentNodesUI.widthField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache2 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache2 = new TypedSingle(EditorEnvironmentNodesUI.onTypedWidthField);
            }
            sleekSingleField.onTypedSingle = EditorEnvironmentNodesUI.< > f__mg$cache2;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.widthField);
            EditorEnvironmentNodesUI.widthField.isVisible         = false;
            EditorEnvironmentNodesUI.heightField                  = new SleekSingleField();
            EditorEnvironmentNodesUI.heightField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.heightField.positionOffset_Y = 150;
            EditorEnvironmentNodesUI.heightField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.heightField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.heightField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.heightField.addLabel(local.format("Height_Label"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField2 = EditorEnvironmentNodesUI.heightField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache3 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache3 = new TypedSingle(EditorEnvironmentNodesUI.onTypedHeightField);
            }
            sleekSingleField2.onTypedSingle = EditorEnvironmentNodesUI.< > f__mg$cache3;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.heightField);
            EditorEnvironmentNodesUI.heightField.isVisible        = false;
            EditorEnvironmentNodesUI.lengthField                  = new SleekSingleField();
            EditorEnvironmentNodesUI.lengthField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.lengthField.positionOffset_Y = 190;
            EditorEnvironmentNodesUI.lengthField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.lengthField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.lengthField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.lengthField.addLabel(local.format("Length_Label"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField3 = EditorEnvironmentNodesUI.lengthField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache4 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache4 = new TypedSingle(EditorEnvironmentNodesUI.onTypedLengthField);
            }
            sleekSingleField3.onTypedSingle = EditorEnvironmentNodesUI.< > f__mg$cache4;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.lengthField);
            EditorEnvironmentNodesUI.lengthField.isVisible = false;
            EditorEnvironmentNodesUI.shapeButton           = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(local.format("Sphere")),
                new GUIContent(local.format("Box"))
            });
            EditorEnvironmentNodesUI.shapeButton.positionOffset_X = -200;
            EditorEnvironmentNodesUI.shapeButton.positionOffset_Y = 230;
            EditorEnvironmentNodesUI.shapeButton.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.shapeButton.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.shapeButton.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.shapeButton.tooltip          = local.format("Shape_Tooltip");
            SleekButtonState sleekButtonState = EditorEnvironmentNodesUI.shapeButton;

            if (EditorEnvironmentNodesUI.< > f__mg$cache5 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache5 = new SwappedState(EditorEnvironmentNodesUI.onSwappedShape);
            }
            sleekButtonState.onSwappedState = EditorEnvironmentNodesUI.< > f__mg$cache5;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.shapeButton);
            EditorEnvironmentNodesUI.shapeButton.isVisible        = false;
            EditorEnvironmentNodesUI.itemIDField                  = new SleekUInt16Field();
            EditorEnvironmentNodesUI.itemIDField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.itemIDField.positionOffset_Y = 110;
            EditorEnvironmentNodesUI.itemIDField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.itemIDField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.itemIDField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.itemIDField.addLabel(local.format("Item_ID_Label"), ESleekSide.LEFT);
            SleekUInt16Field sleekUInt16Field = EditorEnvironmentNodesUI.itemIDField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache6 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache6 = new TypedUInt16(EditorEnvironmentNodesUI.onTypedItemIDField);
            }
            sleekUInt16Field.onTypedUInt16 = EditorEnvironmentNodesUI.< > f__mg$cache6;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.itemIDField);
            EditorEnvironmentNodesUI.itemIDField.isVisible      = false;
            EditorEnvironmentNodesUI.costField                  = new SleekUInt32Field();
            EditorEnvironmentNodesUI.costField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.costField.positionOffset_Y = 150;
            EditorEnvironmentNodesUI.costField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.costField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.costField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.costField.addLabel(local.format("Cost_Label"), ESleekSide.LEFT);
            SleekUInt32Field sleekUInt32Field = EditorEnvironmentNodesUI.costField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache7 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache7 = new TypedUInt32(EditorEnvironmentNodesUI.onTypedCostField);
            }
            sleekUInt32Field.onTypedUInt32 = EditorEnvironmentNodesUI.< > f__mg$cache7;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.costField);
            EditorEnvironmentNodesUI.costField.isVisible           = false;
            EditorEnvironmentNodesUI.heightToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.heightToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.heightToggle.positionOffset_Y = 110;
            EditorEnvironmentNodesUI.heightToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.heightToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.heightToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.heightToggle.addLabel(local.format("Height_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle = EditorEnvironmentNodesUI.heightToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cache8 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache8 = new Toggled(EditorEnvironmentNodesUI.onToggledHeightToggle);
            }
            sleekToggle.onToggled = EditorEnvironmentNodesUI.< > f__mg$cache8;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.heightToggle);
            EditorEnvironmentNodesUI.heightToggle.isVisible           = false;
            EditorEnvironmentNodesUI.noWeaponsToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.noWeaponsToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.noWeaponsToggle.positionOffset_Y = 160;
            EditorEnvironmentNodesUI.noWeaponsToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.noWeaponsToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.noWeaponsToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.noWeaponsToggle.addLabel(local.format("No_Weapons_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle2 = EditorEnvironmentNodesUI.noWeaponsToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cache9 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache9 = new Toggled(EditorEnvironmentNodesUI.onToggledNoWeaponsToggle);
            }
            sleekToggle2.onToggled = EditorEnvironmentNodesUI.< > f__mg$cache9;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.noWeaponsToggle);
            EditorEnvironmentNodesUI.noWeaponsToggle.isVisible           = false;
            EditorEnvironmentNodesUI.noBuildablesToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.noBuildablesToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.noBuildablesToggle.positionOffset_Y = 210;
            EditorEnvironmentNodesUI.noBuildablesToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.noBuildablesToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.noBuildablesToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.noBuildablesToggle.addLabel(local.format("No_Buildables_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle3 = EditorEnvironmentNodesUI.noBuildablesToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheA == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheA = new Toggled(EditorEnvironmentNodesUI.onToggledNoBuildablesToggle);
            }
            sleekToggle3.onToggled = EditorEnvironmentNodesUI.< > f__mg$cacheA;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.noBuildablesToggle);
            EditorEnvironmentNodesUI.noBuildablesToggle.isVisible = false;
            EditorEnvironmentNodesUI.spawnIDField = new SleekUInt16Field();
            EditorEnvironmentNodesUI.spawnIDField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.spawnIDField.positionOffset_Y = 80;
            EditorEnvironmentNodesUI.spawnIDField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.spawnIDField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.spawnIDField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.spawnIDField.addLabel(local.format("Spawn_ID_Label"), ESleekSide.LEFT);
            SleekUInt16Field sleekUInt16Field2 = EditorEnvironmentNodesUI.spawnIDField;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheB == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheB = new TypedUInt16(EditorEnvironmentNodesUI.onTypedSpawnIDField);
            }
            sleekUInt16Field2.onTypedUInt16 = EditorEnvironmentNodesUI.< > f__mg$cacheB;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.spawnIDField);
            EditorEnvironmentNodesUI.spawnIDField.isVisible         = false;
            EditorEnvironmentNodesUI.effectIDField                  = new SleekUInt16Field();
            EditorEnvironmentNodesUI.effectIDField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.effectIDField.positionOffset_Y = 270;
            EditorEnvironmentNodesUI.effectIDField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.effectIDField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.effectIDField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.effectIDField.addLabel(local.format("Effect_ID_Label"), ESleekSide.LEFT);
            SleekUInt16Field sleekUInt16Field3 = EditorEnvironmentNodesUI.effectIDField;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheC == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheC = new TypedUInt16(EditorEnvironmentNodesUI.onTypedEffectIDField);
            }
            sleekUInt16Field3.onTypedUInt16 = EditorEnvironmentNodesUI.< > f__mg$cacheC;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.effectIDField);
            EditorEnvironmentNodesUI.effectIDField.isVisible        = false;
            EditorEnvironmentNodesUI.noWaterToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.noWaterToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.noWaterToggle.positionOffset_Y = 310;
            EditorEnvironmentNodesUI.noWaterToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.noWaterToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.noWaterToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.noWaterToggle.addLabel(local.format("No_Water_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle4 = EditorEnvironmentNodesUI.noWaterToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheD == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheD = new Toggled(EditorEnvironmentNodesUI.onToggledNoWaterToggle);
            }
            sleekToggle4.onToggled = EditorEnvironmentNodesUI.< > f__mg$cacheD;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.noWaterToggle);
            EditorEnvironmentNodesUI.noWaterToggle.isVisible           = false;
            EditorEnvironmentNodesUI.noLightingToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.noLightingToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.noLightingToggle.positionOffset_Y = 360;
            EditorEnvironmentNodesUI.noLightingToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.noLightingToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.noLightingToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.noLightingToggle.addLabel(local.format("No_Lighting_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle5 = EditorEnvironmentNodesUI.noLightingToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheE == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheE = new Toggled(EditorEnvironmentNodesUI.onToggledNoLightingToggle);
            }
            sleekToggle5.onToggled = EditorEnvironmentNodesUI.< > f__mg$cacheE;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.noLightingToggle);
            EditorEnvironmentNodesUI.noLightingToggle.isVisible = false;
            EditorEnvironmentNodesUI.typeButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(local.format("Location")),
                new GUIContent(local.format("Safezone")),
                new GUIContent(local.format("Purchase")),
                new GUIContent(local.format("Arena")),
                new GUIContent(local.format("Deadzone")),
                new GUIContent(local.format("Airdrop")),
                new GUIContent(local.format("Effect"))
            });
            EditorEnvironmentNodesUI.typeButton.positionOffset_Y = -30;
            EditorEnvironmentNodesUI.typeButton.positionScale_Y  = 1f;
            EditorEnvironmentNodesUI.typeButton.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.typeButton.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.typeButton.tooltip          = local.format("Type_Tooltip");
            SleekButtonState sleekButtonState2 = EditorEnvironmentNodesUI.typeButton;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheF == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheF = new SwappedState(EditorEnvironmentNodesUI.onSwappedType);
            }
            sleekButtonState2.onSwappedState = EditorEnvironmentNodesUI.< > f__mg$cacheF;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.typeButton);
        }
Пример #19
0
 // Token: 0x060038FD RID: 14589 RVA: 0x001A2EAE File Offset: 0x001A12AE
 private static void onTypedSnapTransformField(SleekSingleField field, float value)
 {
     Player.player.workzone.snapTransform = value;
 }
Пример #20
0
 private static void onTypedSnapTransformField(SleekSingleField field, float value)
 {
     EditorObjects.snapTransform = value;
 }
Пример #21
0
 // Token: 0x060038FE RID: 14590 RVA: 0x001A2EC0 File Offset: 0x001A12C0
 private static void onTypedSnapRotationField(SleekSingleField field, float value)
 {
     Player.player.workzone.snapRotation = value;
 }
Пример #22
0
        public EditorLevelObjectsUI()
        {
            Local  local  = Localization.read("/Editor/EditorLevelObjects.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorLevelObjects/EditorLevelObjects.unity3d");

            EditorLevelObjectsUI.container = new Sleek();
            EditorLevelObjectsUI.container.positionOffset_X = 10;
            EditorLevelObjectsUI.container.positionOffset_Y = 10;
            EditorLevelObjectsUI.container.positionScale_X  = 1f;
            EditorLevelObjectsUI.container.sizeOffset_X     = -20;
            EditorLevelObjectsUI.container.sizeOffset_Y     = -20;
            EditorLevelObjectsUI.container.sizeScale_X      = 1f;
            EditorLevelObjectsUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorLevelObjectsUI.container);
            EditorLevelObjectsUI.active      = false;
            EditorLevelObjectsUI.assets      = new List <Asset>();
            EditorLevelObjectsUI.selectedBox = new SleekBox();
            EditorLevelObjectsUI.selectedBox.positionOffset_X = -230;
            EditorLevelObjectsUI.selectedBox.positionOffset_Y = 80;
            EditorLevelObjectsUI.selectedBox.positionScale_X  = 1f;
            EditorLevelObjectsUI.selectedBox.sizeOffset_X     = 230;
            EditorLevelObjectsUI.selectedBox.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.selectedBox.addLabel(local.format("SelectionBoxLabelText"), ESleekSide.LEFT);
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.selectedBox);
            EditorLevelObjectsUI.searchField = new SleekField();
            EditorLevelObjectsUI.searchField.positionOffset_X = -230;
            EditorLevelObjectsUI.searchField.positionOffset_Y = 120;
            EditorLevelObjectsUI.searchField.positionScale_X  = 1f;
            EditorLevelObjectsUI.searchField.sizeOffset_X     = 160;
            EditorLevelObjectsUI.searchField.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.searchField.hint             = local.format("Search_Field_Hint");
            EditorLevelObjectsUI.searchField.control          = "Search";
            SleekField sleekField = EditorLevelObjectsUI.searchField;

            if (EditorLevelObjectsUI.< > f__mg$cache1 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache1 = new Entered(EditorLevelObjectsUI.onEnteredSearchField);
            }
            sleekField.onEntered = EditorLevelObjectsUI.< > f__mg$cache1;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.searchField);
            EditorLevelObjectsUI.searchButton = new SleekButton();
            EditorLevelObjectsUI.searchButton.positionOffset_X = -60;
            EditorLevelObjectsUI.searchButton.positionOffset_Y = 120;
            EditorLevelObjectsUI.searchButton.positionScale_X  = 1f;
            EditorLevelObjectsUI.searchButton.sizeOffset_X     = 60;
            EditorLevelObjectsUI.searchButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.searchButton.text             = local.format("Search");
            EditorLevelObjectsUI.searchButton.tooltip          = local.format("Search_Tooltip");
            SleekButton sleekButton = EditorLevelObjectsUI.searchButton;

            if (EditorLevelObjectsUI.< > f__mg$cache2 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache2 = new ClickedButton(EditorLevelObjectsUI.onClickedSearchButton);
            }
            sleekButton.onClickedButton = EditorLevelObjectsUI.< > f__mg$cache2;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.searchButton);
            EditorLevelObjectsUI.largeToggle = new SleekToggle();
            EditorLevelObjectsUI.largeToggle.positionOffset_X = -230;
            EditorLevelObjectsUI.largeToggle.positionOffset_Y = 160;
            EditorLevelObjectsUI.largeToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.largeToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.largeToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.largeToggle.addLabel(local.format("LargeLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.largeToggle.state = true;
            SleekToggle sleekToggle = EditorLevelObjectsUI.largeToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache3 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache3 = new Toggled(EditorLevelObjectsUI.onToggledLargeToggle);
            }
            sleekToggle.onToggled = EditorLevelObjectsUI.< > f__mg$cache3;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.largeToggle);
            EditorLevelObjectsUI.mediumToggle = new SleekToggle();
            EditorLevelObjectsUI.mediumToggle.positionOffset_X = -230;
            EditorLevelObjectsUI.mediumToggle.positionOffset_Y = 210;
            EditorLevelObjectsUI.mediumToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.mediumToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.mediumToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.mediumToggle.addLabel(local.format("MediumLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.mediumToggle.state = true;
            SleekToggle sleekToggle2 = EditorLevelObjectsUI.mediumToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache4 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache4 = new Toggled(EditorLevelObjectsUI.onToggledMediumToggle);
            }
            sleekToggle2.onToggled = EditorLevelObjectsUI.< > f__mg$cache4;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.mediumToggle);
            EditorLevelObjectsUI.smallToggle = new SleekToggle();
            EditorLevelObjectsUI.smallToggle.positionOffset_X = -230;
            EditorLevelObjectsUI.smallToggle.positionOffset_Y = 260;
            EditorLevelObjectsUI.smallToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.smallToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.smallToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.smallToggle.addLabel(local.format("SmallLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.smallToggle.state = true;
            SleekToggle sleekToggle3 = EditorLevelObjectsUI.smallToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache5 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache5 = new Toggled(EditorLevelObjectsUI.onToggledSmallToggle);
            }
            sleekToggle3.onToggled = EditorLevelObjectsUI.< > f__mg$cache5;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.smallToggle);
            EditorLevelObjectsUI.barricadesToggle = new SleekToggle();
            EditorLevelObjectsUI.barricadesToggle.positionOffset_X = -130;
            EditorLevelObjectsUI.barricadesToggle.positionOffset_Y = 160;
            EditorLevelObjectsUI.barricadesToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.barricadesToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.barricadesToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.barricadesToggle.addLabel(local.format("BarricadesLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.barricadesToggle.state = true;
            SleekToggle sleekToggle4 = EditorLevelObjectsUI.barricadesToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache6 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache6 = new Toggled(EditorLevelObjectsUI.onToggledBarricadesToggle);
            }
            sleekToggle4.onToggled = EditorLevelObjectsUI.< > f__mg$cache6;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.barricadesToggle);
            EditorLevelObjectsUI.structuresToggle = new SleekToggle();
            EditorLevelObjectsUI.structuresToggle.positionOffset_X = -130;
            EditorLevelObjectsUI.structuresToggle.positionOffset_Y = 210;
            EditorLevelObjectsUI.structuresToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.structuresToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.structuresToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.structuresToggle.addLabel(local.format("StructuresLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.structuresToggle.state = true;
            SleekToggle sleekToggle5 = EditorLevelObjectsUI.structuresToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache7 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache7 = new Toggled(EditorLevelObjectsUI.onToggledStructuresToggle);
            }
            sleekToggle5.onToggled = EditorLevelObjectsUI.< > f__mg$cache7;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.structuresToggle);
            EditorLevelObjectsUI.npcsToggle = new SleekToggle();
            EditorLevelObjectsUI.npcsToggle.positionOffset_X = -130;
            EditorLevelObjectsUI.npcsToggle.positionOffset_Y = 260;
            EditorLevelObjectsUI.npcsToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.npcsToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.npcsToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.npcsToggle.addLabel(local.format("NPCsLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.npcsToggle.state = true;
            SleekToggle sleekToggle6 = EditorLevelObjectsUI.npcsToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache8 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache8 = new Toggled(EditorLevelObjectsUI.onToggledNPCsToggle);
            }
            sleekToggle6.onToggled = EditorLevelObjectsUI.< > f__mg$cache8;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.npcsToggle);
            EditorLevelObjectsUI.assetsScrollBox = new SleekScrollBox();
            EditorLevelObjectsUI.assetsScrollBox.positionOffset_X = -230;
            EditorLevelObjectsUI.assetsScrollBox.positionOffset_Y = 310;
            EditorLevelObjectsUI.assetsScrollBox.positionScale_X  = 1f;
            EditorLevelObjectsUI.assetsScrollBox.sizeOffset_X     = 230;
            EditorLevelObjectsUI.assetsScrollBox.sizeOffset_Y     = -310;
            EditorLevelObjectsUI.assetsScrollBox.sizeScale_Y      = 1f;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.assetsScrollBox);
            EditorObjects.selectedObjectAsset = null;
            EditorObjects.selectedItemAsset   = null;
            if (EditorLevelObjectsUI.< > f__mg$cache9 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache9 = new DragStarted(EditorLevelObjectsUI.onDragStarted);
            }
            EditorObjects.onDragStarted = EditorLevelObjectsUI.< > f__mg$cache9;
            if (EditorLevelObjectsUI.< > f__mg$cacheA == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheA = new DragStopped(EditorLevelObjectsUI.onDragStopped);
            }
            EditorObjects.onDragStopped  = EditorLevelObjectsUI.< > f__mg$cacheA;
            EditorLevelObjectsUI.dragBox = new SleekBox();
            EditorUI.window.add(EditorLevelObjectsUI.dragBox);
            EditorLevelObjectsUI.dragBox.isVisible  = false;
            EditorLevelObjectsUI.snapTransformField = new SleekSingleField();
            EditorLevelObjectsUI.snapTransformField.positionOffset_Y = -230;
            EditorLevelObjectsUI.snapTransformField.positionScale_Y  = 1f;
            EditorLevelObjectsUI.snapTransformField.sizeOffset_X     = 200;
            EditorLevelObjectsUI.snapTransformField.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.snapTransformField.text             = (Mathf.Floor(EditorObjects.snapTransform * 100f) / 100f).ToString();
            EditorLevelObjectsUI.snapTransformField.addLabel(local.format("SnapTransformLabelText"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField = EditorLevelObjectsUI.snapTransformField;

            if (EditorLevelObjectsUI.< > f__mg$cacheB == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheB = new TypedSingle(EditorLevelObjectsUI.onTypedSnapTransformField);
            }
            sleekSingleField.onTypedSingle = EditorLevelObjectsUI.< > f__mg$cacheB;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.snapTransformField);
            EditorLevelObjectsUI.snapRotationField = new SleekSingleField();
            EditorLevelObjectsUI.snapRotationField.positionOffset_Y = -190;
            EditorLevelObjectsUI.snapRotationField.positionScale_Y  = 1f;
            EditorLevelObjectsUI.snapRotationField.sizeOffset_X     = 200;
            EditorLevelObjectsUI.snapRotationField.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.snapRotationField.text             = (Mathf.Floor(EditorObjects.snapRotation * 100f) / 100f).ToString();
            EditorLevelObjectsUI.snapRotationField.addLabel(local.format("SnapRotationLabelText"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField2 = EditorLevelObjectsUI.snapRotationField;

            if (EditorLevelObjectsUI.< > f__mg$cacheC == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheC = new TypedSingle(EditorLevelObjectsUI.onTypedSnapRotationField);
            }
            sleekSingleField2.onTypedSingle = EditorLevelObjectsUI.< > f__mg$cacheC;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.snapRotationField);
            EditorLevelObjectsUI.transformButton = new SleekButtonIcon((Texture2D)bundle.load("Transform"));
            EditorLevelObjectsUI.transformButton.positionOffset_Y = -150;
            EditorLevelObjectsUI.transformButton.positionScale_Y  = 1f;
            EditorLevelObjectsUI.transformButton.sizeOffset_X     = 200;
            EditorLevelObjectsUI.transformButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.transformButton.text             = local.format("TransformButtonText", new object[]
            {
                ControlsSettings.tool_0
            });
            EditorLevelObjectsUI.transformButton.tooltip = local.format("TransformButtonTooltip");
            SleekButton sleekButton2 = EditorLevelObjectsUI.transformButton;

            if (EditorLevelObjectsUI.< > f__mg$cacheD == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheD = new ClickedButton(EditorLevelObjectsUI.onClickedTransformButton);
            }
            sleekButton2.onClickedButton = EditorLevelObjectsUI.< > f__mg$cacheD;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.transformButton);
            EditorLevelObjectsUI.rotateButton = new SleekButtonIcon((Texture2D)bundle.load("Rotate"));
            EditorLevelObjectsUI.rotateButton.positionOffset_Y = -110;
            EditorLevelObjectsUI.rotateButton.positionScale_Y  = 1f;
            EditorLevelObjectsUI.rotateButton.sizeOffset_X     = 200;
            EditorLevelObjectsUI.rotateButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.rotateButton.text             = local.format("RotateButtonText", new object[]
            {
                ControlsSettings.tool_1
            });
            EditorLevelObjectsUI.rotateButton.tooltip = local.format("RotateButtonTooltip");
            SleekButton sleekButton3 = EditorLevelObjectsUI.rotateButton;

            if (EditorLevelObjectsUI.< > f__mg$cacheE == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheE = new ClickedButton(EditorLevelObjectsUI.onClickedRotateButton);
            }
            sleekButton3.onClickedButton = EditorLevelObjectsUI.< > f__mg$cacheE;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.rotateButton);
            EditorLevelObjectsUI.scaleButton = new SleekButtonIcon((Texture2D)bundle.load("Scale"));
            EditorLevelObjectsUI.scaleButton.positionOffset_Y = -70;
            EditorLevelObjectsUI.scaleButton.positionScale_Y  = 1f;
            EditorLevelObjectsUI.scaleButton.sizeOffset_X     = 200;
            EditorLevelObjectsUI.scaleButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.scaleButton.text             = local.format("ScaleButtonText", new object[]
            {
                ControlsSettings.tool_3
            });
            EditorLevelObjectsUI.scaleButton.tooltip = local.format("ScaleButtonTooltip");
            SleekButton sleekButton4 = EditorLevelObjectsUI.scaleButton;

            if (EditorLevelObjectsUI.< > f__mg$cacheF == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheF = new ClickedButton(EditorLevelObjectsUI.onClickedScaleButton);
            }
            sleekButton4.onClickedButton = EditorLevelObjectsUI.< > f__mg$cacheF;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.scaleButton);
            EditorLevelObjectsUI.coordinateButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(local.format("CoordinateButtonTextGlobal"), (Texture)bundle.load("Global")),
                new GUIContent(local.format("CoordinateButtonTextLocal"), (Texture)bundle.load("Local"))
            });
            EditorLevelObjectsUI.coordinateButton.positionOffset_Y = -30;
            EditorLevelObjectsUI.coordinateButton.positionScale_Y  = 1f;
            EditorLevelObjectsUI.coordinateButton.sizeOffset_X     = 200;
            EditorLevelObjectsUI.coordinateButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.coordinateButton.tooltip          = local.format("CoordinateButtonTooltip");
            SleekButtonState sleekButtonState = EditorLevelObjectsUI.coordinateButton;

            if (EditorLevelObjectsUI.< > f__mg$cache10 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache10 = new SwappedState(EditorLevelObjectsUI.onSwappedStateCoordinate);
            }
            sleekButtonState.onSwappedState = EditorLevelObjectsUI.< > f__mg$cache10;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.coordinateButton);
            bundle.unload();
            EditorLevelObjectsUI.onAssetsRefreshed();
            if (EditorLevelObjectsUI.< > f__mg$cache11 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache11 = new AssetsRefreshed(EditorLevelObjectsUI.onAssetsRefreshed);
            }
            Assets.onAssetsRefreshed = EditorLevelObjectsUI.< > f__mg$cache11;
        }
        // Token: 0x0600349F RID: 13471 RVA: 0x00159C74 File Offset: 0x00158074
        public EditorEnvironmentLightingUI()
        {
            Local local = Localization.read("/Editor/EditorEnvironmentLighting.dat");

            EditorEnvironmentLightingUI.container = new Sleek();
            EditorEnvironmentLightingUI.container.positionOffset_X = 10;
            EditorEnvironmentLightingUI.container.positionOffset_Y = 10;
            EditorEnvironmentLightingUI.container.positionScale_X  = 1f;
            EditorEnvironmentLightingUI.container.sizeOffset_X     = -20;
            EditorEnvironmentLightingUI.container.sizeOffset_Y     = -20;
            EditorEnvironmentLightingUI.container.sizeScale_X      = 1f;
            EditorEnvironmentLightingUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorEnvironmentLightingUI.container);
            EditorEnvironmentLightingUI.active        = false;
            EditorEnvironmentLightingUI.selectedTime  = ELightingTime.DAWN;
            EditorEnvironmentLightingUI.azimuthSlider = new SleekSlider();
            EditorEnvironmentLightingUI.azimuthSlider.positionOffset_X = -230;
            EditorEnvironmentLightingUI.azimuthSlider.positionOffset_Y = 80;
            EditorEnvironmentLightingUI.azimuthSlider.positionScale_X  = 1f;
            EditorEnvironmentLightingUI.azimuthSlider.sizeOffset_X     = 230;
            EditorEnvironmentLightingUI.azimuthSlider.sizeOffset_Y     = 20;
            EditorEnvironmentLightingUI.azimuthSlider.state            = LevelLighting.azimuth / 360f;
            EditorEnvironmentLightingUI.azimuthSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorEnvironmentLightingUI.azimuthSlider.addLabel(local.format("AzimuthSliderLabelText"), ESleekSide.LEFT);
            SleekSlider sleekSlider = EditorEnvironmentLightingUI.azimuthSlider;

            if (EditorEnvironmentLightingUI.< > f__mg$cache0 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache0 = new Dragged(EditorEnvironmentLightingUI.onDraggedAzimuthSlider);
            }
            sleekSlider.onDragged = EditorEnvironmentLightingUI.< > f__mg$cache0;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.azimuthSlider);
            EditorEnvironmentLightingUI.biasSlider = new SleekSlider();
            EditorEnvironmentLightingUI.biasSlider.positionOffset_X = -230;
            EditorEnvironmentLightingUI.biasSlider.positionOffset_Y = 110;
            EditorEnvironmentLightingUI.biasSlider.positionScale_X  = 1f;
            EditorEnvironmentLightingUI.biasSlider.sizeOffset_X     = 230;
            EditorEnvironmentLightingUI.biasSlider.sizeOffset_Y     = 20;
            EditorEnvironmentLightingUI.biasSlider.state            = LevelLighting.bias;
            EditorEnvironmentLightingUI.biasSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorEnvironmentLightingUI.biasSlider.addLabel(local.format("BiasSliderLabelText"), ESleekSide.LEFT);
            SleekSlider sleekSlider2 = EditorEnvironmentLightingUI.biasSlider;

            if (EditorEnvironmentLightingUI.< > f__mg$cache1 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache1 = new Dragged(EditorEnvironmentLightingUI.onDraggedBiasSlider);
            }
            sleekSlider2.onDragged = EditorEnvironmentLightingUI.< > f__mg$cache1;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.biasSlider);
            EditorEnvironmentLightingUI.fadeSlider = new SleekSlider();
            EditorEnvironmentLightingUI.fadeSlider.positionOffset_X = -230;
            EditorEnvironmentLightingUI.fadeSlider.positionOffset_Y = 140;
            EditorEnvironmentLightingUI.fadeSlider.positionScale_X  = 1f;
            EditorEnvironmentLightingUI.fadeSlider.sizeOffset_X     = 230;
            EditorEnvironmentLightingUI.fadeSlider.sizeOffset_Y     = 20;
            EditorEnvironmentLightingUI.fadeSlider.state            = LevelLighting.fade;
            EditorEnvironmentLightingUI.fadeSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorEnvironmentLightingUI.fadeSlider.addLabel(local.format("FadeSliderLabelText"), ESleekSide.LEFT);
            SleekSlider sleekSlider3 = EditorEnvironmentLightingUI.fadeSlider;

            if (EditorEnvironmentLightingUI.< > f__mg$cache2 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache2 = new Dragged(EditorEnvironmentLightingUI.onDraggedFadeSlider);
            }
            sleekSlider3.onDragged = EditorEnvironmentLightingUI.< > f__mg$cache2;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.fadeSlider);
            EditorEnvironmentLightingUI.lightingScrollBox = new SleekScrollBox();
            EditorEnvironmentLightingUI.lightingScrollBox.positionOffset_X = -470;
            EditorEnvironmentLightingUI.lightingScrollBox.positionOffset_Y = 170;
            EditorEnvironmentLightingUI.lightingScrollBox.positionScale_X  = 1f;
            EditorEnvironmentLightingUI.lightingScrollBox.sizeOffset_X     = 470;
            EditorEnvironmentLightingUI.lightingScrollBox.sizeOffset_Y     = -170;
            EditorEnvironmentLightingUI.lightingScrollBox.sizeScale_Y      = 1f;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.lightingScrollBox);
            EditorEnvironmentLightingUI.seaLevelSlider = new SleekValue();
            EditorEnvironmentLightingUI.seaLevelSlider.positionOffset_Y = -130;
            EditorEnvironmentLightingUI.seaLevelSlider.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.seaLevelSlider.sizeOffset_X     = 200;
            EditorEnvironmentLightingUI.seaLevelSlider.sizeOffset_Y     = 30;
            EditorEnvironmentLightingUI.seaLevelSlider.state            = LevelLighting.seaLevel;
            EditorEnvironmentLightingUI.seaLevelSlider.addLabel(local.format("Sea_Level_Slider_Label"), ESleekSide.RIGHT);
            SleekValue sleekValue = EditorEnvironmentLightingUI.seaLevelSlider;

            if (EditorEnvironmentLightingUI.< > f__mg$cache3 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache3 = new Valued(EditorEnvironmentLightingUI.onValuedSeaLevelSlider);
            }
            sleekValue.onValued = EditorEnvironmentLightingUI.< > f__mg$cache3;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.seaLevelSlider);
            EditorEnvironmentLightingUI.snowLevelSlider = new SleekValue();
            EditorEnvironmentLightingUI.snowLevelSlider.positionOffset_Y = -90;
            EditorEnvironmentLightingUI.snowLevelSlider.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.snowLevelSlider.sizeOffset_X     = 200;
            EditorEnvironmentLightingUI.snowLevelSlider.sizeOffset_Y     = 30;
            EditorEnvironmentLightingUI.snowLevelSlider.state            = LevelLighting.snowLevel;
            EditorEnvironmentLightingUI.snowLevelSlider.addLabel(local.format("Snow_Level_Slider_Label"), ESleekSide.RIGHT);
            SleekValue sleekValue2 = EditorEnvironmentLightingUI.snowLevelSlider;

            if (EditorEnvironmentLightingUI.< > f__mg$cache4 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache4 = new Valued(EditorEnvironmentLightingUI.onValuedSnowLevelSlider);
            }
            sleekValue2.onValued = EditorEnvironmentLightingUI.< > f__mg$cache4;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.snowLevelSlider);
            EditorEnvironmentLightingUI.rainFreqField = new SleekSingleField();
            EditorEnvironmentLightingUI.rainFreqField.positionOffset_Y = -370;
            EditorEnvironmentLightingUI.rainFreqField.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.rainFreqField.sizeOffset_X     = 100;
            EditorEnvironmentLightingUI.rainFreqField.sizeOffset_Y     = 30;
            EditorEnvironmentLightingUI.rainFreqField.state            = LevelLighting.rainFreq;
            EditorEnvironmentLightingUI.rainFreqField.addLabel(local.format("Rain_Freq_Label"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField = EditorEnvironmentLightingUI.rainFreqField;

            if (EditorEnvironmentLightingUI.< > f__mg$cache5 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache5 = new TypedSingle(EditorEnvironmentLightingUI.onTypedRainFreqField);
            }
            sleekSingleField.onTypedSingle = EditorEnvironmentLightingUI.< > f__mg$cache5;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.rainFreqField);
            EditorEnvironmentLightingUI.rainDurField = new SleekSingleField();
            EditorEnvironmentLightingUI.rainDurField.positionOffset_Y = -330;
            EditorEnvironmentLightingUI.rainDurField.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.rainDurField.sizeOffset_X     = 100;
            EditorEnvironmentLightingUI.rainDurField.sizeOffset_Y     = 30;
            EditorEnvironmentLightingUI.rainDurField.state            = LevelLighting.rainDur;
            EditorEnvironmentLightingUI.rainDurField.addLabel(local.format("Rain_Dur_Label"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField2 = EditorEnvironmentLightingUI.rainDurField;

            if (EditorEnvironmentLightingUI.< > f__mg$cache6 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache6 = new TypedSingle(EditorEnvironmentLightingUI.onTypedRainDurField);
            }
            sleekSingleField2.onTypedSingle = EditorEnvironmentLightingUI.< > f__mg$cache6;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.rainDurField);
            EditorEnvironmentLightingUI.snowFreqField = new SleekSingleField();
            EditorEnvironmentLightingUI.snowFreqField.positionOffset_Y = -290;
            EditorEnvironmentLightingUI.snowFreqField.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.snowFreqField.sizeOffset_X     = 100;
            EditorEnvironmentLightingUI.snowFreqField.sizeOffset_Y     = 30;
            EditorEnvironmentLightingUI.snowFreqField.state            = LevelLighting.snowFreq;
            EditorEnvironmentLightingUI.snowFreqField.addLabel(local.format("Snow_Freq_Label"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField3 = EditorEnvironmentLightingUI.snowFreqField;

            if (EditorEnvironmentLightingUI.< > f__mg$cache7 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache7 = new TypedSingle(EditorEnvironmentLightingUI.onTypedSnowFreqField);
            }
            sleekSingleField3.onTypedSingle = EditorEnvironmentLightingUI.< > f__mg$cache7;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.snowFreqField);
            EditorEnvironmentLightingUI.snowDurField = new SleekSingleField();
            EditorEnvironmentLightingUI.snowDurField.positionOffset_Y = -250;
            EditorEnvironmentLightingUI.snowDurField.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.snowDurField.sizeOffset_X     = 100;
            EditorEnvironmentLightingUI.snowDurField.sizeOffset_Y     = 30;
            EditorEnvironmentLightingUI.snowDurField.state            = LevelLighting.snowDur;
            EditorEnvironmentLightingUI.snowDurField.addLabel(local.format("Snow_Dur_Label"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField4 = EditorEnvironmentLightingUI.snowDurField;

            if (EditorEnvironmentLightingUI.< > f__mg$cache8 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache8 = new TypedSingle(EditorEnvironmentLightingUI.onTypedSnowDurField);
            }
            sleekSingleField4.onTypedSingle = EditorEnvironmentLightingUI.< > f__mg$cache8;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.snowDurField);
            EditorEnvironmentLightingUI.stormButton = new SleekButton();
            EditorEnvironmentLightingUI.stormButton.positionOffset_Y = -210;
            EditorEnvironmentLightingUI.stormButton.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.stormButton.sizeOffset_X     = 100;
            EditorEnvironmentLightingUI.stormButton.sizeOffset_Y     = 30;
            EditorEnvironmentLightingUI.stormButton.text             = local.format("Storm");
            EditorEnvironmentLightingUI.stormButton.tooltip          = local.format("Storm_Tooltip");
            SleekButton sleekButton = EditorEnvironmentLightingUI.stormButton;

            if (EditorEnvironmentLightingUI.< > f__mg$cache9 == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cache9 = new ClickedButton(EditorEnvironmentLightingUI.onClickedStormButton);
            }
            sleekButton.onClickedButton = EditorEnvironmentLightingUI.< > f__mg$cache9;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.stormButton);
            EditorEnvironmentLightingUI.rainToggle = new SleekToggle();
            EditorEnvironmentLightingUI.rainToggle.positionOffset_X = 110;
            EditorEnvironmentLightingUI.rainToggle.positionOffset_Y = -215;
            EditorEnvironmentLightingUI.rainToggle.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.rainToggle.sizeOffset_X     = 40;
            EditorEnvironmentLightingUI.rainToggle.sizeOffset_Y     = 40;
            EditorEnvironmentLightingUI.rainToggle.state            = LevelLighting.canRain;
            EditorEnvironmentLightingUI.rainToggle.addLabel(local.format("Rain_Toggle_Label"), ESleekSide.RIGHT);
            SleekToggle sleekToggle = EditorEnvironmentLightingUI.rainToggle;

            if (EditorEnvironmentLightingUI.< > f__mg$cacheA == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cacheA = new Toggled(EditorEnvironmentLightingUI.onToggledRainToggle);
            }
            sleekToggle.onToggled = EditorEnvironmentLightingUI.< > f__mg$cacheA;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.rainToggle);
            EditorEnvironmentLightingUI.blizzardButton = new SleekButton();
            EditorEnvironmentLightingUI.blizzardButton.positionOffset_Y = -170;
            EditorEnvironmentLightingUI.blizzardButton.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.blizzardButton.sizeOffset_X     = 100;
            EditorEnvironmentLightingUI.blizzardButton.sizeOffset_Y     = 30;
            EditorEnvironmentLightingUI.blizzardButton.text             = local.format("Blizzard");
            EditorEnvironmentLightingUI.blizzardButton.tooltip          = local.format("Blizzard_Tooltip");
            SleekButton sleekButton2 = EditorEnvironmentLightingUI.blizzardButton;

            if (EditorEnvironmentLightingUI.< > f__mg$cacheB == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cacheB = new ClickedButton(EditorEnvironmentLightingUI.onClickedBlizzardButton);
            }
            sleekButton2.onClickedButton = EditorEnvironmentLightingUI.< > f__mg$cacheB;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.blizzardButton);
            EditorEnvironmentLightingUI.snowToggle = new SleekToggle();
            EditorEnvironmentLightingUI.snowToggle.positionOffset_X = 110;
            EditorEnvironmentLightingUI.snowToggle.positionOffset_Y = -175;
            EditorEnvironmentLightingUI.snowToggle.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.snowToggle.sizeOffset_X     = 40;
            EditorEnvironmentLightingUI.snowToggle.sizeOffset_Y     = 40;
            EditorEnvironmentLightingUI.snowToggle.state            = LevelLighting.canSnow;
            EditorEnvironmentLightingUI.snowToggle.addLabel(local.format("Snow_Toggle_Label"), ESleekSide.RIGHT);
            SleekToggle sleekToggle2 = EditorEnvironmentLightingUI.snowToggle;

            if (EditorEnvironmentLightingUI.< > f__mg$cacheC == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cacheC = new Toggled(EditorEnvironmentLightingUI.onToggledSnowToggle);
            }
            sleekToggle2.onToggled = EditorEnvironmentLightingUI.< > f__mg$cacheC;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.snowToggle);
            EditorEnvironmentLightingUI.moonSlider = new SleekSlider();
            EditorEnvironmentLightingUI.moonSlider.positionOffset_Y = -50;
            EditorEnvironmentLightingUI.moonSlider.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.moonSlider.sizeOffset_X     = 200;
            EditorEnvironmentLightingUI.moonSlider.sizeOffset_Y     = 20;
            EditorEnvironmentLightingUI.moonSlider.state            = (float)LevelLighting.moon / (float)LevelLighting.MOON_CYCLES;
            EditorEnvironmentLightingUI.moonSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorEnvironmentLightingUI.moonSlider.addLabel(local.format("MoonSliderLabelText"), ESleekSide.RIGHT);
            SleekSlider sleekSlider4 = EditorEnvironmentLightingUI.moonSlider;

            if (EditorEnvironmentLightingUI.< > f__mg$cacheD == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cacheD = new Dragged(EditorEnvironmentLightingUI.onDraggedMoonSlider);
            }
            sleekSlider4.onDragged = EditorEnvironmentLightingUI.< > f__mg$cacheD;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.moonSlider);
            EditorEnvironmentLightingUI.timeSlider = new SleekSlider();
            EditorEnvironmentLightingUI.timeSlider.positionOffset_Y = -20;
            EditorEnvironmentLightingUI.timeSlider.positionScale_Y  = 1f;
            EditorEnvironmentLightingUI.timeSlider.sizeOffset_X     = 200;
            EditorEnvironmentLightingUI.timeSlider.sizeOffset_Y     = 20;
            EditorEnvironmentLightingUI.timeSlider.state            = LevelLighting.time;
            EditorEnvironmentLightingUI.timeSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorEnvironmentLightingUI.timeSlider.addLabel(local.format("TimeSliderLabelText"), ESleekSide.RIGHT);
            SleekSlider sleekSlider5 = EditorEnvironmentLightingUI.timeSlider;

            if (EditorEnvironmentLightingUI.< > f__mg$cacheE == null)
            {
                EditorEnvironmentLightingUI.< > f__mg$cacheE = new Dragged(EditorEnvironmentLightingUI.onDraggedTimeSlider);
            }
            sleekSlider5.onDragged = EditorEnvironmentLightingUI.< > f__mg$cacheE;
            EditorEnvironmentLightingUI.container.add(EditorEnvironmentLightingUI.timeSlider);
            EditorEnvironmentLightingUI.timeButtons = new SleekButton[4];
            for (int i = 0; i < EditorEnvironmentLightingUI.timeButtons.Length; i++)
            {
                SleekButton sleekButton3 = new SleekButton();
                sleekButton3.positionOffset_X = 240;
                sleekButton3.positionOffset_Y = i * 40;
                sleekButton3.sizeOffset_X     = 200;
                sleekButton3.sizeOffset_Y     = 30;
                sleekButton3.text             = local.format("Time_" + i);
                SleekButton sleekButton4    = sleekButton3;
                Delegate    onClickedButton = sleekButton4.onClickedButton;
                if (EditorEnvironmentLightingUI.< > f__mg$cacheF == null)
                {
                    EditorEnvironmentLightingUI.< > f__mg$cacheF = new ClickedButton(EditorEnvironmentLightingUI.onClickedTimeButton);
                }
                sleekButton4.onClickedButton = (ClickedButton)Delegate.Combine(onClickedButton, EditorEnvironmentLightingUI.< > f__mg$cacheF);
                EditorEnvironmentLightingUI.lightingScrollBox.add(sleekButton3);
                EditorEnvironmentLightingUI.timeButtons[i] = sleekButton3;
            }
            EditorEnvironmentLightingUI.infoBoxes     = new SleekBox[12];
            EditorEnvironmentLightingUI.colorPickers  = new SleekColorPicker[EditorEnvironmentLightingUI.infoBoxes.Length];
            EditorEnvironmentLightingUI.singleSliders = new SleekSlider[5];
            for (int j = 0; j < EditorEnvironmentLightingUI.colorPickers.Length; j++)
            {
                SleekBox sleekBox = new SleekBox();
                sleekBox.positionOffset_X = 240;
                sleekBox.positionOffset_Y = EditorEnvironmentLightingUI.timeButtons.Length * 40 + j * 170;
                sleekBox.sizeOffset_X     = 200;
                sleekBox.sizeOffset_Y     = 30;
                sleekBox.text             = local.format("Color_" + j);
                EditorEnvironmentLightingUI.lightingScrollBox.add(sleekBox);
                EditorEnvironmentLightingUI.infoBoxes[j] = sleekBox;
                SleekColorPicker sleekColorPicker = new SleekColorPicker();
                sleekColorPicker.positionOffset_X = 200;
                sleekColorPicker.positionOffset_Y = EditorEnvironmentLightingUI.timeButtons.Length * 40 + j * 170 + 40;
                SleekColorPicker sleekColorPicker2 = sleekColorPicker;
                Delegate         onColorPicked     = sleekColorPicker2.onColorPicked;
                if (EditorEnvironmentLightingUI.< > f__mg$cache10 == null)
                {
                    EditorEnvironmentLightingUI.< > f__mg$cache10 = new ColorPicked(EditorEnvironmentLightingUI.onPickedColorPicker);
                }
                sleekColorPicker2.onColorPicked = (ColorPicked)Delegate.Combine(onColorPicked, EditorEnvironmentLightingUI.< > f__mg$cache10);
                EditorEnvironmentLightingUI.lightingScrollBox.add(sleekColorPicker);
                EditorEnvironmentLightingUI.colorPickers[j] = sleekColorPicker;
            }
            for (int k = 0; k < EditorEnvironmentLightingUI.singleSliders.Length; k++)
            {
                SleekSlider sleekSlider6 = new SleekSlider();
                sleekSlider6.positionOffset_X = 240;
                sleekSlider6.positionOffset_Y = EditorEnvironmentLightingUI.timeButtons.Length * 40 + EditorEnvironmentLightingUI.colorPickers.Length * 170 + k * 30;
                sleekSlider6.sizeOffset_X     = 200;
                sleekSlider6.sizeOffset_Y     = 20;
                sleekSlider6.orientation      = ESleekOrientation.HORIZONTAL;
                sleekSlider6.addLabel(local.format("Single_" + k), ESleekSide.LEFT);
                SleekSlider sleekSlider7 = sleekSlider6;
                Delegate    onDragged    = sleekSlider7.onDragged;
                if (EditorEnvironmentLightingUI.< > f__mg$cache11 == null)
                {
                    EditorEnvironmentLightingUI.< > f__mg$cache11 = new Dragged(EditorEnvironmentLightingUI.onDraggedSingleSlider);
                }
                sleekSlider7.onDragged = (Dragged)Delegate.Combine(onDragged, EditorEnvironmentLightingUI.< > f__mg$cache11);
                EditorEnvironmentLightingUI.lightingScrollBox.add(sleekSlider6);
                EditorEnvironmentLightingUI.singleSliders[k] = sleekSlider6;
            }
            EditorEnvironmentLightingUI.lightingScrollBox.area = new Rect(0f, 0f, 5f, (float)(EditorEnvironmentLightingUI.timeButtons.Length * 40 + EditorEnvironmentLightingUI.colorPickers.Length * 170 + EditorEnvironmentLightingUI.singleSliders.Length * 30 - 10));
            EditorEnvironmentLightingUI.updateSelection();
        }