Add in Rotating character display component
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
#include "DEFINES.h"
|
||||
#include "Menu.h"
|
||||
#include "MenuLabel.h"
|
||||
#include "CharacterRotatingDisplay.h"
|
||||
|
||||
INCLUDE_game
|
||||
INCLUDE_GFX
|
||||
typedef Attribute A;
|
||||
|
||||
void Menu::InitializeClassInfoWindow(){
|
||||
@@ -13,4 +15,8 @@ void Menu::InitializeClassInfoWindow(){
|
||||
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);
|
||||
|
||||
CharacterRotatingDisplay*classDisplay=new CharacterRotatingDisplay(CLASS_INFO,{classInfoWindow->center()-vf2d{classInfoWindow->size.x/4,0},{72,120}},GFX["knight_full_render1.png"].Decal());
|
||||
|
||||
classInfoWindow->AddComponent("Rotating Character Display",classDisplay);
|
||||
}
|
||||
Reference in New Issue
Block a user