Inventory display window tabs are implemented, inventory component is displayed. Ranger Backstep cancels casts. Casts are forced to be channeled for 0.2 seconds before walking can cancel them,
This commit is contained in:
+4
-3
@@ -48,7 +48,7 @@ class MenuComponent;
|
||||
class ScrollableWindowComponent;
|
||||
|
||||
//Add a component to a menu using this macro. Follow-up with END at the end of it.
|
||||
#define ADD(key,componentType) AddComponent<componentType>(key,NEW componentType
|
||||
#define ADD(key,componentType) _AddComponent<componentType>(key,NEW componentType
|
||||
#define END )
|
||||
#define DEPTH ,
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
~Menu();
|
||||
//DO NOT USE DIRECTLY! You should be utilizing the ADD macro for adding components.
|
||||
template<class T>
|
||||
T*AddComponent(std::string componentKey,T*component,int depth=DEFAULT_DEPTH){
|
||||
T*_AddComponent(std::string componentKey,T*component,int depth=DEFAULT_DEPTH){
|
||||
component->parentMenu=type;
|
||||
if(depth==DEFAULT_DEPTH){
|
||||
component->depth=STARTING_DEPTH-componentCount;
|
||||
@@ -174,9 +174,10 @@ public:
|
||||
static std::vector<Menu*>stack;
|
||||
static std::string themeSelection;
|
||||
static safeunorderedmap<std::string,Theme>themes;
|
||||
static std::vector<MenuComponent*>unhandledComponents; //This list contains MenuComponents that are created and haven't been assigned via AddComponent. If we get to the end of menu initialization and there are any components in this vector, we have leaked memory and will report this.
|
||||
static std::vector<MenuComponent*>unhandledComponents; //This list contains MenuComponents that are created and haven't been assigned via _AddComponent. If we get to the end of menu initialization and there are any components in this vector, we have leaked memory and will report this.
|
||||
static const vf2d CENTERED;
|
||||
static bool IsMenuOpen();
|
||||
MenuType GetType();
|
||||
safemap<std::string,MenuComponent*>components; //A friendly way to interrogate any component we are interested in.
|
||||
std::vector<MenuComponent*>displayComponents; //Components that are only for displaying purposes.
|
||||
static std::map<MenuType,Menu*>menus;
|
||||
|
||||
Reference in New Issue
Block a user