Revision | 607 (tree) |
---|---|
Zeit | 2010-11-24 19:04:27 |
Autor | massa_senohito |
(empty log message)
@@ -40,7 +40,10 @@ | ||
40 | 40 | get; |
41 | 41 | set; |
42 | 42 | } |
43 | - | |
43 | + public string BgmPath { | |
44 | + get; | |
45 | + set; | |
46 | + } | |
44 | 47 | public void Create( string path , int chipSize , int row , int column ) { |
45 | 48 | SetPath( path ); |
46 | 49 | this.ChipSize = chipSize; |
@@ -21,6 +21,8 @@ | ||
21 | 21 | editor.Create(); |
22 | 22 | stageNotify.Create( path , chipSize , mapRowCount , mapColumnCount ); |
23 | 23 | |
24 | + stageNotify.BgmPath = stageData.BgmPath; | |
25 | + | |
24 | 26 | foreach( var layerData in stageData.Layers ) { |
25 | 27 | var layerNotify = LayerInstance.Add( layerData.Name ); |
26 | 28 | foreach( var chipData in layerData.Chips ) { |
@@ -166,8 +166,10 @@ | ||
166 | 166 | soundfile = MusicPath.Text; |
167 | 167 | } |
168 | 168 | |
169 | + public void ChangeMusicPath(string path) { | |
170 | + MusicPath.Text = path; | |
171 | + } | |
169 | 172 | |
170 | - | |
171 | 173 | } |
172 | 174 | |
173 | 175 | public class LayerTabPage : TabPage |
@@ -30,7 +30,7 @@ | ||
30 | 30 | } |
31 | 31 | LayerInstance.SetCurrentLayer(layer); |
32 | 32 | }; |
33 | - | |
33 | + layersetControl.ChangeMusicPath(stage.BgmPath); | |
34 | 34 | stage.PropertyChanged += layersetControl.MapData_PropertyChanged; |
35 | 35 | } |
36 | 36 | } |