This commit is contained in:
parent
5eddd7d792
commit
545a3d1304
19 changed files with 678 additions and 339 deletions
|
@ -15,6 +15,11 @@
|
|||
#include "TexCache.h"
|
||||
#include "Tile.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
enum TileSetEnum
|
||||
{
|
||||
TileBrowserWidth=8,
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
class CCore;
|
||||
|
@ -24,17 +29,29 @@ class CTile;
|
|||
class CTileBank
|
||||
{
|
||||
public:
|
||||
CTileBank();
|
||||
~CTileBank();
|
||||
CTileBank();
|
||||
~CTileBank();
|
||||
|
||||
void AddTileSet(char *Filename);
|
||||
int NeedLoad() {return(LoadFlag);}
|
||||
void LoadTileSets(CCore *Core);
|
||||
CTile &GetTile(int Bank,int Tile);
|
||||
void AddTileSet(char *Filename);
|
||||
int NeedLoad() {return(LoadFlag);}
|
||||
void Reload();
|
||||
void LoadTileSets(CCore *Core);
|
||||
CTile &GetTile(int Bank,int Tile);
|
||||
|
||||
void RenderSet(CCore *Core,Vec &CamPos,BOOL Is3d);
|
||||
void FindCursorPos(CCore *Core,CMapEditView *View,Vec &CamPos,CPoint &MousePos);
|
||||
|
||||
void LButtonControl(CCore *Core,CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||
void RButtonControl(CCore *Core,CMapEditView *View,UINT nFlags, CPoint &point,BOOL DownFlag);
|
||||
|
||||
void InitGUI(CCore *Core);
|
||||
void UpdateGUI(CCore *Core);
|
||||
|
||||
private:
|
||||
|
||||
std::vector<CTileSet> TileSet;
|
||||
BOOL LoadFlag;
|
||||
int CursPos;
|
||||
|
||||
};
|
||||
|
||||
|
@ -50,7 +67,11 @@ public:
|
|||
char *GetPath() {return(Path);}
|
||||
char *GetName() {return(Name);}
|
||||
CTile &GetTile(int No) {return(Tile[No]);}
|
||||
|
||||
void Purge();
|
||||
void Render2d(CCore *Core,Vec &CamPos,int CursorPos,int LTile,int RTile);
|
||||
void Render3d(CCore *Core,Vec &CamPos,int CursorPos,int LTile,int RTile);
|
||||
void RenderMisc(BOOL LSelFlag,BOOL RSelFlag, BOOL GridFlag,BOOL CursorFlag);
|
||||
int FindCursorPos(CCore *Core,CMapEditView *View,Vec &CamPos,CPoint &MousePos);
|
||||
|
||||
private:
|
||||
char Path[256],Name[256];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue