// Token: 0x06001386 RID: 4998 RVA: 0x0007CF90 File Offset: 0x0007B390 protected virtual void handleBranchClimbButtonClicked(Sleek2ImageButton button) { TranslationBranchButton translationBranchButton = button.parent as TranslationBranchButton; if (translationBranchButton == null || translationBranchButton.branch == null) { return; } this.climbBranch(translationBranchButton.branch); }
// Token: 0x06001385 RID: 4997 RVA: 0x0007CF48 File Offset: 0x0007B348 protected virtual void handleNamespaceButtonClicked(Sleek2ImageButton button) { TranslationNamespaceButton translationNamespaceButton = button as TranslationNamespaceButton; if (translationNamespaceButton == null || translationNamespaceButton.translation == null || translationNamespaceButton.translation.tree == null) { return; } this.climbBranch(translationNamespaceButton.translation.tree); }
// Token: 0x06001080 RID: 4224 RVA: 0x0006CC84 File Offset: 0x0006B084 protected void handleAssetButtonClicked(Sleek2ImageButton button) { Asset asset = (button as AssetBrowserAssetButton).asset; if (asset != null) { asset.clearHash(); InspectorWindow.inspect(asset); } }
protected virtual void handleBrowseButtonClicked(Sleek2ImageButton button) { AssetReference <T> reference = (AssetReference <T>)base.inspectable.value; Asset asset = Assets.find <T>(reference); if (asset != null) { AssetBrowserWindow.browse(asset.directory); } }
// Token: 0x0600124D RID: 4685 RVA: 0x000753B4 File Offset: 0x000737B4 protected void handleButtonClicked(Sleek2ImageButton button) { int num = (int)base.inspectable.value; num++; if (num >= Enum.GetValues(base.inspectable.type).Length) { num = 0; } base.inspectable.value = num; }
// Token: 0x060011DA RID: 4570 RVA: 0x00073F08 File Offset: 0x00072308 protected override void handleBrowseButtonClicked(Sleek2ImageButton button) { InspectableDirectoryPath inspectableDirectoryPath = (InspectableDirectoryPath)base.inspectable.value; FileBrowserContainer fileBrowserContainer = DevkitWindowManager.addContainer <FileBrowserContainer>(); fileBrowserContainer.transform.anchorMin = new Vector2(0.25f, 0.25f); fileBrowserContainer.transform.anchorMax = new Vector2(0.75f, 0.75f); fileBrowserContainer.mode = EFileBrowserMode.DIRECTORY; fileBrowserContainer.searchPattern = null; fileBrowserContainer.selected = new FileBrowserSelectedHandler(this.handlePathSelected); }
protected void handleDirectoryButtonClicked(Sleek2ImageButton button) { string currentFilePath = (button as FileBrowserDirectoryButton).directory.ToString(); if (this.mode == EFileBrowserMode.DIRECTORY) { this.currentFilePath = currentFilePath; } FileBrowserContainer.currentDirectoryPath = currentFilePath; this.browse(FileBrowserContainer.currentDirectoryPath); }
// Token: 0x06001132 RID: 4402 RVA: 0x00070FEC File Offset: 0x0006F3EC protected void handleItemButtonClicked(Sleek2ImageButton button) { IDevkitHierarchyItem item = (button as HierarchyItemButton).item; InspectorWindow.inspect(item); Component component = item as Component; if (component != null) { DevkitSelectionManager.select(new DevkitSelection(component.gameObject, component.GetComponent <Collider>())); } }
protected void handleAssetButtonClicked(Sleek2ImageButton button) { ObjectAsset asset = (button as ObjectBrowserAssetButton).asset; if (asset == null) { return; } DevkitSelectionToolObjectInstantiationInfo devkitSelectionToolObjectInstantiationInfo = new DevkitSelectionToolObjectInstantiationInfo(); devkitSelectionToolObjectInstantiationInfo.asset = asset; devkitSelectionToolObjectInstantiationInfo.rotation = Quaternion.Euler(-90f, 0f, 0f); DevkitSelectionToolOptions.instance.instantiationInfo = devkitSelectionToolObjectInstantiationInfo; }
protected virtual void handleEnumButtonClicked(Sleek2ImageButton button) { int enumValue = (button as Sleek2DropdownEnumToolbarButton).enumValue; int num = (int)base.inspectable.value; if ((num & enumValue) == enumValue) { num &= ~enumValue; } else { num |= enumValue; } base.inspectable.value = num; }
protected virtual void handleUpgradeButtonClicked(Sleek2ImageButton button) { for (byte b = 0; b < Regions.WORLD_SIZE; b += 1) { for (byte b2 = 0; b2 < Regions.WORLD_SIZE; b2 += 1) { foreach (LevelObject levelObject in LevelObjects.objects[(int)b, (int)b2]) { if (levelObject.placementOrigin == ELevelObjectPlacementOrigin.MANUAL) { LevelObjects.addDevkitObject(levelObject.GUID, levelObject.transform.position, levelObject.transform.rotation, levelObject.transform.localScale, levelObject.placementOrigin); } } } } }
// Token: 0x060011B5 RID: 4533 RVA: 0x00072EB4 File Offset: 0x000712B4 protected virtual void handleAddButtonClicked(Sleek2ImageButton button) { if (this.inspectable == null || this.inspectable.canInspectorAdd) { object obj = Activator.CreateInstance(this.listType); this.list.Add(obj); if (this.inspectable == null) { this.refresh(); } else { this.inspectable.inspectorAdd(obj); } } }
// Token: 0x060011B6 RID: 4534 RVA: 0x00072F18 File Offset: 0x00071318 protected virtual void handleRemoveButtonClicked(Sleek2ImageButton button) { if (this.inspectable == null || this.inspectable.canInspectorAdd) { int index = (button.parent.parent as Sleek2InspectorFoldoutList).index; object instance = this.list[index]; this.list.RemoveAt(index); if (this.inspectable == null) { this.refresh(); } else { this.inspectable.inspectorRemove(instance); } } }
// Token: 0x06001384 RID: 4996 RVA: 0x0007CEE0 File Offset: 0x0007B2E0 protected virtual void handleAddBranchButtonClicked(Sleek2ImageButton button) { if (this.branch == null) { return; } if (this.branch.leaf != null) { return; } if (this.branch.branches == null) { this.branch.addBranches(); } TranslationBranch translationBranch = this.branch.addBranch("new branch"); translationBranch.addBranches(); this.climbBranch(this.branch); }
protected virtual void handleAddButtonClicked(Sleek2ImageButton button) { base.leaf = Translator.addLeaf(this.reference); if (base.leaf == null) { return; } base.leaf.branch.keyChanged += this.handleKeyChanged; base.leaf.versionChanged += this.handleVersionChanged; base.leaf.translation.isDirty = true; base.climbButton.isVisible = true; base.keyField.isVisible = true; base.textField.isVisible = true; base.versionField.isVisible = true; this.addButton.isVisible = false; this.referenceButton.isVisible = false; this.refreshKey(); this.refreshFields(); this.refreshVersion(); }
// Token: 0x0600139D RID: 5021 RVA: 0x0007D6AC File Offset: 0x0007BAAC protected void handleTypeButtonClicked(Sleek2ImageButton button) { Type type = (button as TypeBrowserTypeButton).type; if (type == null) { return; } DevkitSelectionToolTypeInstantiationInfo devkitSelectionToolTypeInstantiationInfo = new DevkitSelectionToolTypeInstantiationInfo(); devkitSelectionToolTypeInstantiationInfo.type = type; if (typeof(IDevkitHierarchyAutoSpawnable).IsAssignableFrom(type)) { devkitSelectionToolTypeInstantiationInfo.instantiate(); } else { DevkitSelectionToolOptions.instance.instantiationInfo = devkitSelectionToolTypeInstantiationInfo; } }
protected virtual void handleHeightmapAdjustButtonClicked(Sleek2ImageButton button) { DevkitLandscapeTool.heightmapMode = DevkitLandscapeTool.EDevkitLandscapeToolHeightmapMode.ADJUST; }
protected virtual void handleHeightmapFlattenButtonClicked(Sleek2ImageButton button) { DevkitLandscapeTool.heightmapMode = DevkitLandscapeTool.EDevkitLandscapeToolHeightmapMode.FLATTEN; }
// Token: 0x06001389 RID: 5001 RVA: 0x0007CFDB File Offset: 0x0007B3DB protected virtual void handleRefreshDeltaButtonClicked(Sleek2ImageButton button) { this.refreshDelta(); }
// Token: 0x06001388 RID: 5000 RVA: 0x0007CFD3 File Offset: 0x0007B3D3 protected virtual void handleRefreshMissesButtonClicked(Sleek2ImageButton button) { this.refreshMisses(); }
// Token: 0x06001387 RID: 4999 RVA: 0x0007CFC7 File Offset: 0x0007B3C7 protected virtual void handleClearMissesButtonClicked(Sleek2ImageButton button) { Translator.misses.Clear(); }
protected virtual void handleHeightmapSmoothButtonClicked(Sleek2ImageButton button) { DevkitLandscapeTool.heightmapMode = DevkitLandscapeTool.EDevkitLandscapeToolHeightmapMode.SMOOTH; }
// Token: 0x06001381 RID: 4993 RVA: 0x0007CE2F File Offset: 0x0007B22F protected virtual void handleDeltaButtonClicked(Sleek2ImageButton button) { this.changeMode(false, false, true); this.refreshDelta(); }
// Token: 0x06001380 RID: 4992 RVA: 0x0007CE1E File Offset: 0x0007B21E protected virtual void handleMissesButtonClicked(Sleek2ImageButton button) { this.changeMode(false, true, false); this.refreshMisses(); }
protected virtual void handleButtonClicked(Sleek2ImageButton button) { this.isOpen = !this.isOpen; }
protected virtual void handleMaterialAssetButtonClicked(Sleek2ImageButton button) { DevkitLandscapeTool.splatmapMaterialTarget = (button as LandscapeToolMaterialAssetButton).asset.getReferenceTo <LandscapeMaterialAsset>(); }
// Token: 0x060012F1 RID: 4849 RVA: 0x000793A0 File Offset: 0x000777A0 protected void handleCancelButtonClicked(Sleek2ImageButton button) { DevkitWindowManager.removeContainer(this); }
protected virtual void handleHeightmapRampButtonClicked(Sleek2ImageButton button) { DevkitLandscapeTool.heightmapMode = DevkitLandscapeTool.EDevkitLandscapeToolHeightmapMode.RAMP; }
// Token: 0x06001082 RID: 4226 RVA: 0x0006CCC1 File Offset: 0x0006B0C1 protected void handleDirectoryButtonClicked(Sleek2ImageButton button) { AssetBrowserWindow.browse((button as AssetBrowserDirectoryButton).directory); }
protected virtual void handleOutputButtonClicked(Sleek2ImageButton button) { this.output(); }