MegaMan.LevelEditor.StageProp.LoadStage C# (CSharp) Метод

LoadStage() приватный Метод

private LoadStage ( StageDocument stage ) : void
stage StageDocument
Результат void
        private void LoadStage(StageDocument stage)
        {
            this.stage = stage;
            this.Text = stage.Name + " Properties";
            nameField.Text = stage.Name;
            tilesetField.Text = stage.Tileset.FilePath;
            if (stage.MusicIntro != null) introField.Text = stage.MusicIntro.Absolute;
            if (stage.MusicLoop != null) loopField.Text = stage.MusicLoop.Absolute;
        }

Usage Example

Пример #1
0
 public static void EditStage(StageDocument stage)
 {
     var form = new StageProp();
     form.project = stage.Project;
     form.LoadStage(stage);
     form.Show();
 }
All Usage Examples Of MegaMan.LevelEditor.StageProp::LoadStage