/// <inheritdoc /> /// <summary> /// </summary> /// <param name="scrollContainer"></param> /// <param name="layerCompositor"></param> /// <param name="item"></param> /// <param name="index"></param> public EditorDrawableLayer(EditorLayerScrollContainer scrollContainer, EditorLayerCompositor layerCompositor, EditorLayerInfo item, int index) : base(scrollContainer, item, index) { LayerCompositor = layerCompositor; Tint = Color.White; Alpha = layerCompositor.SelectedLayerIndex.Value == index ? 0.45f : 0; Size = new ScalableVector2(LayerCompositor.Width, HEIGHT); CreateVisibilityCheckbox(); CreateEditNamePencil(); CreateLayerName(); CreateSelectLayerButton(); }
/// <summary> /// </summary> private void CreateScrollContainer() => ScrollContainer = new EditorLayerScrollContainer(this, int.MaxValue, 0, new ScalableVector2(Width, Height - HeaderBackground.Height)) { Parent = this, Y = HeaderBackground.Height, };