Example #1
0
 public static void closeAll()
 {
     MenuPauseUI.close();
     MenuCreditsUI.close();
     MenuTitleUI.close();
     MenuDashboardUI.close();
     MenuPlayUI.close();
     MenuPlaySingleplayerUI.close();
     MenuPlayMatchmakingUI.close();
     MenuPlayLobbiesUI.close();
     MenuPlayConnectUI.close();
     MenuPlayServersUI.close();
     MenuPlayServerInfoUI.close();
     MenuPlayConfigUI.close();
     MenuSurvivorsUI.close();
     MenuSurvivorsCharacterUI.close();
     MenuSurvivorsAppearanceUI.close();
     MenuSurvivorsClothingUI.close();
     MenuSurvivorsGroupUI.close();
     MenuSurvivorsClothingBoxUI.close();
     MenuSurvivorsClothingDeleteUI.close();
     MenuSurvivorsClothingInspectUI.close();
     MenuSurvivorsClothingItemUI.close();
     MenuConfigurationUI.close();
     MenuConfigurationOptionsUI.close();
     MenuConfigurationDisplayUI.close();
     MenuConfigurationGraphicsUI.close();
     MenuConfigurationControlsUI.close();
     MenuWorkshopUI.close();
     MenuWorkshopEditorUI.close();
     MenuWorkshopSubmitUI.close();
 }
 private static void onClickedCreateButton(SleekButton button)
 {
     if (MenuWorkshopSubmitUI.checkEntered() && MenuWorkshopSubmitUI.checkValid())
     {
         Provider.provider.workshopService.prepareUGC(MenuWorkshopSubmitUI.nameField.text, MenuWorkshopSubmitUI.descriptionField.text, MenuWorkshopSubmitUI.pathField.text, MenuWorkshopSubmitUI.previewField.text, MenuWorkshopSubmitUI.changeField.text, (ESteamUGCType)MenuWorkshopSubmitUI.typeState.state, MenuWorkshopSubmitUI.tag, (ESteamUGCVisibility)MenuWorkshopSubmitUI.visibilityState.state);
         Provider.provider.workshopService.createUGC(MenuWorkshopSubmitUI.forState.state == 1);
         MenuWorkshopSubmitUI.resetFields();
     }
 }
        private static void onClickedPublished(SleekButton button)
        {
            int index = button.positionOffset_Y / 40;

            if (MenuWorkshopSubmitUI.checkValid())
            {
                Provider.provider.workshopService.prepareUGC(MenuWorkshopSubmitUI.nameField.text, MenuWorkshopSubmitUI.descriptionField.text, MenuWorkshopSubmitUI.pathField.text, MenuWorkshopSubmitUI.previewField.text, MenuWorkshopSubmitUI.changeField.text, (ESteamUGCType)MenuWorkshopSubmitUI.typeState.state, MenuWorkshopSubmitUI.tag, (ESteamUGCVisibility)MenuWorkshopSubmitUI.visibilityState.state);
                Provider.provider.workshopService.prepareUGC(Provider.provider.workshopService.published[index].id);
                Provider.provider.workshopService.updateUGC();
                MenuWorkshopSubmitUI.resetFields();
            }
        }
Example #4
0
 private static void onClickedSubmitButton(SleekButton button)
 {
     MenuWorkshopSubmitUI.open();
     MenuWorkshopUI.close();
 }
Example #5
0
 private void Update()
 {
     if (MenuUI.window == null)
     {
         return;
     }
     MenuConfigurationControlsUI.bindUpdate();
     if (MenuConfigurationControlsUI.binding == 255)
     {
         if (Input.GetKeyDown(27))
         {
             if (Provider.provider.matchmakingService.isAttemptingServerQuery)
             {
                 Provider.provider.matchmakingService.cancel();
             }
             else if (MenuUI.isAlerting)
             {
                 MenuUI.closeAlert();
                 MenuUI.isAlerting = false;
             }
             else if (MenuPauseUI.active)
             {
                 MenuPauseUI.close();
                 MenuDashboardUI.open();
                 MenuTitleUI.open();
             }
             else if (MenuCreditsUI.active)
             {
                 MenuCreditsUI.close();
                 MenuPauseUI.open();
             }
             else if (MenuTitleUI.active)
             {
                 MenuPauseUI.open();
                 MenuDashboardUI.close();
                 MenuTitleUI.close();
             }
             else if (MenuPlayConfigUI.active)
             {
                 MenuPlayConfigUI.close();
                 MenuPlaySingleplayerUI.open();
             }
             else if (MenuPlayServerInfoUI.active)
             {
                 MenuPlayServerInfoUI.close();
                 MenuPlayServerInfoUI.EServerInfoOpenContext openContext = MenuPlayServerInfoUI.openContext;
                 if (openContext != MenuPlayServerInfoUI.EServerInfoOpenContext.CONNECT)
                 {
                     if (openContext != MenuPlayServerInfoUI.EServerInfoOpenContext.SERVERS)
                     {
                         if (openContext == MenuPlayServerInfoUI.EServerInfoOpenContext.MATCHMAKING)
                         {
                             MenuPlayMatchmakingUI.open();
                         }
                     }
                     else
                     {
                         MenuPlayServersUI.open();
                     }
                 }
                 else
                 {
                     MenuPlayConnectUI.open();
                 }
             }
             else if (MenuPlayConnectUI.active || MenuPlayServersUI.active || MenuPlaySingleplayerUI.active || MenuPlayMatchmakingUI.active || MenuPlayLobbiesUI.active)
             {
                 MenuPlayConnectUI.close();
                 MenuPlayServersUI.close();
                 MenuPlaySingleplayerUI.close();
                 MenuPlayMatchmakingUI.close();
                 MenuPlayLobbiesUI.close();
                 MenuPlayUI.open();
             }
             else if (MenuSurvivorsClothingItemUI.active)
             {
                 MenuSurvivorsClothingItemUI.close();
                 MenuSurvivorsClothingUI.open();
             }
             else if (MenuSurvivorsClothingBoxUI.active)
             {
                 if (!MenuSurvivorsClothingBoxUI.isUnboxing)
                 {
                     MenuSurvivorsClothingBoxUI.close();
                     MenuSurvivorsClothingItemUI.open();
                 }
             }
             else if (MenuSurvivorsClothingInspectUI.active || MenuSurvivorsClothingDeleteUI.active)
             {
                 MenuSurvivorsClothingInspectUI.close();
                 MenuSurvivorsClothingDeleteUI.close();
                 MenuSurvivorsClothingItemUI.open();
             }
             else if (MenuSurvivorsCharacterUI.active || MenuSurvivorsAppearanceUI.active || MenuSurvivorsGroupUI.active || MenuSurvivorsClothingUI.active)
             {
                 MenuSurvivorsCharacterUI.close();
                 MenuSurvivorsAppearanceUI.close();
                 MenuSurvivorsGroupUI.close();
                 MenuSurvivorsClothingUI.close();
                 MenuSurvivorsUI.open();
             }
             else if (MenuConfigurationOptionsUI.active || MenuConfigurationControlsUI.active || MenuConfigurationGraphicsUI.active || MenuConfigurationDisplayUI.active)
             {
                 MenuConfigurationOptionsUI.close();
                 MenuConfigurationControlsUI.close();
                 MenuConfigurationGraphicsUI.close();
                 MenuConfigurationDisplayUI.close();
                 MenuConfigurationUI.open();
             }
             else if (MenuWorkshopSubmitUI.active || MenuWorkshopEditorUI.active || MenuWorkshopErrorUI.active || MenuWorkshopLocalizationUI.active || MenuWorkshopSpawnsUI.active || MenuWorkshopModulesUI.active)
             {
                 MenuWorkshopSubmitUI.close();
                 MenuWorkshopEditorUI.close();
                 MenuWorkshopErrorUI.close();
                 MenuWorkshopLocalizationUI.close();
                 MenuWorkshopSpawnsUI.close();
                 MenuWorkshopModulesUI.close();
                 MenuWorkshopUI.open();
             }
             else
             {
                 MenuPlayUI.close();
                 MenuSurvivorsUI.close();
                 MenuConfigurationUI.close();
                 MenuWorkshopUI.close();
                 MenuDashboardUI.open();
                 MenuTitleUI.open();
             }
         }
         if (MenuUI.window != null)
         {
             if (Input.GetKeyDown(ControlsSettings.screenshot))
             {
                 Provider.takeScreenshot();
             }
             if (Input.GetKeyDown(ControlsSettings.hud))
             {
                 DevkitWindowManager.isActive          = false;
                 MenuUI.window.isEnabled               = !MenuUI.window.isEnabled;
                 MenuUI.window.drawCursorWhileDisabled = false;
             }
             if (Input.GetKeyDown(ControlsSettings.terminal))
             {
                 DevkitWindowManager.isActive          = !DevkitWindowManager.isActive;
                 MenuUI.window.isEnabled               = !DevkitWindowManager.isActive;
                 MenuUI.window.drawCursorWhileDisabled = DevkitWindowManager.isActive;
             }
         }
     }
     if (Input.GetKeyDown(ControlsSettings.refreshAssets))
     {
         Assets.refresh();
     }
     if (Input.GetKeyDown(ControlsSettings.clipboardDebug) && MenuSurvivorsAppearanceUI.active)
     {
         string text = string.Empty;
         text = text + "Face " + Characters.active.face;
         text = text + "\nHair " + Characters.active.hair;
         text = text + "\nBeard " + Characters.active.beard;
         text = text + "\nColor_Skin " + Palette.hex(Characters.active.skin);
         text = text + "\nColor_Hair " + Palette.hex(Characters.active.color);
         if (Characters.active.hand)
         {
             text += "\nBackward";
         }
         GUIUtility.systemCopyBuffer = text;
     }
     if (MenuUI.isAlerting && Time.realtimeSinceStartup - MenuUI.lastAlert > MenuUI.alertTime)
     {
         MenuUI.closeAlert();
         MenuUI.isAlerting = false;
     }
     MenuUI.window.showCursor = true;
     MenuUI.window.updateDebug();
     if (MenuPlayUI.active || MenuPlayConnectUI.active || MenuPlayServersUI.active || MenuPlayServerInfoUI.active || MenuPlaySingleplayerUI.active || MenuPlayMatchmakingUI.active || MenuPlayLobbiesUI.active || MenuPlayConfigUI.active)
     {
         this.target = this.play;
     }
     else if (MenuSurvivorsUI.active || MenuSurvivorsCharacterUI.active || MenuSurvivorsAppearanceUI.active || MenuSurvivorsGroupUI.active || MenuSurvivorsClothingUI.active || MenuSurvivorsClothingItemUI.active || MenuSurvivorsClothingInspectUI.active || MenuSurvivorsClothingDeleteUI.active || MenuSurvivorsClothingBoxUI.active)
     {
         this.target = this.survivors;
     }
     else if (MenuConfigurationUI.active || MenuConfigurationOptionsUI.active || MenuConfigurationControlsUI.active || MenuConfigurationGraphicsUI.active || MenuConfigurationDisplayUI.active)
     {
         this.target = this.configuration;
     }
     else if (MenuWorkshopUI.active || MenuWorkshopSubmitUI.active || MenuWorkshopEditorUI.active || MenuWorkshopErrorUI.active || MenuWorkshopLocalizationUI.active || MenuWorkshopSpawnsUI.active || MenuWorkshopModulesUI.active)
     {
         this.target = this.workshop;
     }
     else
     {
         this.target = this.title;
     }
     if (this.target == this.title)
     {
         if (MenuUI.hasTitled)
         {
             base.transform.position = Vector3.Lerp(base.transform.position, this.target.position, Time.deltaTime * 4f);
             base.transform.rotation = Quaternion.Lerp(base.transform.rotation, this.target.rotation, Time.deltaTime * 4f);
         }
         else
         {
             base.transform.position = Vector3.Lerp(base.transform.position, this.target.position, Time.deltaTime);
             base.transform.rotation = Quaternion.Lerp(base.transform.rotation, this.target.rotation, Time.deltaTime);
         }
     }
     else
     {
         MenuUI.hasTitled        = true;
         base.transform.position = Vector3.Lerp(base.transform.position, this.target.position, Time.deltaTime * 4f);
         base.transform.rotation = Quaternion.Lerp(base.transform.rotation, this.target.rotation, Time.deltaTime * 4f);
     }
 }
        public MenuWorkshopSubmitUI()
        {
            MenuWorkshopSubmitUI.localization = Localization.read("/Menu/Workshop/MenuWorkshopSubmit.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Menu/Icons/Workshop/MenuWorkshopSubmit/MenuWorkshopSubmit.unity3d");

            MenuWorkshopSubmitUI.publishedButtons = new List <SleekButton>();
            TempSteamworksWorkshop workshopService = Provider.provider.workshopService;
            Delegate onPublishedAdded = workshopService.onPublishedAdded;

            if (MenuWorkshopSubmitUI.< > f__mg$cache1 == null)
            {
                MenuWorkshopSubmitUI.< > f__mg$cache1 = new TempSteamworksWorkshop.PublishedAdded(MenuWorkshopSubmitUI.onPublishedAdded);
            }
            workshopService.onPublishedAdded = (TempSteamworksWorkshop.PublishedAdded)Delegate.Combine(onPublishedAdded, MenuWorkshopSubmitUI.< > f__mg$cache1);
            TempSteamworksWorkshop workshopService2 = Provider.provider.workshopService;
            Delegate onPublishedRemoved             = workshopService2.onPublishedRemoved;

            if (MenuWorkshopSubmitUI.< > f__mg$cache2 == null)
            {
                MenuWorkshopSubmitUI.< > f__mg$cache2 = new TempSteamworksWorkshop.PublishedRemoved(MenuWorkshopSubmitUI.onPublishedRemoved);
            }
            workshopService2.onPublishedRemoved             = (TempSteamworksWorkshop.PublishedRemoved)Delegate.Combine(onPublishedRemoved, MenuWorkshopSubmitUI.< > f__mg$cache2);
            MenuWorkshopSubmitUI.container                  = new Sleek();
            MenuWorkshopSubmitUI.container.positionOffset_X = 10;
            MenuWorkshopSubmitUI.container.positionOffset_Y = 10;
            MenuWorkshopSubmitUI.container.positionScale_Y  = 1f;
            MenuWorkshopSubmitUI.container.sizeOffset_X     = -20;
            MenuWorkshopSubmitUI.container.sizeOffset_Y     = -20;
            MenuWorkshopSubmitUI.container.sizeScale_X      = 1f;
            MenuWorkshopSubmitUI.container.sizeScale_Y      = 1f;
            MenuUI.container.add(MenuWorkshopSubmitUI.container);
            MenuWorkshopSubmitUI.active    = false;
            MenuWorkshopSubmitUI.nameField = new SleekField();
            MenuWorkshopSubmitUI.nameField.positionOffset_X = -200;
            MenuWorkshopSubmitUI.nameField.positionOffset_Y = 100;
            MenuWorkshopSubmitUI.nameField.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.nameField.sizeOffset_X     = 200;
            MenuWorkshopSubmitUI.nameField.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.nameField.maxLength        = 24;
            MenuWorkshopSubmitUI.nameField.addLabel(MenuWorkshopSubmitUI.localization.format("Name_Field_Label"), ESleekSide.RIGHT);
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.nameField);
            MenuWorkshopSubmitUI.descriptionField = new SleekField();
            MenuWorkshopSubmitUI.descriptionField.positionOffset_X = -200;
            MenuWorkshopSubmitUI.descriptionField.positionOffset_Y = 140;
            MenuWorkshopSubmitUI.descriptionField.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.descriptionField.sizeOffset_X     = 400;
            MenuWorkshopSubmitUI.descriptionField.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.descriptionField.maxLength        = 128;
            MenuWorkshopSubmitUI.descriptionField.addLabel(MenuWorkshopSubmitUI.localization.format("Description_Field_Label"), ESleekSide.RIGHT);
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.descriptionField);
            MenuWorkshopSubmitUI.pathField = new SleekField();
            MenuWorkshopSubmitUI.pathField.positionOffset_X = -200;
            MenuWorkshopSubmitUI.pathField.positionOffset_Y = 180;
            MenuWorkshopSubmitUI.pathField.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.pathField.sizeOffset_X     = 400;
            MenuWorkshopSubmitUI.pathField.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.pathField.maxLength        = 128;
            MenuWorkshopSubmitUI.pathField.addLabel(MenuWorkshopSubmitUI.localization.format("Path_Field_Label"), ESleekSide.RIGHT);
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.pathField);
            MenuWorkshopSubmitUI.previewField = new SleekField();
            MenuWorkshopSubmitUI.previewField.positionOffset_X = -200;
            MenuWorkshopSubmitUI.previewField.positionOffset_Y = 220;
            MenuWorkshopSubmitUI.previewField.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.previewField.sizeOffset_X     = 400;
            MenuWorkshopSubmitUI.previewField.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.previewField.maxLength        = 128;
            MenuWorkshopSubmitUI.previewField.addLabel(MenuWorkshopSubmitUI.localization.format("Preview_Field_Label"), ESleekSide.RIGHT);
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.previewField);
            MenuWorkshopSubmitUI.changeField = new SleekField();
            MenuWorkshopSubmitUI.changeField.positionOffset_X = -200;
            MenuWorkshopSubmitUI.changeField.positionOffset_Y = 260;
            MenuWorkshopSubmitUI.changeField.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.changeField.sizeOffset_X     = 400;
            MenuWorkshopSubmitUI.changeField.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.changeField.maxLength        = 128;
            MenuWorkshopSubmitUI.changeField.addLabel(MenuWorkshopSubmitUI.localization.format("Change_Field_Label"), ESleekSide.RIGHT);
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.changeField);
            MenuWorkshopSubmitUI.typeState = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Map")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Localization")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Object")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Vehicle")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin"))
            });
            MenuWorkshopSubmitUI.typeState.positionOffset_X = -200;
            MenuWorkshopSubmitUI.typeState.positionOffset_Y = 300;
            MenuWorkshopSubmitUI.typeState.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.typeState.sizeOffset_X     = 195;
            MenuWorkshopSubmitUI.typeState.sizeOffset_Y     = 30;
            SleekButtonState sleekButtonState = MenuWorkshopSubmitUI.typeState;

            if (MenuWorkshopSubmitUI.< > f__mg$cache3 == null)
            {
                MenuWorkshopSubmitUI.< > f__mg$cache3 = new SwappedState(MenuWorkshopSubmitUI.onSwappedTypeState);
            }
            sleekButtonState.onSwappedState = MenuWorkshopSubmitUI.< > f__mg$cache3;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.typeState);
            MenuWorkshopSubmitUI.mapTypeState = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Map_Type_Survival")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Map_Type_Horde")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Map_Type_Arena"))
            });
            MenuWorkshopSubmitUI.mapTypeState.positionOffset_X = 5;
            MenuWorkshopSubmitUI.mapTypeState.positionOffset_Y = 300;
            MenuWorkshopSubmitUI.mapTypeState.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.mapTypeState.sizeOffset_X     = 195;
            MenuWorkshopSubmitUI.mapTypeState.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.mapTypeState);
            MenuWorkshopSubmitUI.mapTypeState.isVisible = true;
            MenuWorkshopSubmitUI.itemTypeState          = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Backpack")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Barrel")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Barricade")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Fisher")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Food")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Fuel")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Glasses")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Grip")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Grower")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Gun")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Hat")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Magazine")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Mask")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Medical")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Melee")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Optic")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Shirt")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Sight")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Structure")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Supply")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Tactical")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Throwable")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Tool")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Vest")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Item_Type_Water"))
            });
            MenuWorkshopSubmitUI.itemTypeState.positionOffset_X = 5;
            MenuWorkshopSubmitUI.itemTypeState.positionOffset_Y = 300;
            MenuWorkshopSubmitUI.itemTypeState.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.itemTypeState.sizeOffset_X     = 195;
            MenuWorkshopSubmitUI.itemTypeState.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.itemTypeState);
            MenuWorkshopSubmitUI.itemTypeState.isVisible = false;
            MenuWorkshopSubmitUI.vehicleTypeState        = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Vehicle_Type_Wheels_2")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Vehicle_Type_Wheels_4")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Vehicle_Type_Plane")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Vehicle_Type_Helicopter")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Vehicle_Type_Boat"))
            });
            MenuWorkshopSubmitUI.vehicleTypeState.positionOffset_X = 5;
            MenuWorkshopSubmitUI.vehicleTypeState.positionOffset_Y = 300;
            MenuWorkshopSubmitUI.vehicleTypeState.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.vehicleTypeState.sizeOffset_X     = 195;
            MenuWorkshopSubmitUI.vehicleTypeState.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.vehicleTypeState);
            MenuWorkshopSubmitUI.vehicleTypeState.isVisible = false;
            MenuWorkshopSubmitUI.skinTypeState = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Generic_Pattern")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Ace")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Augewehr")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Avenger")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Bluntforce")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Bulldog")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Butterfly_Knife")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Calling_Card")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Cobra")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Colt")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Compound_Bow")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Crossbow")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Desert_Falcon")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Dragonfang")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Eaglefire")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Ekho")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Fusilaut")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Grizzly")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Hawkhound")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Heartbreaker")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Hell_Fury")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Honeybadger")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Katana")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Kryzkarek")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Machete")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Maplestrike")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Masterkey")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Matamorez")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Military_Knife")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Nightraider")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Nykorev")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Peacemaker")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Rocket_Launcher")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Sabertooth")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Scalar")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Schofield")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Shadowstalker")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Snayperskya")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Sportshot")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Teklowvka")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Timberwolf")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Viper")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Vonya")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Yuri")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Skin_Type_Zubeknakov"))
            });
            MenuWorkshopSubmitUI.skinTypeState.positionOffset_X = 5;
            MenuWorkshopSubmitUI.skinTypeState.positionOffset_Y = 300;
            MenuWorkshopSubmitUI.skinTypeState.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.skinTypeState.sizeOffset_X     = 195;
            MenuWorkshopSubmitUI.skinTypeState.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.skinTypeState);
            MenuWorkshopSubmitUI.skinTypeState.isVisible = false;
            MenuWorkshopSubmitUI.objectTypeState         = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Object_Type_Model")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Object_Type_Resource")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Object_Type_Effect")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Object_Type_Animal"))
            });
            MenuWorkshopSubmitUI.objectTypeState.positionOffset_X = 5;
            MenuWorkshopSubmitUI.objectTypeState.positionOffset_Y = 300;
            MenuWorkshopSubmitUI.objectTypeState.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.objectTypeState.sizeOffset_X     = 195;
            MenuWorkshopSubmitUI.objectTypeState.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.objectTypeState);
            MenuWorkshopSubmitUI.objectTypeState.isVisible = false;
            MenuWorkshopSubmitUI.visibilityState           = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Public")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Friends_Only")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Private"))
            });
            MenuWorkshopSubmitUI.visibilityState.positionOffset_X = -200;
            MenuWorkshopSubmitUI.visibilityState.positionOffset_Y = 340;
            MenuWorkshopSubmitUI.visibilityState.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.visibilityState.sizeOffset_X     = 200;
            MenuWorkshopSubmitUI.visibilityState.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.visibilityState);
            MenuWorkshopSubmitUI.forState = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Community")),
                new GUIContent(MenuWorkshopSubmitUI.localization.format("Review"))
            });
            MenuWorkshopSubmitUI.forState.positionOffset_X = -200;
            MenuWorkshopSubmitUI.forState.positionOffset_Y = 380;
            MenuWorkshopSubmitUI.forState.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.forState.sizeOffset_X     = 200;
            MenuWorkshopSubmitUI.forState.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.forState);
            MenuWorkshopSubmitUI.createButton = new SleekButtonIcon((Texture2D)bundle.load("Create"));
            MenuWorkshopSubmitUI.createButton.positionOffset_X = -200;
            MenuWorkshopSubmitUI.createButton.positionOffset_Y = 420;
            MenuWorkshopSubmitUI.createButton.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.createButton.sizeOffset_X     = 195;
            MenuWorkshopSubmitUI.createButton.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.createButton.text             = MenuWorkshopSubmitUI.localization.format("Create_Button");
            MenuWorkshopSubmitUI.createButton.tooltip          = MenuWorkshopSubmitUI.localization.format("Create_Button_Tooltip");
            SleekButton sleekButton = MenuWorkshopSubmitUI.createButton;

            if (MenuWorkshopSubmitUI.< > f__mg$cache4 == null)
            {
                MenuWorkshopSubmitUI.< > f__mg$cache4 = new ClickedButton(MenuWorkshopSubmitUI.onClickedCreateButton);
            }
            sleekButton.onClickedButton = MenuWorkshopSubmitUI.< > f__mg$cache4;
            MenuWorkshopSubmitUI.createButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.createButton);
            MenuWorkshopSubmitUI.legalButton = new SleekButton();
            MenuWorkshopSubmitUI.legalButton.positionOffset_X = 5;
            MenuWorkshopSubmitUI.legalButton.positionOffset_Y = 420;
            MenuWorkshopSubmitUI.legalButton.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.legalButton.sizeOffset_X     = 195;
            MenuWorkshopSubmitUI.legalButton.sizeOffset_Y     = 30;
            MenuWorkshopSubmitUI.legalButton.fontSize         = 10;
            MenuWorkshopSubmitUI.legalButton.text             = MenuWorkshopSubmitUI.localization.format("Legal_Button");
            MenuWorkshopSubmitUI.legalButton.tooltip          = MenuWorkshopSubmitUI.localization.format("Legal_Button_Tooltip");
            SleekButton sleekButton2 = MenuWorkshopSubmitUI.legalButton;

            if (MenuWorkshopSubmitUI.< > f__mg$cache5 == null)
            {
                MenuWorkshopSubmitUI.< > f__mg$cache5 = new ClickedButton(MenuWorkshopSubmitUI.onClickedLegalButton);
            }
            sleekButton2.onClickedButton = MenuWorkshopSubmitUI.< > f__mg$cache5;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.legalButton);
            MenuWorkshopSubmitUI.publishedBox = new SleekScrollBox();
            MenuWorkshopSubmitUI.publishedBox.positionOffset_X = -200;
            MenuWorkshopSubmitUI.publishedBox.positionOffset_Y = 460;
            MenuWorkshopSubmitUI.publishedBox.positionScale_X  = 0.5f;
            MenuWorkshopSubmitUI.publishedBox.sizeOffset_X     = 430;
            MenuWorkshopSubmitUI.publishedBox.sizeOffset_Y     = -460;
            MenuWorkshopSubmitUI.publishedBox.sizeScale_Y      = 1f;
            MenuWorkshopSubmitUI.publishedBox.area             = new Rect(0f, 0f, 5f, 0f);
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.publishedBox);
            MenuWorkshopSubmitUI.backButton = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Exit"));
            MenuWorkshopSubmitUI.backButton.positionOffset_Y = -50;
            MenuWorkshopSubmitUI.backButton.positionScale_Y  = 1f;
            MenuWorkshopSubmitUI.backButton.sizeOffset_X     = 200;
            MenuWorkshopSubmitUI.backButton.sizeOffset_Y     = 50;
            MenuWorkshopSubmitUI.backButton.text             = MenuDashboardUI.localization.format("BackButtonText");
            MenuWorkshopSubmitUI.backButton.tooltip          = MenuDashboardUI.localization.format("BackButtonTooltip");
            SleekButton sleekButton3 = MenuWorkshopSubmitUI.backButton;

            if (MenuWorkshopSubmitUI.< > f__mg$cache6 == null)
            {
                MenuWorkshopSubmitUI.< > f__mg$cache6 = new ClickedButton(MenuWorkshopSubmitUI.onClickedBackButton);
            }
            sleekButton3.onClickedButton             = MenuWorkshopSubmitUI.< > f__mg$cache6;
            MenuWorkshopSubmitUI.backButton.fontSize = 14;
            MenuWorkshopSubmitUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuWorkshopSubmitUI.container.add(MenuWorkshopSubmitUI.backButton);
            MenuWorkshopSubmitUI.onPublishedAdded();
            bundle.unload();
        }