Correct memory leak in consuming items from inventory. Added overworld menu layout. Warrior Up walk animation has head bobbing like all the others now. Fixed alignment of items for ScrollableWindowComponents, fix scrollbar resizing when parent component has offsets.
This commit is contained in:
+5
-2
@@ -16,6 +16,7 @@ enum MenuType{
|
||||
CLASS_INFO,
|
||||
CLASS_SELECTION,
|
||||
MAIN_MENU,
|
||||
OVERWORLD_LEVEL_SELECT,
|
||||
///////////////////////////////////////////////////////////
|
||||
/*DO NOT REMOVE!!*/ENUM_END////////////////////////////////
|
||||
///////////////////////////////////////////////////////////
|
||||
@@ -41,7 +42,7 @@ public:
|
||||
void Update(Crawler*game);
|
||||
void Draw(Crawler*game);
|
||||
static void InitializeMenus();
|
||||
static void OpenMenu(MenuType menu);
|
||||
static void OpenMenu(MenuType menu,bool cover=true);
|
||||
static void CloseMenu();
|
||||
static void CloseAllMenus();
|
||||
static void CleanupAllMenus();
|
||||
@@ -83,6 +84,7 @@ private:
|
||||
static void InitializeClassInfoWindow();
|
||||
static void InitializeClassSelectionWindow();
|
||||
static void InitializeMainMenuWindow();
|
||||
static void InitializeOverworldMapLevelWindow();
|
||||
//X (0-2), Y (0-2) for specific 9-patch tile (tiled version).
|
||||
static Renderable&GetPatchPart(int x,int y);
|
||||
|
||||
@@ -97,6 +99,7 @@ private:
|
||||
|
||||
Pixel GetRenderColor();
|
||||
static bool MOUSE_NAVIGATION;
|
||||
static bool cover; //A black cover for when a menu pops up to fade out the stuff behind it.
|
||||
};
|
||||
|
||||
struct MenuFuncData{
|
||||
@@ -105,4 +108,4 @@ struct MenuFuncData{
|
||||
MenuComponent*component;
|
||||
};
|
||||
|
||||
typedef std::function<void(MenuFuncData)> MenuFunc;
|
||||
typedef std::function<bool(MenuFuncData)> MenuFunc;
|
||||
Reference in New Issue
Block a user