// Token: 0x0600355D RID: 13661 RVA: 0x00163FC4 File Offset: 0x001623C4 public EditorSpawnsVehiclesUI() { Local local = Localization.read("/Editor/EditorSpawnsVehicles.dat"); Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorSpawnsVehicles/EditorSpawnsVehicles.unity3d"); EditorSpawnsVehiclesUI.container = new Sleek(); EditorSpawnsVehiclesUI.container.positionOffset_X = 10; EditorSpawnsVehiclesUI.container.positionOffset_Y = 10; EditorSpawnsVehiclesUI.container.positionScale_X = 1f; EditorSpawnsVehiclesUI.container.sizeOffset_X = -20; EditorSpawnsVehiclesUI.container.sizeOffset_Y = -20; EditorSpawnsVehiclesUI.container.sizeScale_X = 1f; EditorSpawnsVehiclesUI.container.sizeScale_Y = 1f; EditorUI.window.add(EditorSpawnsVehiclesUI.container); EditorSpawnsVehiclesUI.active = false; EditorSpawnsVehiclesUI.tableScrollBox = new SleekScrollBox(); EditorSpawnsVehiclesUI.tableScrollBox.positionOffset_X = -470; EditorSpawnsVehiclesUI.tableScrollBox.positionOffset_Y = 120; EditorSpawnsVehiclesUI.tableScrollBox.positionScale_X = 1f; EditorSpawnsVehiclesUI.tableScrollBox.sizeOffset_X = 470; EditorSpawnsVehiclesUI.tableScrollBox.sizeOffset_Y = 200; EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.tableScrollBox); EditorSpawnsVehiclesUI.tableNameField = new SleekField(); EditorSpawnsVehiclesUI.tableNameField.positionOffset_X = -230; EditorSpawnsVehiclesUI.tableNameField.positionOffset_Y = 330; EditorSpawnsVehiclesUI.tableNameField.positionScale_X = 1f; EditorSpawnsVehiclesUI.tableNameField.sizeOffset_X = 230; EditorSpawnsVehiclesUI.tableNameField.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.tableNameField.maxLength = 64; EditorSpawnsVehiclesUI.tableNameField.addLabel(local.format("TableNameFieldLabelText"), ESleekSide.LEFT); SleekField sleekField = EditorSpawnsVehiclesUI.tableNameField; Delegate onTyped = sleekField.onTyped; if (EditorSpawnsVehiclesUI.< > f__mg$cache4 == null) { EditorSpawnsVehiclesUI.< > f__mg$cache4 = new Typed(EditorSpawnsVehiclesUI.onTypedNameField); } sleekField.onTyped = (Typed)Delegate.Combine(onTyped, EditorSpawnsVehiclesUI.< > f__mg$cache4); EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.tableNameField); EditorSpawnsVehiclesUI.addTableButton = new SleekButtonIcon((Texture2D)bundle.load("Add")); EditorSpawnsVehiclesUI.addTableButton.positionOffset_X = -230; EditorSpawnsVehiclesUI.addTableButton.positionOffset_Y = 370; EditorSpawnsVehiclesUI.addTableButton.positionScale_X = 1f; EditorSpawnsVehiclesUI.addTableButton.sizeOffset_X = 110; EditorSpawnsVehiclesUI.addTableButton.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.addTableButton.text = local.format("AddTableButtonText"); EditorSpawnsVehiclesUI.addTableButton.tooltip = local.format("AddTableButtonTooltip"); SleekButton sleekButton = EditorSpawnsVehiclesUI.addTableButton; if (EditorSpawnsVehiclesUI.< > f__mg$cache5 == null) { EditorSpawnsVehiclesUI.< > f__mg$cache5 = new ClickedButton(EditorSpawnsVehiclesUI.onClickedAddTableButton); } sleekButton.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cache5; EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.addTableButton); EditorSpawnsVehiclesUI.removeTableButton = new SleekButtonIcon((Texture2D)bundle.load("Remove")); EditorSpawnsVehiclesUI.removeTableButton.positionOffset_X = -110; EditorSpawnsVehiclesUI.removeTableButton.positionOffset_Y = 370; EditorSpawnsVehiclesUI.removeTableButton.positionScale_X = 1f; EditorSpawnsVehiclesUI.removeTableButton.sizeOffset_X = 110; EditorSpawnsVehiclesUI.removeTableButton.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.removeTableButton.text = local.format("RemoveTableButtonText"); EditorSpawnsVehiclesUI.removeTableButton.tooltip = local.format("RemoveTableButtonTooltip"); SleekButton sleekButton2 = EditorSpawnsVehiclesUI.removeTableButton; if (EditorSpawnsVehiclesUI.< > f__mg$cache6 == null) { EditorSpawnsVehiclesUI.< > f__mg$cache6 = new ClickedButton(EditorSpawnsVehiclesUI.onClickedRemoveTableButton); } sleekButton2.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cache6; EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.removeTableButton); EditorSpawnsVehiclesUI.updateTables(); EditorSpawnsVehiclesUI.spawnsScrollBox = new SleekScrollBox(); EditorSpawnsVehiclesUI.spawnsScrollBox.positionOffset_X = -470; EditorSpawnsVehiclesUI.spawnsScrollBox.positionOffset_Y = 410; EditorSpawnsVehiclesUI.spawnsScrollBox.positionScale_X = 1f; EditorSpawnsVehiclesUI.spawnsScrollBox.sizeOffset_X = 470; EditorSpawnsVehiclesUI.spawnsScrollBox.sizeOffset_Y = -410; EditorSpawnsVehiclesUI.spawnsScrollBox.sizeScale_Y = 1f; EditorSpawnsVehiclesUI.spawnsScrollBox.area = new Rect(0f, 0f, 5f, 1000f); EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.spawnsScrollBox); EditorSpawnsVehiclesUI.tableColorPicker = new SleekColorPicker(); EditorSpawnsVehiclesUI.tableColorPicker.positionOffset_X = 200; SleekColorPicker sleekColorPicker = EditorSpawnsVehiclesUI.tableColorPicker; if (EditorSpawnsVehiclesUI.< > f__mg$cache7 == null) { EditorSpawnsVehiclesUI.< > f__mg$cache7 = new ColorPicked(EditorSpawnsVehiclesUI.onVehicleColorPicked); } sleekColorPicker.onColorPicked = EditorSpawnsVehiclesUI.< > f__mg$cache7; EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.tableColorPicker); EditorSpawnsVehiclesUI.tableIDField = new SleekUInt16Field(); EditorSpawnsVehiclesUI.tableIDField.positionOffset_X = 240; EditorSpawnsVehiclesUI.tableIDField.positionOffset_Y = 130; EditorSpawnsVehiclesUI.tableIDField.sizeOffset_X = 200; EditorSpawnsVehiclesUI.tableIDField.sizeOffset_Y = 30; SleekUInt16Field sleekUInt16Field = EditorSpawnsVehiclesUI.tableIDField; if (EditorSpawnsVehiclesUI.< > f__mg$cache8 == null) { EditorSpawnsVehiclesUI.< > f__mg$cache8 = new TypedUInt16(EditorSpawnsVehiclesUI.onTableIDFieldTyped); } sleekUInt16Field.onTypedUInt16 = EditorSpawnsVehiclesUI.< > f__mg$cache8; EditorSpawnsVehiclesUI.tableIDField.addLabel(local.format("TableIDFieldLabelText"), ESleekSide.LEFT); EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.tableIDField); EditorSpawnsVehiclesUI.tierNameField = new SleekField(); EditorSpawnsVehiclesUI.tierNameField.positionOffset_X = 240; EditorSpawnsVehiclesUI.tierNameField.sizeOffset_X = 200; EditorSpawnsVehiclesUI.tierNameField.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.tierNameField.maxLength = 64; EditorSpawnsVehiclesUI.tierNameField.addLabel(local.format("TierNameFieldLabelText"), ESleekSide.LEFT); SleekField sleekField2 = EditorSpawnsVehiclesUI.tierNameField; if (EditorSpawnsVehiclesUI.< > f__mg$cache9 == null) { EditorSpawnsVehiclesUI.< > f__mg$cache9 = new Typed(EditorSpawnsVehiclesUI.onTypedTierNameField); } sleekField2.onTyped = EditorSpawnsVehiclesUI.< > f__mg$cache9; EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.tierNameField); EditorSpawnsVehiclesUI.addTierButton = new SleekButtonIcon((Texture2D)bundle.load("Add")); EditorSpawnsVehiclesUI.addTierButton.positionOffset_X = 240; EditorSpawnsVehiclesUI.addTierButton.sizeOffset_X = 95; EditorSpawnsVehiclesUI.addTierButton.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.addTierButton.text = local.format("AddTierButtonText"); EditorSpawnsVehiclesUI.addTierButton.tooltip = local.format("AddTierButtonTooltip"); SleekButton sleekButton3 = EditorSpawnsVehiclesUI.addTierButton; if (EditorSpawnsVehiclesUI.< > f__mg$cacheA == null) { EditorSpawnsVehiclesUI.< > f__mg$cacheA = new ClickedButton(EditorSpawnsVehiclesUI.onClickedAddTierButton); } sleekButton3.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cacheA; EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.addTierButton); EditorSpawnsVehiclesUI.removeTierButton = new SleekButtonIcon((Texture2D)bundle.load("Remove")); EditorSpawnsVehiclesUI.removeTierButton.positionOffset_X = 345; EditorSpawnsVehiclesUI.removeTierButton.sizeOffset_X = 95; EditorSpawnsVehiclesUI.removeTierButton.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.removeTierButton.text = local.format("RemoveTierButtonText"); EditorSpawnsVehiclesUI.removeTierButton.tooltip = local.format("RemoveTierButtonTooltip"); SleekButton sleekButton4 = EditorSpawnsVehiclesUI.removeTierButton; if (EditorSpawnsVehiclesUI.< > f__mg$cacheB == null) { EditorSpawnsVehiclesUI.< > f__mg$cacheB = new ClickedButton(EditorSpawnsVehiclesUI.onClickedRemoveTierButton); } sleekButton4.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cacheB; EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.removeTierButton); EditorSpawnsVehiclesUI.vehicleIDField = new SleekUInt16Field(); EditorSpawnsVehiclesUI.vehicleIDField.positionOffset_X = 240; EditorSpawnsVehiclesUI.vehicleIDField.sizeOffset_X = 200; EditorSpawnsVehiclesUI.vehicleIDField.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.vehicleIDField.addLabel(local.format("VehicleIDFieldLabelText"), ESleekSide.LEFT); EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.vehicleIDField); EditorSpawnsVehiclesUI.addVehicleButton = new SleekButtonIcon((Texture2D)bundle.load("Add")); EditorSpawnsVehiclesUI.addVehicleButton.positionOffset_X = 240; EditorSpawnsVehiclesUI.addVehicleButton.sizeOffset_X = 95; EditorSpawnsVehiclesUI.addVehicleButton.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.addVehicleButton.text = local.format("AddVehicleButtonText"); EditorSpawnsVehiclesUI.addVehicleButton.tooltip = local.format("AddVehicleButtonTooltip"); SleekButton sleekButton5 = EditorSpawnsVehiclesUI.addVehicleButton; if (EditorSpawnsVehiclesUI.< > f__mg$cacheC == null) { EditorSpawnsVehiclesUI.< > f__mg$cacheC = new ClickedButton(EditorSpawnsVehiclesUI.onClickedAddVehicleButton); } sleekButton5.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cacheC; EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.addVehicleButton); EditorSpawnsVehiclesUI.removeVehicleButton = new SleekButtonIcon((Texture2D)bundle.load("Remove")); EditorSpawnsVehiclesUI.removeVehicleButton.positionOffset_X = 345; EditorSpawnsVehiclesUI.removeVehicleButton.sizeOffset_X = 95; EditorSpawnsVehiclesUI.removeVehicleButton.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.removeVehicleButton.text = local.format("RemoveVehicleButtonText"); EditorSpawnsVehiclesUI.removeVehicleButton.tooltip = local.format("RemoveVehicleButtonTooltip"); SleekButton sleekButton6 = EditorSpawnsVehiclesUI.removeVehicleButton; if (EditorSpawnsVehiclesUI.< > f__mg$cacheD == null) { EditorSpawnsVehiclesUI.< > f__mg$cacheD = new ClickedButton(EditorSpawnsVehiclesUI.onClickedRemoveVehicleButton); } sleekButton6.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cacheD; EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.removeVehicleButton); EditorSpawnsVehiclesUI.selectedBox = new SleekBox(); EditorSpawnsVehiclesUI.selectedBox.positionOffset_X = -230; EditorSpawnsVehiclesUI.selectedBox.positionOffset_Y = 80; EditorSpawnsVehiclesUI.selectedBox.positionScale_X = 1f; EditorSpawnsVehiclesUI.selectedBox.sizeOffset_X = 230; EditorSpawnsVehiclesUI.selectedBox.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.selectedBox.addLabel(local.format("SelectionBoxLabelText"), ESleekSide.LEFT); EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.selectedBox); EditorSpawnsVehiclesUI.updateSelection(); EditorSpawnsVehiclesUI.radiusSlider = new SleekSlider(); EditorSpawnsVehiclesUI.radiusSlider.positionOffset_Y = -130; EditorSpawnsVehiclesUI.radiusSlider.positionScale_Y = 1f; EditorSpawnsVehiclesUI.radiusSlider.sizeOffset_X = 200; EditorSpawnsVehiclesUI.radiusSlider.sizeOffset_Y = 20; EditorSpawnsVehiclesUI.radiusSlider.state = (float)(EditorSpawns.radius - EditorSpawns.MIN_REMOVE_SIZE) / (float)EditorSpawns.MAX_REMOVE_SIZE; EditorSpawnsVehiclesUI.radiusSlider.orientation = ESleekOrientation.HORIZONTAL; EditorSpawnsVehiclesUI.radiusSlider.addLabel(local.format("RadiusSliderLabelText"), ESleekSide.RIGHT); SleekSlider sleekSlider = EditorSpawnsVehiclesUI.radiusSlider; if (EditorSpawnsVehiclesUI.< > f__mg$cacheE == null) { EditorSpawnsVehiclesUI.< > f__mg$cacheE = new Dragged(EditorSpawnsVehiclesUI.onDraggedRadiusSlider); } sleekSlider.onDragged = EditorSpawnsVehiclesUI.< > f__mg$cacheE; EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.radiusSlider); EditorSpawnsVehiclesUI.rotationSlider = new SleekSlider(); EditorSpawnsVehiclesUI.rotationSlider.positionOffset_Y = -100; EditorSpawnsVehiclesUI.rotationSlider.positionScale_Y = 1f; EditorSpawnsVehiclesUI.rotationSlider.sizeOffset_X = 200; EditorSpawnsVehiclesUI.rotationSlider.sizeOffset_Y = 20; EditorSpawnsVehiclesUI.rotationSlider.state = EditorSpawns.rotation / 360f; EditorSpawnsVehiclesUI.rotationSlider.orientation = ESleekOrientation.HORIZONTAL; EditorSpawnsVehiclesUI.rotationSlider.addLabel(local.format("RotationSliderLabelText"), ESleekSide.RIGHT); SleekSlider sleekSlider2 = EditorSpawnsVehiclesUI.rotationSlider; if (EditorSpawnsVehiclesUI.< > f__mg$cacheF == null) { EditorSpawnsVehiclesUI.< > f__mg$cacheF = new Dragged(EditorSpawnsVehiclesUI.onDraggedRotationSlider); } sleekSlider2.onDragged = EditorSpawnsVehiclesUI.< > f__mg$cacheF; EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.rotationSlider); EditorSpawnsVehiclesUI.addButton = new SleekButtonIcon((Texture2D)bundle.load("Add")); EditorSpawnsVehiclesUI.addButton.positionOffset_Y = -70; EditorSpawnsVehiclesUI.addButton.positionScale_Y = 1f; EditorSpawnsVehiclesUI.addButton.sizeOffset_X = 200; EditorSpawnsVehiclesUI.addButton.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.addButton.text = local.format("AddButtonText", new object[] { ControlsSettings.tool_0 }); EditorSpawnsVehiclesUI.addButton.tooltip = local.format("AddButtonTooltip"); SleekButton sleekButton7 = EditorSpawnsVehiclesUI.addButton; if (EditorSpawnsVehiclesUI.< > f__mg$cache10 == null) { EditorSpawnsVehiclesUI.< > f__mg$cache10 = new ClickedButton(EditorSpawnsVehiclesUI.onClickedAddButton); } sleekButton7.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cache10; EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.addButton); EditorSpawnsVehiclesUI.removeButton = new SleekButtonIcon((Texture2D)bundle.load("Remove")); EditorSpawnsVehiclesUI.removeButton.positionOffset_Y = -30; EditorSpawnsVehiclesUI.removeButton.positionScale_Y = 1f; EditorSpawnsVehiclesUI.removeButton.sizeOffset_X = 200; EditorSpawnsVehiclesUI.removeButton.sizeOffset_Y = 30; EditorSpawnsVehiclesUI.removeButton.text = local.format("RemoveButtonText", new object[] { ControlsSettings.tool_1 }); EditorSpawnsVehiclesUI.removeButton.tooltip = local.format("RemoveButtonTooltip"); SleekButton sleekButton8 = EditorSpawnsVehiclesUI.removeButton; if (EditorSpawnsVehiclesUI.< > f__mg$cache11 == null) { EditorSpawnsVehiclesUI.< > f__mg$cache11 = new ClickedButton(EditorSpawnsVehiclesUI.onClickedRemoveButton); } sleekButton8.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cache11; EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.removeButton); 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); }
public MenuPlayConnectUI() { MenuPlayConnectUI.localization = Localization.read("/Menu/Play/MenuPlayConnect.dat"); Bundle bundle = Bundles.getBundle("/Bundles/Textures/Menu/Icons/Play/MenuPlayConnect/MenuPlayConnect.unity3d"); MenuPlayConnectUI.container = new Sleek(); MenuPlayConnectUI.container.positionOffset_X = 10; MenuPlayConnectUI.container.positionOffset_Y = 10; MenuPlayConnectUI.container.positionScale_Y = 1f; MenuPlayConnectUI.container.sizeOffset_X = -20; MenuPlayConnectUI.container.sizeOffset_Y = -20; MenuPlayConnectUI.container.sizeScale_X = 1f; MenuPlayConnectUI.container.sizeScale_Y = 1f; MenuUI.container.add(MenuPlayConnectUI.container); MenuPlayConnectUI.active = false; MenuPlayConnectUI.ipField = new SleekField(); MenuPlayConnectUI.ipField.positionOffset_X = -100; MenuPlayConnectUI.ipField.positionOffset_Y = -75; MenuPlayConnectUI.ipField.positionScale_X = 0.5f; MenuPlayConnectUI.ipField.positionScale_Y = 0.5f; MenuPlayConnectUI.ipField.sizeOffset_X = 200; MenuPlayConnectUI.ipField.sizeOffset_Y = 30; MenuPlayConnectUI.ipField.maxLength = 64; MenuPlayConnectUI.ipField.addLabel(MenuPlayConnectUI.localization.format("IP_Field_Label"), ESleekSide.RIGHT); MenuPlayConnectUI.ipField.text = PlaySettings.connectIP; SleekField sleekField = MenuPlayConnectUI.ipField; if (MenuPlayConnectUI.< > f__mg$cache0 == null) { MenuPlayConnectUI.< > f__mg$cache0 = new Typed(MenuPlayConnectUI.onTypedIPField); } sleekField.onTyped = MenuPlayConnectUI.< > f__mg$cache0; MenuPlayConnectUI.container.add(MenuPlayConnectUI.ipField); MenuPlayConnectUI.portField = new SleekUInt16Field(); MenuPlayConnectUI.portField.positionOffset_X = -100; MenuPlayConnectUI.portField.positionOffset_Y = -35; MenuPlayConnectUI.portField.positionScale_X = 0.5f; MenuPlayConnectUI.portField.positionScale_Y = 0.5f; MenuPlayConnectUI.portField.sizeOffset_X = 200; MenuPlayConnectUI.portField.sizeOffset_Y = 30; MenuPlayConnectUI.portField.addLabel(MenuPlayConnectUI.localization.format("Port_Field_Label"), ESleekSide.RIGHT); MenuPlayConnectUI.portField.state = PlaySettings.connectPort; SleekUInt16Field sleekUInt16Field = MenuPlayConnectUI.portField; if (MenuPlayConnectUI.< > f__mg$cache1 == null) { MenuPlayConnectUI.< > f__mg$cache1 = new TypedUInt16(MenuPlayConnectUI.onTypedPortField); } sleekUInt16Field.onTypedUInt16 = MenuPlayConnectUI.< > f__mg$cache1; MenuPlayConnectUI.container.add(MenuPlayConnectUI.portField); MenuPlayConnectUI.passwordField = new SleekField(); MenuPlayConnectUI.passwordField.positionOffset_X = -100; MenuPlayConnectUI.passwordField.positionOffset_Y = 5; MenuPlayConnectUI.passwordField.positionScale_X = 0.5f; MenuPlayConnectUI.passwordField.positionScale_Y = 0.5f; MenuPlayConnectUI.passwordField.sizeOffset_X = 200; MenuPlayConnectUI.passwordField.sizeOffset_Y = 30; MenuPlayConnectUI.passwordField.addLabel(MenuPlayConnectUI.localization.format("Password_Field_Label"), ESleekSide.RIGHT); MenuPlayConnectUI.passwordField.replace = MenuPlayConnectUI.localization.format("Password_Field_Replace").ToCharArray()[0]; MenuPlayConnectUI.passwordField.text = PlaySettings.connectPassword; SleekField sleekField2 = MenuPlayConnectUI.passwordField; if (MenuPlayConnectUI.< > f__mg$cache2 == null) { MenuPlayConnectUI.< > f__mg$cache2 = new Typed(MenuPlayConnectUI.onTypedPasswordField); } sleekField2.onTyped = MenuPlayConnectUI.< > f__mg$cache2; MenuPlayConnectUI.container.add(MenuPlayConnectUI.passwordField); MenuPlayConnectUI.connectButton = new SleekButtonIcon((Texture2D)bundle.load("Connect")); MenuPlayConnectUI.connectButton.positionOffset_X = -100; MenuPlayConnectUI.connectButton.positionOffset_Y = 45; MenuPlayConnectUI.connectButton.positionScale_X = 0.5f; MenuPlayConnectUI.connectButton.positionScale_Y = 0.5f; MenuPlayConnectUI.connectButton.sizeOffset_X = 200; MenuPlayConnectUI.connectButton.sizeOffset_Y = 30; MenuPlayConnectUI.connectButton.text = MenuPlayConnectUI.localization.format("Connect_Button"); MenuPlayConnectUI.connectButton.tooltip = MenuPlayConnectUI.localization.format("Connect_Button_Tooltip"); MenuPlayConnectUI.connectButton.iconImage.backgroundTint = ESleekTint.FOREGROUND; SleekButton sleekButton = MenuPlayConnectUI.connectButton; if (MenuPlayConnectUI.< > f__mg$cache3 == null) { MenuPlayConnectUI.< > f__mg$cache3 = new ClickedButton(MenuPlayConnectUI.onClickedConnectButton); } sleekButton.onClickedButton = MenuPlayConnectUI.< > f__mg$cache3; MenuPlayConnectUI.container.add(MenuPlayConnectUI.connectButton); TempSteamworksMatchmaking matchmakingService = Provider.provider.matchmakingService; if (MenuPlayConnectUI.< > f__mg$cache4 == null) { MenuPlayConnectUI.< > f__mg$cache4 = new TempSteamworksMatchmaking.AttemptUpdated(MenuPlayConnectUI.onAttemptUpdated); } matchmakingService.onAttemptUpdated = MenuPlayConnectUI.< > f__mg$cache4; TempSteamworksMatchmaking matchmakingService2 = Provider.provider.matchmakingService; if (MenuPlayConnectUI.< > f__mg$cache5 == null) { MenuPlayConnectUI.< > f__mg$cache5 = new TempSteamworksMatchmaking.TimedOut(MenuPlayConnectUI.onTimedOut); } matchmakingService2.onTimedOut = MenuPlayConnectUI.< > f__mg$cache5; if (!MenuPlayConnectUI.isLaunched) { MenuPlayConnectUI.isLaunched = true; uint newIP; ushort newPort; string newPassword; ulong num; if (CommandLine.tryGetConnect(Environment.CommandLine, out newIP, out newPort, out newPassword)) { SteamConnectionInfo steamConnectionInfo = new SteamConnectionInfo(newIP, newPort, newPassword); Debug.Log(string.Concat(new object[] { steamConnectionInfo.ip, " ", Parser.getIPFromUInt32(steamConnectionInfo.ip), " ", steamConnectionInfo.port, " ", steamConnectionInfo.password })); Provider.provider.matchmakingService.connect(steamConnectionInfo); MenuUI.openAlert(MenuPlayConnectUI.localization.format("Connecting")); } else if (CommandLine.tryGetLobby(Environment.CommandLine, out num)) { Debug.Log("Lobby: " + num); Lobbies.joinLobby(new CSteamID(num)); } } bundle.unload(); MenuPlayConnectUI.backButton = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Exit")); MenuPlayConnectUI.backButton.positionOffset_Y = -50; MenuPlayConnectUI.backButton.positionScale_Y = 1f; MenuPlayConnectUI.backButton.sizeOffset_X = 200; MenuPlayConnectUI.backButton.sizeOffset_Y = 50; MenuPlayConnectUI.backButton.text = MenuDashboardUI.localization.format("BackButtonText"); MenuPlayConnectUI.backButton.tooltip = MenuDashboardUI.localization.format("BackButtonTooltip"); SleekButton sleekButton2 = MenuPlayConnectUI.backButton; if (MenuPlayConnectUI.< > f__mg$cache6 == null) { MenuPlayConnectUI.< > f__mg$cache6 = new ClickedButton(MenuPlayConnectUI.onClickedBackButton); } sleekButton2.onClickedButton = MenuPlayConnectUI.< > f__mg$cache6; MenuPlayConnectUI.backButton.fontSize = 14; MenuPlayConnectUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND; MenuPlayConnectUI.container.add(MenuPlayConnectUI.backButton); }
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(); }