mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
wip
This commit is contained in:
parent
5bc79c8a77
commit
793fd82b90
3 changed files with 31 additions and 7 deletions
|
|
@ -2,16 +2,34 @@
|
|||
#define FRONTEND_MENU_MENU_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include "../../content/ContentPack.h"
|
||||
|
||||
|
||||
namespace gui {
|
||||
class Panel;
|
||||
}
|
||||
|
||||
class Engine;
|
||||
class LevelController;
|
||||
|
||||
using packconsumer = std::function<void(const ContentPack& pack)>;
|
||||
|
||||
namespace menus {
|
||||
// implemented in menu_settings.cpp
|
||||
extern void create_settings_panel(Engine* engine);
|
||||
|
||||
// implemented in menu_pause.cpp
|
||||
extern void create_pause_panel(Engine* engine, LevelController* controller);
|
||||
extern std::shared_ptr<gui::Panel> create_packs_panel(
|
||||
const std::vector<ContentPack>& packs,
|
||||
Engine* engine,
|
||||
bool backbutton,
|
||||
packconsumer callback,
|
||||
packconsumer remover
|
||||
);
|
||||
|
||||
/// @brief Load world, convert if required and set to LevelScreen.
|
||||
/// @param name world name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue