|
Storm Game Framework 2.0.0
User guide
|
Local-player layout, widget routing, reusable controls and settings.
StormUI opens screens in the right layer for a local player and manages their lifetime.
Connect it. The layout supplies layer stacks, the registry maps tags to classes and layers, and the local-player subsystem routes requests. Check the immediate result and correlate pending completion by request ID. CommonUI supplies focus and input routing. Open a screen after travel.
Try it. Start with the example CommonUI layout and widget registry. Register a screen by gameplay tag, request it from a test action and check that closing it returns focus to the game.
C++ entry point. Add StormUI to your consuming module and include StormUISubsystem.h. See StormUISubsystem.h.
With the local layout ready, request a widget tag that exists in the registry.
StormWidgets supplies reusable CommonUI controls such as buttons, selectors and progress bars.
Connect it. Add a reusable control to the game’s activatable widget. Bind it to the value or action owned by your game and verify it with keyboard or controller. Set up the local screen and its controls.
Try it. Add one of the included widget Blueprints to a menu, choose its style and connect it to the value or action it represents. Try the control with the inputs your game supports.
C++ entry point. Add StormWidgets to your consuming module and include UI/Buttons/Widgets/StormButton.h. See StormButton.h.
StormAudio helps the project apply audio settings and manage audio presentation.
Try it. Configure a sound class and sound mix for a group such as music. Connect one volume control through your project's audio setup and check the result with a known sound.
C++ entry point. Add StormAudio to your consuming module and include Audio/StormAudioSubsystem.h. See StormAudioSubsystem.h.
After setting the routing profile, read the volume for one configured control tag.
StormSettings coordinates the values a settings screen reads and how edits are applied.
What a settings provider is. A settings provider is a C++ object that implements IStormSettingsProvider and owns one group of settings. It describes them, reports their current values, applies a change to the running game, saves it and can restore the earlier value. The coordinator runs every edit through the providers registered with it, so a failed edit is rolled back.
SGF registers one provider, for the engine's desktop video settings. It covers VSync, frame-rate limit, resolution scale, the overall quality preset and the individual quality groups, window mode and resolution, and motion blur quality. Apart from motion blur, it offers changes only when the project uses the standard UGameUserSettings class, not a subclass. Window mode and resolution also need a game viewport. To expose other settings, register your own provider with RegisterProvider before starting the session.
Connect it. The game supplies the settings screen. StormSettings has no Blueprint API, so the screen calls it from C++. Obtain the coordinator from UStormSettingsSubsystem, start a settings session, then run one edit through it and check what was actually applied. Start with a local screen.
Try it. Choose one video option, connect it to a menu and check that Apply updates the value. Window mode and resolution apply as a preview: test both confirming it and rejecting it.
C++ entry point. Add StormSettings to your consuming module and include Settings/StormSettingsSubsystem.h. See StormSettingsSubsystem.h.