mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 18:30:34 +00:00
external additions can wrap drawthemap
This commit is contained in:
parent
27b0823d74
commit
3a52193426
@ -5342,6 +5342,8 @@ void calcparam() {
|
|||||||
|
|
||||||
int ringcolor = darkena(0xFF, 0, 0xFF);
|
int ringcolor = darkena(0xFF, 0, 0xFF);
|
||||||
|
|
||||||
|
function<void()> wrap_drawfullmap = drawfullmap;
|
||||||
|
|
||||||
void drawfullmap() {
|
void drawfullmap() {
|
||||||
|
|
||||||
DEBB(DF_GRAPH, (debugfile,"draw full map\n"));
|
DEBB(DF_GRAPH, (debugfile,"draw full map\n"));
|
||||||
@ -5438,7 +5440,7 @@ void gamescreen(int _darken) {
|
|||||||
rug::actDraw();
|
rug::actDraw();
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
drawfullmap();
|
wrap_drawfullmap();
|
||||||
|
|
||||||
if(conformal::includeHistory) conformal::restoreBack();
|
if(conformal::includeHistory) conformal::restoreBack();
|
||||||
|
|
||||||
|
1
hyper.h
1
hyper.h
@ -552,6 +552,7 @@ hyperpoint gethyper(ld x, ld y);
|
|||||||
void resetview(); extern heptspin viewctr; extern cellwalker centerover;
|
void resetview(); extern heptspin viewctr; extern cellwalker centerover;
|
||||||
void drawthemap();
|
void drawthemap();
|
||||||
void drawfullmap();
|
void drawfullmap();
|
||||||
|
extern function<void()> wrap_drawfullmap;
|
||||||
bool displaystr(int x, int y, int shift, int size, const char *str, int color, int align);
|
bool displaystr(int x, int y, int shift, int size, const char *str, int color, int align);
|
||||||
bool displaystr(int x, int y, int shift, int size, const string& str, int color, int align);
|
bool displaystr(int x, int y, int shift, int size, const string& str, int color, int align);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user