This commit is contained in:
parent
6d6c4645dd
commit
2f68dceedd
10 changed files with 106 additions and 61 deletions
|
@ -23,6 +23,8 @@ BEGIN_MESSAGE_MAP(CMapEditDoc, CDocument)
|
|||
ON_UPDATE_COMMAND_UI(ID_INDICATOR_CURSORXY, OnStatusCursorXY)
|
||||
ON_COMMAND(ID_EXPORT_AGB, OnExportAgb)
|
||||
ON_COMMAND(ID_EXPORT_PSX, OnExportPsx)
|
||||
ON_COMMAND(ID_ZOOM_IN, OnZoomIn)
|
||||
ON_COMMAND(ID_ZOOM_OUT, OnZoomOut)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
@ -300,6 +302,20 @@ CMapSizeDlg Dlg;
|
|||
Core.SetMapSize(View,Dlg.m_Width,Dlg.m_Height);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
void CMapEditDoc::OnZoomIn()
|
||||
{
|
||||
Core.Zoom(NULL,+1.0f);
|
||||
UpdateAllViews(NULL);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
void CMapEditDoc::OnZoomOut()
|
||||
{
|
||||
Core.Zoom(NULL,-1.0f);
|
||||
UpdateAllViews(NULL);
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
void CMapEditDoc::Toggle2d3d(CMapEditView *View)
|
||||
{
|
||||
|
@ -311,4 +327,5 @@ void CMapEditDoc::FocusView()
|
|||
{
|
||||
theApp.GetMainWnd()->SetFocus(); // Put control back to Window :o)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue