예제 #1
0
    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();
        }
    }
예제 #2
0
 public void OnShowButtonClicked()
 {
     foreach (var bar in HidableTabs)
     {
         bar.Show();
     }
     ShowIcon.Hide();
 }
예제 #3
0
    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();
    }
예제 #5
0
    public override void Test()
    {
        if (flag)
        {
            Hidable.Show();
        }
        else
        {
            Hidable.Hide();
        }

        flag = !flag;
    }
예제 #6
0
    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());
 }
예제 #8
0
 public void Confirm()
 {
     callback?.Invoke();
     hidable.Hide();
 }