move blueprints out of the sidebar into Ctrl+C / Ctrl+V dialogs
This commit is contained in:
11
src/lib/eventsystem/event/BlueprintSaveRequestedEvent.h
Normal file
11
src/lib/eventsystem/event/BlueprintSaveRequestedEvent.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "Event.h"
|
||||
|
||||
// Ctrl+C: save the current building selection as a named blueprint
|
||||
// (REQ-UI-BLUEPRINT-CREATE, REQ-UI-HOTKEYS). MainWindow owns the modal flow, because
|
||||
// it is the only widget that can pause the game and raise the dim overlay; whether
|
||||
// anything placeable is selected is decided there, not by the key handler.
|
||||
class BlueprintSaveRequestedEvent : public Event
|
||||
{
|
||||
};
|
||||
11
src/lib/eventsystem/event/BlueprintSelectionRequestedEvent.h
Normal file
11
src/lib/eventsystem/event/BlueprintSelectionRequestedEvent.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "Event.h"
|
||||
|
||||
// Ctrl+V: open the blueprint selection dialog (REQ-UI-BLUEPRINT-DIALOG,
|
||||
// REQ-UI-HOTKEYS). The Ctrl+C path does not go through this event -- it opens the
|
||||
// dialog directly so one pause scope and one dim scope span both dialogs
|
||||
// (REQ-UI-MODAL-DIM).
|
||||
class BlueprintSelectionRequestedEvent : public Event
|
||||
{
|
||||
};
|
||||
@@ -15,6 +15,8 @@ SET(HDRS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/UnlockedBuildingsChangedEvent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/BuilderModeExitedEvent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/BlueprintModeExitedEvent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/BlueprintSaveRequestedEvent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/BlueprintSelectionRequestedEvent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/EscapeMenuRequestedEvent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/PanDirectionChangedEvent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/PauseToggleRequestedEvent.h
|
||||
|
||||
Reference in New Issue
Block a user