public void OnDrawingIconClicked(int index) { MagicToolHidable.Hide(); switch (index) { case 0: CurrentToolType = ToolType.PencilPaintTool; break; case 1: CurrentToolType = ToolType.BrushPaintTool; break; case 2: CurrentToolType = ToolType.EraserTool; break; case 3: if (((int)CurrentToolType & (int)ToolType.ToolFamilyMask) == (int)ToolType.MagicTool) { MagicToolHidable.Show(); } CurrentToolType = MagicToolType; break; case 4: CurrentToolType = ToolType.TransTool; break; default: throw new System.NotImplementedException(); } }
public void OnShowButtonClicked() { foreach (var bar in HidableTabs) { bar.Show(); } ShowIcon.Hide(); }
public void OnDrawingPanelClicked() { selectedDrawing = null; foreach (var d in drawings) { d.Selected = false; } CopyButton.Hide(); DeleteButton.Hide(); }
public void OnCardReleased(ColorCardController colorCard) { DeleteIconHidable.Hide(); if (colorCard.DeleteFlag) { colorCards.Remove(colorCard); } ColorSwatchFitter.Fit(colorCards.ToArray()); ColorTabController.Fit(); }
public override void Test() { if (flag) { Hidable.Show(); } else { Hidable.Hide(); } flag = !flag; }
public void OnLayerReleased(LayerController layer) { DeleteIconHidable.Hide(); if (layer.DeleteFlag) { layers.Remove(layer); if (OnLayerDeletedEvent != null) { OnLayerDeletedEvent(layer); } } LayerTabFitter.Fit(layers.ToArray()); if (OnLayerChangedEvent != null) { OnLayerChangedEvent(layer); } }
public void HideOverlay() { OverlayHidable.Hide(); StartCoroutine(DeactivateHandler()); }
public void Confirm() { callback?.Invoke(); hidable.Hide(); }