Example #1
0
    IEnumerator WelcomeSceneHandler()
    {
        yield return(new WaitForSeconds(0.5f));

        DebugConsole.Log(Application.version);
        DebugConsole.Log(Screen.currentResolution);
        DebugConsole.Log(SystemInfo.operatingSystem);
        DebugConsole.Log();
        DebugConsole.Log(SystemInfo.systemMemorySize + "MB");
        DebugConsole.Log(SystemInfo.deviceModel);
        DebugConsole.Log();
        DebugConsole.Log(SystemInfo.processorCount + " x " + SystemInfo.processorFrequency + "MHz on " + SystemInfo.processorType);
        DebugConsole.Log();
        DebugConsole.Log(SystemInfo.graphicsMemorySize + "MB");
        DebugConsole.Log(SystemInfo.graphicsDeviceName + " (" + SystemInfo.graphicsDeviceVendor + ")");
        DebugConsole.Log(SystemInfo.graphicsDeviceType + " on " + SystemInfo.graphicsDeviceVersion);
        DebugConsole.Log();
        DebugConsole.Log(SystemInfo.npotSupport + " NPOT Support");
        DebugConsole.Log(SystemInfo.supportsImageEffects + " Image Effect Support");

        yield return(new WaitForSeconds(Delay));

        Overlay.Show();
        yield return(new WaitForSeconds(0.5f));

        if (DataLayer.HasUnsavedFile())
        {
            App.CurrentDrawingFile = DataLayer.LoadUnsavedFile();
            App.LoadScene(App.DrawingSceneIndex);
        }
        else
        {
            App.LoadScene(App.GallerySceneIndex);
        }
    }
Example #2
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();
        }
    }
Example #3
0
    IEnumerator SceneTransitionHandler()
    {
        SceneOverlay.Show();
        yield return(new WaitForSeconds(0.5f));

        App.LoadScene(App.DrawingSceneIndex);
    }
Example #4
0
    public void OnHideButtonClicked()
    {
        PackAll();

        foreach (var bar in HidableTabs)
        {
            bar.Hide();
        }
        ShowIcon.Show();
    }
Example #5
0
    public override void Test()
    {
        if (flag)
        {
            Hidable.Show();
        }
        else
        {
            Hidable.Hide();
        }

        flag = !flag;
    }
Example #6
0
    public void OnDrawingClicked(DrawingController drawing)
    {
        CopyButton.Show();
        DeleteButton.Show();

        if (drawing == selectedDrawing)
        {
            App.CurrentDrawingFile = drawing.DrawingFile;
            App.LoadScene(App.DrawingSceneIndex);
        }
        else
        {
            selectedDrawing = drawing;
            foreach (var d in drawings)
            {
                d.Selected = d == selectedDrawing;
            }
        }
    }
Example #7
0
 public void OnLayerPressed(LayerController layer)
 {
     DeleteIconHidable.Show();
 }
 public void OnCardPressed(ColorCardController colorCard)
 {
     DeleteIconHidable.Show();
 }
 public void ShowOverlay()
 {
     gameObject.SetActive(true);
     OverlayHidable.Show();
 }
Example #10
0
 public void ShowPopup(Hidable popupHidable)
 {
     popupHidable.Show();
     popupHidables.AddFirst(popupHidable);
     Overlay.ShowOverlay();
 }