Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::create_scene_modal Class 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.
 

Detailed Description

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.

Member Function Documentation

◆ cancel_if_pending()

void unravel::create_scene_modal::cancel_if_pending ( )
static

Dismiss a pending create-scene modal without invoking the callback.

Definition at line 177 of file create_scene_modal.cpp.

◆ complete_if_pending()

auto unravel::create_scene_modal::complete_if_pending ( defaults::scene_preset preset) -> bool
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.

◆ is_pending()

auto unravel::create_scene_modal::is_pending ( ) -> bool
static

True when Show was requested and the user has not yet confirmed/cancelled.

Definition at line 151 of file create_scene_modal.cpp.

◆ render()

void unravel::create_scene_modal::render ( )
static

Draw the modal. Call every frame from the main UI render loop.

Definition at line 185 of file create_scene_modal.cpp.

◆ show()

void unravel::create_scene_modal::show ( std::function< void(defaults::scene_preset)> on_preset_selected)
static

Request the create scene modal to open.

Parameters
on_preset_selectedCalled when the user selects a preset (or Cancel to dismiss).

Definition at line 142 of file create_scene_modal.cpp.


The documentation for this class was generated from the following files: