public void previewBackground(EditorBackground background) { _backgroundRenderer.background = background; // TEMPORARY -- Set the background in the level view _view.controller.editorController.levelController.view.backgroundRenderer.background = background; }
public override Background clone() { EditorBackground copy = new EditorBackground(data); copy.loadTextures(); return copy; }
override public Background clone() { EditorBackground copy = new EditorBackground(data); copy.loadTextures(); return(copy); }
// Add new background private void addBackgroundButton_Click(object sender, EventArgs e) { CreateResourceView createResourceView = new CreateResourceView(); if (createResourceView.ShowDialog() == DialogResult.OK) { EditorBackground background = new EditorBackground(createResourceView.uid); _controller.backgrounds.Add(background); } }