FMiriGraphicsGlyphTable
What a prompt shows for a pad button on each controller family. Labels are the text fallback; IconPath names the glyph image a project ships, which the factory loads through its image cache like any other UI image.
- Module
- MiriGraphics
- Header
#include "MiriGraphics/FMiriGraphicsGlyphTable.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
const char* | FamilyName | |
EMiriGraphicsGlyphFamily | FamilyFromName | |
EMiriGraphicsGlyphFamily | FamilyFromDeviceName | SDL's gamepad type strings and vendor names both end up here. |
std::string | PadLabel | |
std::string | KeyboardLabel | |
std::string | IconPath | |
std::string | ArtPath | |
void | SetActionGlyphHook | |
void | SetActionGlyphRevisionSource | |
uint32_t | GetRevision | |
void | BumpRevision | |
FMiriGraphicsGlyph | ResolveActionGlyph | |
std::string | PromptFor | The prompt for one action on the active device: "A" on an Xbox pad, "Enter" on the keyboard. |
std::string | ActionBarText | "A Select B Back" for the actions the top screen offers. |
std::string | ActionVerb | |
void | SetActiveFamily | |
EMiriGraphicsGlyphFamily | GetActiveFamily | |
void | EnsureBindingSource | Registers the "prompt." binding source: prompt.<Action> and prompt.bar. |
bool | ResolveSource | |
bool | ResolveForStack | The same sources answered for one stack's own router and input device, so two players' prompts differ. |
EMiriGraphicsGlyphFamily | FamilyFromInputDevice | |
void | RegisterWidgetTypes | Registers KeyPrompt and ActionBar with the widget-type registry. |
Function details
FamilyName
static const char* FamilyName(EMiriGraphicsGlyphFamily family)FamilyFromName
static EMiriGraphicsGlyphFamily FamilyFromName(const std::string& name)FamilyFromDeviceName
static EMiriGraphicsGlyphFamily FamilyFromDeviceName(const std::string& deviceName)SDL's gamepad type strings and vendor names both end up here.
PadLabel
static std::string PadLabel(EMiriGraphicsGlyphFamily family, EMiriGraphicsPadButton button)KeyboardLabel
static std::string KeyboardLabel(EMiriGraphicsAction action)IconPath
static std::string IconPath(EMiriGraphicsGlyphFamily family, EMiriGraphicsPadButton button)ArtPath
static std::string ArtPath(EMiriGraphicsGlyphFamily family, const std::string& label)SetActionGlyphHook
static void SetActionGlyphHook(FMiriGraphicsActionGlyphHook hook)SetActionGlyphRevisionSource
static void SetActionGlyphRevisionSource(std::function<uint32_t()> source)GetRevision
static uint32_t GetRevision()BumpRevision
static void BumpRevision()ResolveActionGlyph
static FMiriGraphicsGlyph ResolveActionGlyph(const CMiriGraphicsScreenStack& stack, const std::string& action)PromptFor
static std::string PromptFor(const FMiriGraphicsInputRouter& router, EMiriGraphicsAction action, EMiriGraphicsGlyphFamily family, bool gamepadActive)The prompt for one action on the active device: "A" on an Xbox pad, "Enter" on the keyboard. Empty when the action has no binding there.
ActionBarText
static std::string ActionBarText(const FMiriGraphicsInputRouter& router, const std::vector<EMiriGraphicsAction>& actions, EMiriGraphicsGlyphFamily family, bool gamepadActive)"A Select B Back" for the actions the top screen offers.
ActionVerb
static std::string ActionVerb(EMiriGraphicsAction action)SetActiveFamily
static void SetActiveFamily(EMiriGraphicsGlyphFamily family)GetActiveFamily
static EMiriGraphicsGlyphFamily GetActiveFamily()EnsureBindingSource
static void EnsureBindingSource()Registers the "prompt." binding source: prompt.<Action> and prompt.bar.
ResolveSource
static bool ResolveSource(const std::string& source, FMiriGraphicsBindingValue& outValue)ResolveForStack
static bool ResolveForStack(const CMiriGraphicsScreenStack& stack, const std::string& source, FMiriGraphicsBindingValue& outValue)The same sources answered for one stack's own router and input device, so two players' prompts differ. "prompt.bar:Accept,Back" lists the actions.
FamilyFromInputDevice
static EMiriGraphicsGlyphFamily FamilyFromInputDevice(EInputDevice device)RegisterWidgetTypes
static void RegisterWidgetTypes()Registers KeyPrompt and ActionBar with the widget-type registry.