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
|
@ -138,8 +138,8 @@ class GUI {
|
|||
Component $bg_settings;
|
||||
|
||||
GUI(string font_list) :
|
||||
$font_view(GAME_MAP_POS, 0, GRID_SIZE.x, GRID_SIZE.y, true),
|
||||
$status_ui(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT),
|
||||
$font_view(GAME_MAP_PIXEL_POS, 0, GRID_SIZE.x, GRID_SIZE.y, true),
|
||||
$status_ui(0, 0, STATUS_UI_WIDTH, STATUS_UI_HEIGHT),
|
||||
$font_grid(font_list, GRID_SIZE.x, GRID_SIZE.y),
|
||||
$fg_color{.h=20, .s=50, .v=20},
|
||||
$bg_color{.h=100, .s=100, .v=100}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue