File tree Expand file tree Collapse file tree 3 files changed +1
-35
lines changed
MapCreationTool/MapCreationTool Expand file tree Collapse file tree 3 files changed +1
-35
lines changed Original file line number Diff line number Diff line change 117
117
<Content Include =" ..\..\Map-Blueprint\mapcontainer.sdd\mapoptions.lua" Link =" Tools\Map-Blueprint\mapcontainer.sdd\mapoptions.lua" >
118
118
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
119
119
</Content >
120
- <Content Include =" ..\..\Map-Blueprint\README" Link =" Tools\Map-Blueprint\README" >
121
- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
122
- </Content >
123
120
<Content Include =" ..\..\springrts_smf_compiler\pymapconv.exe" Link =" Tools\PyMapConv\pymapconv.exe" >
124
121
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
125
122
</Content >
138
135
</ItemGroup >
139
136
140
137
<ItemGroup >
141
- <None Update =" mapinfo.lua" >
142
- <CopyToOutputDirectory >Always</CopyToOutputDirectory >
143
- </None >
144
138
<None Update =" Rendering\heightmap-Flat.bmp" >
145
139
<CopyToOutputDirectory >Always</CopyToOutputDirectory >
146
140
</None >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public static ProjectSettings CreateDefault(MapPathInformation pathInfo)
66
66
HeightMapName = Path . Combine ( pathInfo . mapPath , "height.png" ) ,
67
67
GrassMapName = Path . Combine ( pathInfo . mapPath , "grass.bmp" ) ,
68
68
MetalMapName = Path . Combine ( pathInfo . mapPath , "metal.bmp" ) ,
69
- OutSmfFilePath = Path . Combine ( pathInfo . mapPath , $@ "{ pathInfo . mapName } .smf") ,
69
+ OutSmfFilePath = Path . Combine ( pathInfo . mapPath , $@ "maps\ { pathInfo . mapName } .smf") ,
70
70
GeoventDecalPath = geoventPath ,
71
71
MinHeight = - 50 ,
72
72
MaxHeight = 200 ,
Original file line number Diff line number Diff line change @@ -34,34 +34,6 @@ public MainWindow()
34
34
{
35
35
InitializeComponent ( ) ;
36
36
DataContext = ViewModel = new MainWindowViewModel ( ) ;
37
-
38
-
39
- // Just for testing
40
- //try
41
- //{
42
- // TestLuaEditor();
43
- //}
44
- //catch (Exception e)
45
- //{
46
-
47
- //}
48
- }
49
-
50
- private void TestLuaEditor ( )
51
- {
52
- LuaEditor editor = new LuaEditor ( ) ;
53
- editor . Load ( @"mapinfo.lua" ) ;
54
-
55
- int ? test1 = editor . GetValue < int > ( "maphardness" ) ;
56
- bool ? test2 = editor . GetValue < bool > ( "notDeformable" ) ;
57
- string test3 = editor . GetValue < string > ( "name" ) ;
58
- double test4 = editor . GetValue < double > ( "extractorRadius" ) ;
59
-
60
- editor . SetValue ( "maphardness" , 99 ) ;
61
- editor . SetValue ( "notDeformable" , true ) ;
62
- editor . SetValue ( "name" , "NewName" ) ;
63
- editor . SetValue ( "extractorRadius" , 441.293 ) ;
64
- editor . Save ( "mapinfoTest.lua" ) ;
65
37
}
66
38
67
39
private void ctrlStart_OnMapOpened ( object sender , MapPathInformation mapPathInfo )
You can’t perform that action at this time.
0 commit comments