|
Unravel Engine C++ Reference
|
Modal for selecting a scene preset when creating a new scene. Call ShowCreateSceneModal() to open; RenderCreateSceneModal() draws it each frame. More...
#include <create_scene_modal.h>
Static Public Member Functions | |
| static void | show (std::function< void(defaults::scene_preset)> on_preset_selected) |
| Request the create scene modal to open. | |
| static void | render () |
| Draw the modal. Call every frame from the main UI render loop. | |
| static auto | is_pending () -> bool |
| True when Show was requested and the user has not yet confirmed/cancelled. | |
| static auto | complete_if_pending (defaults::scene_preset preset) -> bool |
| static void | cancel_if_pending () |
| Dismiss a pending create-scene modal without invoking the callback. | |
Modal for selecting a scene preset when creating a new scene. Call ShowCreateSceneModal() to open; RenderCreateSceneModal() draws it each frame.
Definition at line 13 of file create_scene_modal.h.
|
static |
Dismiss a pending create-scene modal without invoking the callback.
Definition at line 177 of file create_scene_modal.cpp.
|
static |
Headless path (MCP/CLI): if a create-scene modal is pending, invoke its callback with preset and dismiss it. Returns true when a pending modal was completed.
Definition at line 156 of file create_scene_modal.cpp.
|
static |
True when Show was requested and the user has not yet confirmed/cancelled.
Definition at line 151 of file create_scene_modal.cpp.
|
static |
Draw the modal. Call every frame from the main UI render loop.
Definition at line 185 of file create_scene_modal.cpp.
|
static |
Request the create scene modal to open.
| on_preset_selected | Called when the user selects a preset (or Cancel to dismiss). |
Definition at line 142 of file create_scene_modal.cpp.