Add main menu window interface outlines. Fixed menu labels not being centered properly.
This commit is contained in:
@@ -2,11 +2,15 @@
|
||||
#include "Crawler.h"
|
||||
#include "DEFINES.h"
|
||||
#include "Menu.h"
|
||||
#include "MenuLabel.h"
|
||||
|
||||
INCLUDE_game
|
||||
typedef Attribute A;
|
||||
|
||||
void Menu::InitializeCharacterInfoWindow(){
|
||||
Menu*characterInfoWindow=CreateMenu(INVENTORY,CENTERED,game->GetScreenSize()-vi2d{4,4});
|
||||
void Menu::InitializeClassInfoWindow(){
|
||||
Menu*classInfoWindow=CreateMenu(CLASS_INFO,CENTERED,game->GetScreenSize()-vi2d{64,64});
|
||||
|
||||
MenuLabel*label=new MenuLabel(CLASS_INFO,{{classInfoWindow->pos.x,classInfoWindow->pos.y+8},{classInfoWindow->size.x,16}},"Warrior",2,true,true);
|
||||
|
||||
classInfoWindow->AddComponent("Class Name",label);
|
||||
}
|
||||
Reference in New Issue
Block a user