예제 #1
0
    public Layer(LayerFile file, Short2 size, LayerController layerUi)
    {
        this.size    = size;
        this.layerUi = layerUi;

        layerUi.Index = file.Index;
        if (file.Hided)
        {
            layerUi.OnHideToggleClicked();
        }
        if (file.Locked)
        {
            layerUi.OnLockToggleClicked();
        }
//		layerUi.Hided = file.Hided;
//		layerUi.Locked = file.Locked;
        content = file.Content;
//		foreach (var pair in file.Content)
//			content.Add(pair.k, pair.c);

        RenderLayer();
    }