backend-infra-engineer: fix release build errors
This commit is contained in:
@@ -92,9 +92,9 @@ void DungeonEditorV2::Initialize(gfx::IRenderer* renderer, Rom* rom) {
|
|||||||
.category = "Dungeon",
|
.category = "Dungeon",
|
||||||
.shortcut_hint = "Ctrl+Shift+D",
|
.shortcut_hint = "Ctrl+Shift+D",
|
||||||
.visibility_flag = nullptr,
|
.visibility_flag = nullptr,
|
||||||
|
.priority = 10,
|
||||||
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
||||||
.disabled_tooltip = "Load a ROM to access dungeon controls",
|
.disabled_tooltip = "Load a ROM to access dungeon controls"});
|
||||||
.priority = 10});
|
|
||||||
|
|
||||||
panel_manager->RegisterPanel(
|
panel_manager->RegisterPanel(
|
||||||
{.card_id = kRoomSelectorId,
|
{.card_id = kRoomSelectorId,
|
||||||
@@ -104,9 +104,9 @@ void DungeonEditorV2::Initialize(gfx::IRenderer* renderer, Rom* rom) {
|
|||||||
.category = "Dungeon",
|
.category = "Dungeon",
|
||||||
.shortcut_hint = "Ctrl+Shift+R",
|
.shortcut_hint = "Ctrl+Shift+R",
|
||||||
.visibility_flag = nullptr,
|
.visibility_flag = nullptr,
|
||||||
|
.priority = 20,
|
||||||
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
||||||
.disabled_tooltip = "Load a ROM to browse dungeon rooms",
|
.disabled_tooltip = "Load a ROM to browse dungeon rooms"});
|
||||||
.priority = 20});
|
|
||||||
|
|
||||||
panel_manager->RegisterPanel(
|
panel_manager->RegisterPanel(
|
||||||
{.card_id = kEntranceListId,
|
{.card_id = kEntranceListId,
|
||||||
@@ -116,9 +116,9 @@ void DungeonEditorV2::Initialize(gfx::IRenderer* renderer, Rom* rom) {
|
|||||||
.category = "Dungeon",
|
.category = "Dungeon",
|
||||||
.shortcut_hint = "Ctrl+Shift+E",
|
.shortcut_hint = "Ctrl+Shift+E",
|
||||||
.visibility_flag = nullptr,
|
.visibility_flag = nullptr,
|
||||||
|
.priority = 25,
|
||||||
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
||||||
.disabled_tooltip = "Load a ROM to browse dungeon entrances",
|
.disabled_tooltip = "Load a ROM to browse dungeon entrances"});
|
||||||
.priority = 25});
|
|
||||||
|
|
||||||
panel_manager->RegisterPanel(
|
panel_manager->RegisterPanel(
|
||||||
{.card_id = "dungeon.entrance_properties",
|
{.card_id = "dungeon.entrance_properties",
|
||||||
@@ -128,9 +128,9 @@ void DungeonEditorV2::Initialize(gfx::IRenderer* renderer, Rom* rom) {
|
|||||||
.category = "Dungeon",
|
.category = "Dungeon",
|
||||||
.shortcut_hint = "",
|
.shortcut_hint = "",
|
||||||
.visibility_flag = nullptr,
|
.visibility_flag = nullptr,
|
||||||
|
.priority = 26,
|
||||||
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
||||||
.disabled_tooltip = "Load a ROM to edit entrance properties",
|
.disabled_tooltip = "Load a ROM to edit entrance properties"});
|
||||||
.priority = 26});
|
|
||||||
|
|
||||||
panel_manager->RegisterPanel(
|
panel_manager->RegisterPanel(
|
||||||
{.card_id = kRoomMatrixId,
|
{.card_id = kRoomMatrixId,
|
||||||
@@ -140,9 +140,9 @@ void DungeonEditorV2::Initialize(gfx::IRenderer* renderer, Rom* rom) {
|
|||||||
.category = "Dungeon",
|
.category = "Dungeon",
|
||||||
.shortcut_hint = "Ctrl+Shift+M",
|
.shortcut_hint = "Ctrl+Shift+M",
|
||||||
.visibility_flag = nullptr,
|
.visibility_flag = nullptr,
|
||||||
|
.priority = 30,
|
||||||
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
||||||
.disabled_tooltip = "Load a ROM to view the room matrix",
|
.disabled_tooltip = "Load a ROM to view the room matrix"});
|
||||||
.priority = 30});
|
|
||||||
|
|
||||||
panel_manager->RegisterPanel(
|
panel_manager->RegisterPanel(
|
||||||
{.card_id = kRoomGraphicsId,
|
{.card_id = kRoomGraphicsId,
|
||||||
@@ -152,9 +152,9 @@ void DungeonEditorV2::Initialize(gfx::IRenderer* renderer, Rom* rom) {
|
|||||||
.category = "Dungeon",
|
.category = "Dungeon",
|
||||||
.shortcut_hint = "Ctrl+Shift+G",
|
.shortcut_hint = "Ctrl+Shift+G",
|
||||||
.visibility_flag = nullptr,
|
.visibility_flag = nullptr,
|
||||||
|
.priority = 50,
|
||||||
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
||||||
.disabled_tooltip = "Load a ROM to view room graphics",
|
.disabled_tooltip = "Load a ROM to view room graphics"});
|
||||||
.priority = 50});
|
|
||||||
|
|
||||||
panel_manager->RegisterPanel(
|
panel_manager->RegisterPanel(
|
||||||
{.card_id = kPaletteEditorId,
|
{.card_id = kPaletteEditorId,
|
||||||
@@ -164,9 +164,9 @@ void DungeonEditorV2::Initialize(gfx::IRenderer* renderer, Rom* rom) {
|
|||||||
.category = "Dungeon",
|
.category = "Dungeon",
|
||||||
.shortcut_hint = "Ctrl+Shift+P",
|
.shortcut_hint = "Ctrl+Shift+P",
|
||||||
.visibility_flag = nullptr,
|
.visibility_flag = nullptr,
|
||||||
|
.priority = 70,
|
||||||
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
.enabled_condition = [this]() { return rom_ && rom_->is_loaded(); },
|
||||||
.disabled_tooltip = "Load a ROM to edit dungeon palettes",
|
.disabled_tooltip = "Load a ROM to edit dungeon palettes"});
|
||||||
.priority = 70});
|
|
||||||
|
|
||||||
// Show default panels on startup
|
// Show default panels on startup
|
||||||
panel_manager->ShowPanel(kControlPanelId);
|
panel_manager->ShowPanel(kControlPanelId);
|
||||||
|
|||||||
@@ -1,16 +1,19 @@
|
|||||||
#ifndef YAZE_CORE_WINDOW_H_
|
#ifndef YAZE_CORE_WINDOW_H_
|
||||||
#define YAZE_CORE_WINDOW_H_
|
#define YAZE_CORE_WINDOW_H_
|
||||||
|
|
||||||
#include "app/platform/sdl_compat.h"
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
#include "app/platform/sdl_compat.h"
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "absl/strings/str_format.h"
|
#include "absl/strings/str_format.h"
|
||||||
#include "app/gfx/backend/irenderer.h"
|
#include "app/gfx/backend/irenderer.h"
|
||||||
#include "app/gfx/core/bitmap.h"
|
#include "app/gfx/core/bitmap.h"
|
||||||
#include "util/sdl_deleter.h"
|
#include "util/sdl_deleter.h"
|
||||||
|
|
||||||
|
#ifdef CreateWindow
|
||||||
|
#undef CreateWindow
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace core {
|
namespace core {
|
||||||
|
|
||||||
@@ -30,4 +33,4 @@ absl::Status ShutdownWindow(Window& window);
|
|||||||
|
|
||||||
} // namespace core
|
} // namespace core
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
#endif // YAZE_CORE_WINDOW_H_
|
#endif // YAZE_CORE_WINDOW_H_
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ set(YAZE_AGENT_CORE_SOURCES
|
|||||||
cli/handlers/rom/project_commands.cc
|
cli/handlers/rom/project_commands.cc
|
||||||
cli/handlers/rom/rom_commands.cc
|
cli/handlers/rom/rom_commands.cc
|
||||||
cli/handlers/tools/dungeon_doctor_commands.cc
|
cli/handlers/tools/dungeon_doctor_commands.cc
|
||||||
|
cli/handlers/tools/emulator_commands.cc
|
||||||
cli/handlers/tools/gui_commands.cc
|
cli/handlers/tools/gui_commands.cc
|
||||||
cli/handlers/tools/overworld_doctor_commands.cc
|
cli/handlers/tools/overworld_doctor_commands.cc
|
||||||
cli/handlers/tools/overworld_validate_commands.cc
|
cli/handlers/tools/overworld_validate_commands.cc
|
||||||
|
|||||||
Reference in New Issue
Block a user