New Title Texture
This commit is contained in:
@@ -53,7 +53,7 @@ CPMAddPackage(
|
|||||||
|
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME JUI
|
NAME JUI
|
||||||
URL https://git.redacted.cc/josh/ReJUI/archive/Prerelease-5.10.zip
|
URL https://git.redacted.cc/josh/ReJUI/archive/Prerelease-5.11.zip
|
||||||
)
|
)
|
||||||
|
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
|
@@ -76,11 +76,11 @@ namespace CaveGame::Client
|
|||||||
this->enabled = enable;
|
this->enabled = enable;
|
||||||
}
|
}
|
||||||
void Disable() { Enable(false); }
|
void Disable() { Enable(false); }
|
||||||
bool IsEnabled() const { return true;}
|
bool IsEnabled() const { return enabled; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool enabled = true;
|
bool enabled = false;
|
||||||
bool draw_grid = true;
|
bool draw_grid = false;
|
||||||
Color4 grid_color = {128, 128, 128, 128};
|
Color4 grid_color = {128, 128, 128, 128};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -101,14 +101,14 @@ void CaveGame::Client::MainMenu::BuildWidgets() {
|
|||||||
|
|
||||||
auto *new_world_btn = create_mainmenu_btn("New World", button_list);
|
auto *new_world_btn = create_mainmenu_btn("New World", button_list);
|
||||||
|
|
||||||
new_world_btn->OnReleaseEvent += [this](Vector2 pos, MouseButton btn, bool b)
|
new_world_btn->OnReleaseEvent += [this](Vector2 pos, JUI::MouseButton btn, bool b)
|
||||||
{
|
{
|
||||||
RequestWorld.Invoke({.NewWorld = true});
|
RequestWorld.Invoke({.NewWorld = true});
|
||||||
};
|
};
|
||||||
|
|
||||||
auto *load_world_btn = create_mainmenu_btn("Load World", button_list);
|
auto *load_world_btn = create_mainmenu_btn("Load World", button_list);
|
||||||
|
|
||||||
load_world_btn->OnReleaseEvent += [this](Vector2 pos, MouseButton btn, bool b)
|
load_world_btn->OnReleaseEvent += [this](Vector2 pos, JUI::MouseButton btn, bool b)
|
||||||
{
|
{
|
||||||
RequestWorld.Invoke({.NewWorld = false});
|
RequestWorld.Invoke({.NewWorld = false});
|
||||||
};
|
};
|
||||||
@@ -124,7 +124,7 @@ void CaveGame::Client::MainMenu::BuildWidgets() {
|
|||||||
auto *mp_btn = create_mainmenu_btn("Multiplayer", button_list);
|
auto *mp_btn = create_mainmenu_btn("Multiplayer", button_list);
|
||||||
auto *credits_btn = create_mainmenu_btn("Credits", button_list);
|
auto *credits_btn = create_mainmenu_btn("Credits", button_list);
|
||||||
|
|
||||||
credits_btn->OnReleaseEvent += [this](Vector2 pos, MouseButton btn, bool b) {
|
credits_btn->OnReleaseEvent += [this](Vector2 pos, JUI::MouseButton btn, bool b) {
|
||||||
if (b)
|
if (b)
|
||||||
RequestShowCredits.Invoke();
|
RequestShowCredits.Invoke();
|
||||||
};
|
};
|
||||||
@@ -134,7 +134,7 @@ void CaveGame::Client::MainMenu::BuildWidgets() {
|
|||||||
auto *quit_btn = create_mainmenu_btn("Quit", button_list);
|
auto *quit_btn = create_mainmenu_btn("Quit", button_list);
|
||||||
|
|
||||||
|
|
||||||
quit_btn->OnReleaseEvent += [this](Vector2 pos, MouseButton btn, bool b)
|
quit_btn->OnReleaseEvent += [this](Vector2 pos, JUI::MouseButton btn, bool b)
|
||||||
{
|
{
|
||||||
if (b)
|
if (b)
|
||||||
RequestQuit.Invoke();
|
RequestQuit.Invoke();
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 36 KiB |
Reference in New Issue
Block a user