(empty log message)
@@ -1,16 +1,19 @@ | ||
1 | 1 | 本アーカイブは、FreeTrain EX A-versionのアルファ版です。 |
2 | 2 | |
3 | -本アーカイブのバージョンはα3.1.1.3です。 | |
4 | -リリース日 2010/07/22 | |
3 | +本アーカイブのバージョンはα3.1.1.4です。 | |
4 | +リリース日 2010/08/20 | |
5 | 5 | |
6 | 6 | ◎既知の不具合 |
7 | 7 | ・時間進行軸の値がセーブデータに保存されない |
8 | 8 | ・列車名を表示すると周囲に文字の消え残りゴミが出る |
9 | - (駅情報ウィンドウを閉じると問題ありません) | |
10 | 9 | |
11 | 10 | その他あれば開発スレでご報告ください。 |
12 | 11 | |
13 | 12 | |
13 | +○3.1.1.3からの変更点 | |
14 | +・レジストリを一切使用しないようにした | |
15 | +・起動に失敗することがあったのを修正 | |
16 | + | |
14 | 17 | ○3.1.1.2からの変更点 |
15 | 18 | ・駅に接続するホームの半径を8ボクセルに拡大 |
16 | 19 |
@@ -21,7 +21,7 @@ | ||
21 | 21 | // 下にあるように、'*' を使って、すべての値を指定するか、 |
22 | 22 | // ビルドおよびリビジョン番号を既定値にすることができます : |
23 | 23 | |
24 | -[assembly: AssemblyVersion("3.1.1.3")] | |
24 | +[assembly: AssemblyVersion("3.1.1.4")] | |
25 | 25 | |
26 | 26 | // |
27 | 27 | // アセンブリに署名するには、使用するキーを指定しなければなりません。 |
@@ -48,23 +48,23 @@ | ||
48 | 48 | private static readonly SoundEffect thudSound = new RepeatableSoundEffectImpl( |
49 | 49 | ResourceUtil.loadSystemSound("train.wav"),1,300); |
50 | 50 | |
51 | + // riorio 2010.03.31 | |
52 | + public static long[][] SecondsPerVoxelBank = new long [][] { // Train Speed at Version3 | |
53 | + new long [] { 1 , 2 , 3 , 4 , 5 , 6 }, // 3.0.0.4 | |
54 | + new long [] { 2 , 4 , 6 , 8 , 10 , 12 }, // 3.0.0.3 | |
55 | + new long [] { 3 , 6 , 9 , 12 , 15 , 18 }, | |
56 | + new long [] { 4 , 8 , 12 , 16 , 20 , 24 }, | |
57 | + new long [] { 5 , 10 , 15 , 20 , 25 , 30 }, | |
58 | + new long [] { 60 , 120 , 180 , 240 , 300 , 360 } // Train Speed at Version1,2 conpatible | |
59 | + }; | |
60 | + | |
51 | 61 | // riorio 2010.03.22 |
52 | - public static long[] SecondsPerVoxel = // Train speed need for seconds on 1 Voxel | |
53 | - { | |
54 | - 1 , 2 , 3 , 4 , 5 , 6 | |
55 | - }; | |
56 | - // riorio 2010.03.31 | |
57 | - public static long[][] SecondsPerVoxelBank = new long [][] { // Train Speed at Version3 | |
58 | - new long [] { 1 , 2 , 3 , 4 , 5 , 6 }, // 3.0.0.4 | |
59 | - new long [] { 2 , 4 , 6 , 8 , 10 , 12 }, // 3.0.0.3 | |
60 | - new long [] { 3 , 6 , 9 , 12 , 15 , 18 }, | |
61 | - new long [] { 4 , 8 , 12 , 16 , 20 , 24 }, | |
62 | - new long [] { 5 , 10 , 15 , 20 , 25 , 30 }, | |
63 | - new long [] { 60 , 120 , 180 , 240 , 300 , 360 } // Train Speed at Version1,2 conpatible | |
64 | - }; | |
62 | + public static long[] SecondsPerVoxel = // Train speed need for seconds on 1 Voxel | |
63 | + SecondsPerVoxelBank[ Core.options.secondPerVoxelIndex ]; | |
65 | 64 | |
66 | - public static int SecondsPerVoxelBankKinds = 6; | |
65 | + public static int SecondsPerVoxelBankKinds = 6; | |
67 | 66 | |
67 | + | |
68 | 68 | /// <summary> |
69 | 69 | /// Creates a new train and assigns it to a group. |
70 | 70 | /// </summary> |
@@ -1,3 +1,4 @@ | ||
1 | +// 2010.05.29 riorio add context menu last30days/last12months | |
1 | 2 | // 2010.05.11 riorio add Yesterday/Last month/Last year |
2 | 3 | using System; |
3 | 4 | using System.Diagnostics; |
@@ -157,6 +158,7 @@ | ||
157 | 158 | |
158 | 159 | #region GUI components |
159 | 160 | private System.Windows.Forms.MenuItem menuItem_Graph; |
161 | + private System.Windows.Forms.MenuItem menuItem_DaysAgo; | |
160 | 162 | private System.Windows.Forms.MenuItem menuItem_MonthsAgo; |
161 | 163 | private System.Windows.Forms.FontDialog fontDialog; |
162 | 164 | private System.Windows.Forms.Label label1; |
@@ -197,6 +199,7 @@ | ||
197 | 199 | this.menuItem1 = new System.Windows.Forms.MenuItem(); |
198 | 200 | this.menuItem2 = new System.Windows.Forms.MenuItem(); |
199 | 201 | this.menuItem_Graph = new System.Windows.Forms.MenuItem(); |
202 | + this.menuItem_DaysAgo = new System.Windows.Forms.MenuItem(); | |
200 | 203 | this.menuItem_MonthsAgo = new System.Windows.Forms.MenuItem(); |
201 | 204 | this.menuItem4 = new System.Windows.Forms.MenuItem(); |
202 | 205 | this.menuItem3 = new System.Windows.Forms.MenuItem(); |
@@ -235,6 +238,7 @@ | ||
235 | 238 | this.menuItem1, |
236 | 239 | this.menuItem2, |
237 | 240 | this.menuItem_Graph, |
241 | + this.menuItem_DaysAgo, | |
238 | 242 | this.menuItem_MonthsAgo, |
239 | 243 | this.menuItem4, |
240 | 244 | this.menuItem3}); |
@@ -258,18 +262,24 @@ | ||
258 | 262 | // |
259 | 263 | // menuItem_MonthsAgo |
260 | 264 | // |
261 | - this.menuItem_MonthsAgo.Index = 3; | |
265 | + this.menuItem_DaysAgo.Index = 3; | |
266 | + this.menuItem_DaysAgo.Text = "過去30日"; | |
267 | + this.menuItem_DaysAgo.Click += new System.EventHandler(this.menuItem_DaysAgo_Click); | |
268 | + // | |
269 | + // menuItem_MonthsAgo | |
270 | + // | |
271 | + this.menuItem_MonthsAgo.Index = 4; | |
262 | 272 | this.menuItem_MonthsAgo.Text = "過去12ヶ月"; |
263 | 273 | this.menuItem_MonthsAgo.Click += new System.EventHandler(this.menuItem_MonthsAgo_Click); |
264 | 274 | // |
265 | 275 | // menuItem4 |
266 | 276 | // |
267 | - this.menuItem4.Index = 4; | |
277 | + this.menuItem4.Index = 5; | |
268 | 278 | this.menuItem4.Text = "-"; |
269 | 279 | // |
270 | 280 | // menuItem3 |
271 | 281 | // |
272 | - this.menuItem3.Index = 5; | |
282 | + this.menuItem3.Index = 6; | |
273 | 283 | this.menuItem3.Text = "閉じる(&C)"; |
274 | 284 | // |
275 | 285 | // liquidAsset |
@@ -538,10 +548,15 @@ | ||
538 | 548 | |
539 | 549 | private void menuItem_MonthsAgo_Click(object sender, EventArgs e) |
540 | 550 | { |
541 | - new HistoryViewMonths(); | |
551 | + new HistoryViewMonths().Show(this); | |
542 | 552 | } |
543 | 553 | |
554 | + private void menuItem_DaysAgo_Click(object sender, EventArgs e) | |
555 | + { | |
556 | + new HistoryViewDays().Show(this); | |
557 | + } | |
544 | 558 | |
559 | + | |
545 | 560 | |
546 | 561 | } |
547 | 562 | } |
@@ -208,8 +208,6 @@ | ||
208 | 208 | { |
209 | 209 | GlobalOptions opt = (GlobalOptions)base.load(); |
210 | 210 | DirectDraw.SurfeceAllocation = opt.SurfaceAlloc; |
211 | - freetrain.world.rail.Train.SecondsPerVoxel | |
212 | - = freetrain.world.rail.Train.SecondsPerVoxelBank[ opt.secondPerVoxelIndex ]; | |
213 | 211 | return opt; |
214 | 212 | } |
215 | 213 |
@@ -161,7 +161,7 @@ | ||
161 | 161 | |
162 | 162 | // persist window state |
163 | 163 | new WindowStateTracker( this, |
164 | - new RegistryPersistentWindowState( Core.userRegistry.CreateSubKey("mainWindowState") ) ); | |
164 | + new XmlPersistentWindowState( Core.installationDirectory + "\\main_window_state.xml" )); | |
165 | 165 | |
166 | 166 | // spawn file drop handler |
167 | 167 | fileDropHandler = new FileDropHandler(this,new FileDropEventHandler(onFileDropped)); |
@@ -18,7 +18,7 @@ | ||
18 | 18 | { |
19 | 19 | private Core() {} // no instantiation |
20 | 20 | |
21 | - | |
21 | +/* | |
22 | 22 | /// <summary> |
23 | 23 | /// Registry key where the per-user application setting |
24 | 24 | /// should be stored. |
@@ -28,16 +28,17 @@ | ||
28 | 28 | return Registry.CurrentUser.CreateSubKey(@"Software\FreeTrain"); |
29 | 29 | } |
30 | 30 | } |
31 | - | |
31 | +*/ | |
32 | + | |
32 | 33 | /// <summary> |
33 | 34 | /// Installation directory of the FreeTrain framework. |
34 | 35 | /// </summary> |
35 | 36 | public static string installationDirectory { |
36 | 37 | get { |
37 | - return (string)userRegistry.GetValue("installationDirectory"); | |
38 | + return _installationDirectory; | |
38 | 39 | } |
39 | 40 | set { |
40 | - userRegistry.SetValue("installationDirectory",value); | |
41 | + _installationDirectory = value; | |
41 | 42 | } |
42 | 43 | } |
43 | 44 |
@@ -48,7 +49,8 @@ | ||
48 | 49 | /// <summary> Global options. </summary> |
49 | 50 | public static readonly GlobalOptions options = new GlobalOptions().load(); |
50 | 51 | public static readonly FontOptions fontoptions = new FontOptions().load( options ); |
51 | - | |
52 | + | |
53 | + | |
52 | 54 | /// <summary> Game mode </summary> |
53 | 55 | public static bool isConstructionMode { |
54 | 56 | get { |
@@ -72,6 +74,7 @@ | ||
72 | 74 | private static SoundEffectManager _soundEffectManager; |
73 | 75 | private static BGMManager _bgmManager; |
74 | 76 | private static bool _isConstructionMode; |
77 | + private static string _installationDirectory; | |
75 | 78 | |
76 | 79 | |
77 | 80 |