예제 #1
0
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        CreateFrameContainer();
        CreateFramePlane();

        SetLoopMode((LoopMode)PlayerPrefs.GetInt("loopMode", 0));
    }
예제 #2
0
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        CreateSwatch(out _swatchPlane1, out _swatchTexture1, out _swatchBorderPlane1);
        CreateSwatch(out _swatchPlane2, out _swatchTexture2, out _swatchBorderPlane2);

        _swatchPlane2.transform.parent = _swatchPlane1.transform;
        _swatchPlane2.transform.localPosition = new Vector3(0.5f, -0.5f, 1.0f);

        _color1 = new Color32(0, 0, 0, 255);
        _color2 = new Color32(255, 255, 255, 255);
    }
예제 #3
0
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        CreateSwatch(out _swatchPlane1, out _swatchTexture1, out _swatchBorderPlane1);
        CreateSwatch(out _swatchPlane2, out _swatchTexture2, out _swatchBorderPlane2);

        _swatchPlane2.transform.parent        = _swatchPlane1.transform;
        _swatchPlane2.transform.localPosition = new Vector3(0.5f, -0.5f, 1.0f);

        _color1 = new Color32(0, 0, 0, 255);
        _color2 = new Color32(255, 255, 255, 255);
    }
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        CreatePatternPlane();
        CreatePatternTexture();
        RefreshPatternViewer();

        _activated = true;
        int activated = PlayerPrefs.GetInt("patternActivated", 0);
        if(activated == 0)
            TogglePatternViewer();
    }
예제 #5
0
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        pixelWidth  = PlayerPrefs.GetInt("pixelWidth", 16);
        pixelHeight = PlayerPrefs.GetInt("pixelHeight", 16);
        pixelWidth  = Mathf.Clamp(pixelWidth, 1, 128);
        pixelHeight = Mathf.Clamp(pixelHeight, 1, 128);

        CreateCanvasPlane();
        InitPixels();
        CreateCanvasTexture();
    }
예제 #6
0
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        CreatePatternPlane();
        CreatePatternTexture();
        RefreshPatternViewer();

        _activated = true;
        int activated = PlayerPrefs.GetInt("patternActivated", 0);

        if (activated == 0)
        {
            TogglePatternViewer();
        }
    }
 public void SetEditor(PixelEditorScreen editor)
 {
     _editor = editor;
 }
 void Awake()
 {
     _instance = this;
 }
예제 #9
0
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        pixelWidth = PlayerPrefs.GetInt("pixelWidth", 16);
        pixelHeight = PlayerPrefs.GetInt("pixelHeight", 16);
        pixelWidth = Mathf.Clamp(pixelWidth, 1, 128);
        pixelHeight = Mathf.Clamp(pixelHeight, 1, 128);

        CreateCanvasPlane();
        InitPixels();
        CreateCanvasTexture();
    }
예제 #10
0
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        CreatePalette();
    }
예제 #11
0
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        CreatePalette();
    }
    public void Init(PixelEditorScreen editor)
    {
        _editor = editor;

        CreateFrameContainer();
        CreateFramePlane();

        SetLoopMode((LoopMode)PlayerPrefs.GetInt("loopMode", 0));
    }
예제 #13
0
 public void SetEditor(PixelEditorScreen editor)
 {
     _editor = editor;
 }