private static void onXPFieldTyped(SleekUInt32Field field, uint state) { if ((int)EditorSpawns.selectedZombie < LevelZombies.tables.Count) { LevelZombies.tables[(int)EditorSpawns.selectedZombie].xp = state; } }
private static void onTypedCostField(SleekUInt32Field field, uint state) { if (EditorNodes.node != null && EditorNodes.node.type == ENodeType.PURCHASE) { ((PurchaseNode)EditorNodes.node).cost = state; } }
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); }
private static void onTypedUInt32(SleekUInt32Field uint32Field, uint state) { MenuPlayConfigUI.updateValue(uint32Field, state); }
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)); }
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: 0x060037CC RID: 14284 RVA: 0x0018B415 File Offset: 0x00189815 private static void onTypedAmountField(SleekUInt32Field field, uint state) { PlayerBarricadeLibraryUI.updateTax(); }
// Token: 0x060037C8 RID: 14280 RVA: 0x0018AB84 File Offset: 0x00188F84 public PlayerBarricadeLibraryUI() { PlayerBarricadeLibraryUI.localization = Localization.read("/Player/PlayerBarricadeLibrary.dat"); PlayerBarricadeLibraryUI.container = new Sleek(); PlayerBarricadeLibraryUI.container.positionScale_Y = 1f; PlayerBarricadeLibraryUI.container.positionOffset_X = 10; PlayerBarricadeLibraryUI.container.positionOffset_Y = 10; PlayerBarricadeLibraryUI.container.sizeOffset_X = -20; PlayerBarricadeLibraryUI.container.sizeOffset_Y = -20; PlayerBarricadeLibraryUI.container.sizeScale_X = 1f; PlayerBarricadeLibraryUI.container.sizeScale_Y = 1f; PlayerUI.container.add(PlayerBarricadeLibraryUI.container); PlayerBarricadeLibraryUI.active = false; PlayerBarricadeLibraryUI.library = null; PlayerBarricadeLibraryUI.capacityBox = new SleekBox(); PlayerBarricadeLibraryUI.capacityBox.positionOffset_X = -100; PlayerBarricadeLibraryUI.capacityBox.positionOffset_Y = -135; PlayerBarricadeLibraryUI.capacityBox.positionScale_X = 0.5f; PlayerBarricadeLibraryUI.capacityBox.positionScale_Y = 0.5f; PlayerBarricadeLibraryUI.capacityBox.sizeOffset_X = 200; PlayerBarricadeLibraryUI.capacityBox.sizeOffset_Y = 30; PlayerBarricadeLibraryUI.capacityBox.addLabel(PlayerBarricadeLibraryUI.localization.format("Capacity_Label"), ESleekSide.LEFT); PlayerBarricadeLibraryUI.container.add(PlayerBarricadeLibraryUI.capacityBox); PlayerBarricadeLibraryUI.walletBox = new SleekBox(); PlayerBarricadeLibraryUI.walletBox.positionOffset_X = -100; PlayerBarricadeLibraryUI.walletBox.positionOffset_Y = -95; PlayerBarricadeLibraryUI.walletBox.positionScale_X = 0.5f; PlayerBarricadeLibraryUI.walletBox.positionScale_Y = 0.5f; PlayerBarricadeLibraryUI.walletBox.sizeOffset_X = 200; PlayerBarricadeLibraryUI.walletBox.sizeOffset_Y = 30; PlayerBarricadeLibraryUI.walletBox.addLabel(PlayerBarricadeLibraryUI.localization.format("Wallet_Label"), ESleekSide.LEFT); PlayerBarricadeLibraryUI.container.add(PlayerBarricadeLibraryUI.walletBox); PlayerBarricadeLibraryUI.amountField = new SleekUInt32Field(); PlayerBarricadeLibraryUI.amountField.positionOffset_X = -100; PlayerBarricadeLibraryUI.amountField.positionOffset_Y = -15; PlayerBarricadeLibraryUI.amountField.positionScale_X = 0.5f; PlayerBarricadeLibraryUI.amountField.positionScale_Y = 0.5f; PlayerBarricadeLibraryUI.amountField.sizeOffset_X = 200; PlayerBarricadeLibraryUI.amountField.sizeOffset_Y = 30; PlayerBarricadeLibraryUI.amountField.addLabel(PlayerBarricadeLibraryUI.localization.format("Amount_Label"), ESleekSide.LEFT); SleekUInt32Field sleekUInt32Field = PlayerBarricadeLibraryUI.amountField; if (PlayerBarricadeLibraryUI.< > f__mg$cache0 == null) { PlayerBarricadeLibraryUI.< > f__mg$cache0 = new TypedUInt32(PlayerBarricadeLibraryUI.onTypedAmountField); } sleekUInt32Field.onTypedUInt32 = PlayerBarricadeLibraryUI.< > f__mg$cache0; PlayerBarricadeLibraryUI.amountField.foregroundTint = ESleekTint.NONE; PlayerBarricadeLibraryUI.container.add(PlayerBarricadeLibraryUI.amountField); PlayerBarricadeLibraryUI.transactionButton = new SleekButtonState(new GUIContent[] { new GUIContent(PlayerBarricadeLibraryUI.localization.format("Deposit"), PlayerBarricadeLibraryUI.localization.format("Deposit_Tooltip")), new GUIContent(PlayerBarricadeLibraryUI.localization.format("Withdraw"), PlayerBarricadeLibraryUI.localization.format("Withdraw_Tooltip")) }); PlayerBarricadeLibraryUI.transactionButton.positionOffset_X = -100; PlayerBarricadeLibraryUI.transactionButton.positionOffset_Y = -55; PlayerBarricadeLibraryUI.transactionButton.positionScale_X = 0.5f; PlayerBarricadeLibraryUI.transactionButton.positionScale_Y = 0.5f; PlayerBarricadeLibraryUI.transactionButton.sizeOffset_X = 200; PlayerBarricadeLibraryUI.transactionButton.sizeOffset_Y = 30; PlayerBarricadeLibraryUI.transactionButton.addLabel(PlayerBarricadeLibraryUI.localization.format("Transaction_Label"), ESleekSide.LEFT); SleekButtonState sleekButtonState = PlayerBarricadeLibraryUI.transactionButton; if (PlayerBarricadeLibraryUI.< > f__mg$cache1 == null) { PlayerBarricadeLibraryUI.< > f__mg$cache1 = new SwappedState(PlayerBarricadeLibraryUI.onSwappedTransactionState); } sleekButtonState.onSwappedState = PlayerBarricadeLibraryUI.< > f__mg$cache1; PlayerBarricadeLibraryUI.container.add(PlayerBarricadeLibraryUI.transactionButton); PlayerBarricadeLibraryUI.taxBox = new SleekBox(); PlayerBarricadeLibraryUI.taxBox.positionOffset_X = -100; PlayerBarricadeLibraryUI.taxBox.positionOffset_Y = 25; PlayerBarricadeLibraryUI.taxBox.positionScale_X = 0.5f; PlayerBarricadeLibraryUI.taxBox.positionScale_Y = 0.5f; PlayerBarricadeLibraryUI.taxBox.sizeOffset_X = 200; PlayerBarricadeLibraryUI.taxBox.sizeOffset_Y = 30; PlayerBarricadeLibraryUI.taxBox.addLabel(PlayerBarricadeLibraryUI.localization.format("Tax_Label"), ESleekSide.LEFT); PlayerBarricadeLibraryUI.taxBox.foregroundTint = ESleekTint.NONE; PlayerBarricadeLibraryUI.container.add(PlayerBarricadeLibraryUI.taxBox); PlayerBarricadeLibraryUI.netBox = new SleekBox(); PlayerBarricadeLibraryUI.netBox.positionOffset_X = -100; PlayerBarricadeLibraryUI.netBox.positionOffset_Y = 65; PlayerBarricadeLibraryUI.netBox.positionScale_X = 0.5f; PlayerBarricadeLibraryUI.netBox.positionScale_Y = 0.5f; PlayerBarricadeLibraryUI.netBox.sizeOffset_X = 200; PlayerBarricadeLibraryUI.netBox.sizeOffset_Y = 30; PlayerBarricadeLibraryUI.netBox.addLabel(PlayerBarricadeLibraryUI.localization.format("Net_Label"), ESleekSide.LEFT); PlayerBarricadeLibraryUI.netBox.foregroundTint = ESleekTint.NONE; PlayerBarricadeLibraryUI.container.add(PlayerBarricadeLibraryUI.netBox); PlayerBarricadeLibraryUI.yesButton = new SleekButton(); PlayerBarricadeLibraryUI.yesButton.positionOffset_X = -100; PlayerBarricadeLibraryUI.yesButton.positionOffset_Y = 105; PlayerBarricadeLibraryUI.yesButton.positionScale_X = 0.5f; PlayerBarricadeLibraryUI.yesButton.positionScale_Y = 0.5f; PlayerBarricadeLibraryUI.yesButton.sizeOffset_X = 95; PlayerBarricadeLibraryUI.yesButton.sizeOffset_Y = 30; PlayerBarricadeLibraryUI.yesButton.text = PlayerBarricadeLibraryUI.localization.format("Yes_Button"); PlayerBarricadeLibraryUI.yesButton.tooltip = PlayerBarricadeLibraryUI.localization.format("Yes_Button_Tooltip"); SleekButton sleekButton = PlayerBarricadeLibraryUI.yesButton; if (PlayerBarricadeLibraryUI.< > f__mg$cache2 == null) { PlayerBarricadeLibraryUI.< > f__mg$cache2 = new ClickedButton(PlayerBarricadeLibraryUI.onClickedYesButton); } sleekButton.onClickedButton = PlayerBarricadeLibraryUI.< > f__mg$cache2; PlayerBarricadeLibraryUI.container.add(PlayerBarricadeLibraryUI.yesButton); PlayerBarricadeLibraryUI.noButton = new SleekButton(); PlayerBarricadeLibraryUI.noButton.positionOffset_X = 5; PlayerBarricadeLibraryUI.noButton.positionOffset_Y = 105; PlayerBarricadeLibraryUI.noButton.positionScale_X = 0.5f; PlayerBarricadeLibraryUI.noButton.positionScale_Y = 0.5f; PlayerBarricadeLibraryUI.noButton.sizeOffset_X = 95; PlayerBarricadeLibraryUI.noButton.sizeOffset_Y = 30; PlayerBarricadeLibraryUI.noButton.text = PlayerBarricadeLibraryUI.localization.format("No_Button"); PlayerBarricadeLibraryUI.noButton.tooltip = PlayerBarricadeLibraryUI.localization.format("No_Button_Tooltip"); SleekButton sleekButton2 = PlayerBarricadeLibraryUI.noButton; if (PlayerBarricadeLibraryUI.< > f__mg$cache3 == null) { PlayerBarricadeLibraryUI.< > f__mg$cache3 = new ClickedButton(PlayerBarricadeLibraryUI.onClickedNoButton); } sleekButton2.onClickedButton = PlayerBarricadeLibraryUI.< > f__mg$cache3; PlayerBarricadeLibraryUI.container.add(PlayerBarricadeLibraryUI.noButton); }