Tinkering with a way to do modal UIs for things like inventory etc.
This commit is contained in:
parent
db441000f8
commit
d8400d0a76
9 changed files with 120 additions and 92 deletions
|
@ -12,11 +12,24 @@ const int WALL_LIGHT_LEVEL = 3;
|
|||
const int WORLDBUILD_DIVISION = 4;
|
||||
const int WORLDBUILD_SHRINK = 2;
|
||||
const int WORLDBUILD_MAX_PATH = 200;
|
||||
const int GAME_MAP_POS = 600;
|
||||
const int VIDEO_WINDOW_X=1600;
|
||||
const int VIDEO_WINDOW_Y=900;
|
||||
const int UI_FONT_SIZE=30;
|
||||
const int BASE_MAP_FONT_SIZE=90;
|
||||
const int GAME_MAP_PIXEL_POS = 600;
|
||||
const int MAX_FONT_SIZE = 140;
|
||||
const int MIN_FONT_SIZE = 20;
|
||||
const int SCREEN_WIDTH = 40;
|
||||
const int SCREEN_HEIGHT = 30;
|
||||
const int STATUS_UI_WIDTH = 40;
|
||||
const int STATUS_UI_HEIGHT = 30;
|
||||
const float PERCENT = 0.01f;
|
||||
const wchar_t BG_TILE = L'█';
|
||||
const wchar_t UI_BASE_CHAR = L'█';
|
||||
const int BG_BOX_OFFSET=5;
|
||||
const int GAME_MAP_X=40;
|
||||
const int GAME_MAP_Y=40;
|
||||
const int INVENTORY_PIXEL_X=50;
|
||||
const int INVENTORY_PIXEL_Y=50;
|
||||
const int INVENTORY_WIDTH=99;
|
||||
const int INVENTORY_HEIGHT=STATUS_UI_HEIGHT-3;
|
||||
#define FONT_FILE_NAME "./assets/text.otf"
|
||||
#define TILE_MAP_CONFIG "./assets/tiles.json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue