Skip to content

Commit 4e08f7e

Browse files
committed
Create a map on startup
1 parent c74e6c3 commit 4e08f7e

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

Project/wxDevCPP/ofed.layout

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ CursorRow=1
3434
TopLine=1
3535
LeftChar=1
3636
[Editor_1]
37-
CursorCol=15
38-
CursorRow=59
39-
TopLine=1
37+
CursorCol=1
38+
CursorRow=63
39+
TopLine=3
4040
LeftChar=1
4141
[Editor_2]
4242
CursorCol=1
4343
CursorRow=455
44-
TopLine=394
44+
TopLine=415
4545
LeftChar=1
4646
[Editor_3]
4747
CursorCol=1

Source/DialogToolboxSprites.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ void cDialogToolboxSprites::CreateGUIControls()
5858
////GUI Items Creation End
5959

6060
mSpritePanel = new cPanelToolboxSprite( this );
61+
ReloadSprites();
6162

6263
}
6364

Source/FrameOFED.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ void cFrameOFED::CreateGUIControls()
135135
mDialogToolboxSprites->Show();
136136
mDialogToolboxTiles->Show();
137137
mDialogListSprites->Show();
138-
139138
}
140139

141140
void cFrameOFED::OnClose(wxCloseEvent& event)

Source/ofedApp.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ bool cFrameOFEDApp::OnInit()
1818
new cOFED();
1919

2020
g_FrameOFED = new cFrameOFED(NULL);
21+
22+
2123
SetTopWindow( g_FrameOFED );
2224
g_FrameOFED->Show();
25+
26+
g_OFED.CreateMap( eTileTypes::eTileTypes_Jungle, eTileSub_0, 20, 15 );
27+
g_FrameOFED->ReloadSprites();
28+
2329
return true;
2430
}
2531

0 commit comments

Comments
 (0)