This commit is contained in:
parent
94be656b68
commit
569ce5a865
9 changed files with 136 additions and 21 deletions
|
@ -18,6 +18,8 @@
|
|||
#include "Core.h"
|
||||
#include "Layer.h"
|
||||
#include "LayerTile.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
|
@ -182,13 +184,13 @@ int ListSize=Layer.size();
|
|||
Layer[ActiveLayer]->FindCursorPos(this,View,GetCam(),CurrentMousePos);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
void CCore::RenderTileView(CMapEditView *View)
|
||||
{
|
||||
Vec &ThisCam=GetCam();
|
||||
|
||||
TileBank.RenderSet(this,ThisCam,Is3dFlag);
|
||||
// TileBank.RenderCursor(this,ThisCam,Is3dFlag);
|
||||
|
||||
|
||||
// Get Cursor Pos
|
||||
TileBank.FindCursorPos(this,View,GetCam(),CurrentMousePos);
|
||||
|
@ -333,6 +335,29 @@ CMultiBar *ParamBar=Frm->GetParamBar();
|
|||
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CCore::UpdateLayerGUI(CMapEditView *View)
|
||||
{
|
||||
CMainFrame *Frm=(CMainFrame*)AfxGetApp()->GetMainWnd();
|
||||
CMultiBar *ParamBar=Frm->GetParamBar();
|
||||
CLayerList *List=(CLayerList*)Frm->GetDialog(IDD_LAYER_LIST_DIALOG);
|
||||
int ListSize=Layer.size();
|
||||
|
||||
List->ListBox.ResetContent();
|
||||
|
||||
for (int i=0; i<ListSize; i++)
|
||||
{
|
||||
List->ListBox.AddString(Layer[i]->GetName());
|
||||
// List->ListBox.SetCheck(i,Layer[i]->IsVisible());
|
||||
}
|
||||
// Now sets checks (silly MSoft bug!!)
|
||||
for (i=0; i<ListSize; i++)
|
||||
{
|
||||
List->ListBox.SetCheck(i,Layer[i]->IsVisible());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/*
|
||||
void CCore::SetActiveLayer(int i)
|
||||
|
@ -442,9 +467,9 @@ Vec &CCore::GetCam()
|
|||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CCore::UpdateAll(CMapEditView *View)
|
||||
void CCore::UpdateGUI(CMapEditView *View)
|
||||
{
|
||||
UpdateView(View);
|
||||
UpdateLayerGUI(View);
|
||||
UpdateGrid(View);
|
||||
|
||||
TileBank.UpdateGUI(this,TileViewFlag);
|
||||
|
@ -452,6 +477,13 @@ void CCore::UpdateAll(CMapEditView *View)
|
|||
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CCore::UpdateAll(CMapEditView *View)
|
||||
{
|
||||
UpdateGUI(View);
|
||||
UpdateView(View);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CCore::UpdateView(CMapEditView *View,Vec Ofs)
|
||||
{
|
||||
|
@ -463,6 +495,7 @@ Vec &ThisCam=GetCam();
|
|||
if (View) View->Invalidate();
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
void CCore::SetMapSize(CMapEditView *View,int Width,int Height)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue