This commit is contained in:
parent
6f9b74e18c
commit
9aa5011790
@ -98,6 +98,7 @@ CView *V=(CView*)View;
|
|||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
void CMapEditDoc::Render(CMapEditView *View)
|
void CMapEditDoc::Render(CMapEditView *View)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (View)
|
if (View)
|
||||||
Core.Render(View);
|
Core.Render(View);
|
||||||
}
|
}
|
||||||
@ -105,8 +106,10 @@ void CMapEditDoc::Render(CMapEditView *View)
|
|||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
void CMapEditDoc::UpdateAll(CMapEditView *View)
|
void CMapEditDoc::UpdateAll(CMapEditView *View)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (View)
|
if (View)
|
||||||
Core.UpdateAll();
|
Core.UpdateAll();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
@ -116,7 +119,7 @@ CPoint &XY=Core.GetCursorPos();
|
|||||||
CString XYStr;
|
CString XYStr;
|
||||||
pCmdUI->Enable();
|
pCmdUI->Enable();
|
||||||
if (XY.x!=-1 && XY.y!=-1)
|
if (XY.x!=-1 && XY.y!=-1)
|
||||||
XYStr.Format( "%d\t%d", XY.x,XY.y);
|
XYStr.Format( "%d %d", XY.x,XY.y);
|
||||||
pCmdUI->SetText(XYStr);
|
pCmdUI->SetText(XYStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,7 +147,6 @@ void CMapEditDoc::GUIChanged()
|
|||||||
{
|
{
|
||||||
Core.GUIChanged();
|
Core.GUIChanged();
|
||||||
UpdateAllViews(NULL);
|
UpdateAllViews(NULL);
|
||||||
// theApp.GetMainWnd()->Invalidate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
@ -154,25 +156,25 @@ void CMapEditDoc::GUIChanged()
|
|||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
void CMapEditDoc::LButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag)
|
void CMapEditDoc::LButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag)
|
||||||
{
|
{
|
||||||
Core.LButtonControl(View,nFlags,point,DownFlag);
|
Core.LButtonControl(View,nFlags,point,DownFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
void CMapEditDoc::MButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag)
|
void CMapEditDoc::MButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag)
|
||||||
{
|
{
|
||||||
Core.MButtonControl(View,nFlags,point,DownFlag);
|
Core.MButtonControl(View,nFlags,point,DownFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
void CMapEditDoc::RButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag)
|
void CMapEditDoc::RButtonControl(CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag)
|
||||||
{
|
{
|
||||||
Core.RButtonControl(View,nFlags,point,DownFlag);
|
Core.RButtonControl(View,nFlags,point,DownFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
void CMapEditDoc::MouseWheel(CMapEditView *View,UINT nFlags, short zDelta, CPoint &point)
|
void CMapEditDoc::MouseWheel(CMapEditView *View,UINT nFlags, short zDelta, CPoint &point)
|
||||||
{
|
{
|
||||||
Core.MouseWheel(View,nFlags,zDelta,point);
|
Core.MouseWheel(View,nFlags,zDelta,point);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************/
|
/*********************************************************************************/
|
||||||
|
@ -90,6 +90,7 @@ void CTileBank::Load(CFile *File,int Version)
|
|||||||
int ListSize;
|
int ListSize;
|
||||||
GFName RootPath=File->GetFilePath();
|
GFName RootPath=File->GetFilePath();
|
||||||
GString FilePath;
|
GString FilePath;
|
||||||
|
char FixPath[1024];
|
||||||
|
|
||||||
FilePath=RootPath.Drive();
|
FilePath=RootPath.Drive();
|
||||||
FilePath+=RootPath.Dir();
|
FilePath+=RootPath.Dir();
|
||||||
@ -117,6 +118,9 @@ GString FilePath;
|
|||||||
FullName.Append(c);
|
FullName.Append(c);
|
||||||
}
|
}
|
||||||
FullName.Upper();
|
FullName.Upper();
|
||||||
|
_fullpath( FixPath, FullName, 1024);
|
||||||
|
FullName=FixPath;
|
||||||
|
|
||||||
CheckFilename(FullName);
|
CheckFilename(FullName);
|
||||||
AddTileSet(FullName);
|
AddTileSet(FullName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user