|
| enum class | NavigationVisual : std::uint8_t { Off = 0
, Idle
, Return
, Press
} |
| |
| enum class | FileDialogMode : std::uint8_t { None
, Load
, Save
} |
| |
| enum class | Screen : std::uint8_t {
File = 0
, Option
, Credits
, Help
,
LoadBoard
, LoadGame
} |
| |
| enum class | MenuButton : std::uint8_t {
File = 0
, Option
, Credits
, Help
,
Count
} |
| |
| enum class | FileButton : std::uint8_t {
NewGame = 0
, Load
, Save
, Exit
,
Cancel
, Count
} |
| |
| enum class | HelpButton : std::uint8_t { QuickHelp = 0
, FullHelp
, Cancel
, Count
} |
| |
| enum class | OptionToggle : std::uint8_t {
TokenVoices = 0
, HostComments
, Music
, TokenAnimations
,
Camera
, Lighting
, Board3D
, Filtering
,
Dithering
, Resolution
, Count
} |
| |
|
| constexpr data::DataId | customBoardTitle (data::BoardEdition edition) noexcept |
| |
| Rect | customBoardSlotRect (std::size_t slot) noexcept |
| |
| bool | customBoardHasPrevious (const CustomBoardState &state) noexcept |
| |
| bool | customBoardHasNext (const CustomBoardState &state) noexcept |
| |
| std::expected< void, std::string > | openCustomBoardDialog (CustomBoardState &state, const std::filesystem::path &moduleDirectory, display::Screen2D previousView) |
| |
| void | closeCustomBoardDialog (CustomBoardState &state) noexcept |
| |
| CustomBoardInput | processCustomBoardInput (CustomBoardState &state, const uimsg::Message &message) noexcept |
| |
| std::expected< std::uint32_t, std::string > | readCustomBoardSecurityVersion () |
| |
| std::expected< CustomBoardSelection, std::string > | validateCustomBoardFile (const std::filesystem::path &directory, const std::filesystem::path &fileName, std::uint32_t installedSecurityVersion) |
| |
| std::expected< CustomBoardSelection, std::string > | validateSelectedCustomBoard (const CustomBoardState &state) |
| |
| std::expected< std::optional< std::filesystem::path >, std::string > | restoreSavedCustomBoard (std::string_view savedAssetRoot, const data::ResourceSnapshot &resources, int monetarySystem) |
| |
| constexpr data::DataId | fileSequence (data::DataTag tag) noexcept |
| |
| constexpr data::DataId | helpSequence (data::DataTag tag) noexcept |
| |
| std::expected< std::string, std::string > | decodeQuickHelpText (std::string_view bytes) |
| |
| std::string | helpFileName (data::LanguageId language, bool fullHelp) |
| |
| std::expected< void, std::string > | openQuickHelp (State &state, const data::ResourceSnapshot &resources) |
| |
| std::expected< void, std::string > | openFullHelp (const data::ResourceSnapshot &resources, const FullHelpOptions &options) |
| |
| std::optional< std::string > | styleFullHelpHtml (std::string_view html, std::uintmax_t maximumBytes) |
| |
| bool | fullHelpPending () noexcept |
| |
| void | cancelFullHelp () noexcept |
| |
| std::expected< bool, std::string > | pollFullHelp () |
| |
| constexpr data::DataId | navigationSequence (MenuButton button, NavigationVisual visual) noexcept |
| |
| constexpr std::uint16_t | navigationPriority (MenuButton button, NavigationVisual visual) noexcept |
| |
| constexpr data::DataId | optionSequence (data::DataTag tag) noexcept |
| |
| std::filesystem::path | saveGameDirectory () |
| |
| std::filesystem::path | gameBlobPath (std::size_t slot) |
| |
| std::filesystem::path | gameMetadataPath (std::size_t slot) |
| |
| Rect | saveSlotRect (std::size_t slot) noexcept |
| |
| Rect | dialogOkayRect (int width, int height) noexcept |
| |
| Rect | dialogCancelRect (int width, int height) noexcept |
| |
| std::expected< void, std::string > | refreshSaveSlots (SaveRuntimeState &state, FileDialogMode mode) |
| |
| void | closeSaveDialog (SaveRuntimeState &state) noexcept |
| |
| SaveDialogInput | processSaveDialogInput (SaveRuntimeState &state, const uimsg::Message &message, fonts::Runtime *fontRuntime, std::shared_ptr< const data::ResourceSnapshot > resources) |
| |
| std::expected< std::vector< std::uint8_t >, std::string > | readSelectedGameBlob (const SaveRuntimeState &state) |
| |
| std::expected< void, std::string > | beginPendingSave (SaveRuntimeState &state, const rules::GameState &ruleState, int city, int system, std::string customBoardName, rules::PlayerNumber requester) |
| |
| void | clearPendingSave (SaveRuntimeState &state) noexcept |
| |
| std::expected< void, std::string > | persistPendingSave (SaveRuntimeState &state, std::span< const std::uint8_t > gameBlob) |
| |
| std::expected< void, std::string > | applySelectedMetadata (const SaveRuntimeState &state, rules::GameState &ruleState, int &city, int &system) |
| |
| constexpr std::uint16_t | togglePriority (OptionToggle toggle) noexcept |
| |
| constexpr data::DataTag | toggleTag (bool onSide, bool value) noexcept |
| |
| constexpr data::DataId | toggleSequence (bool onSide, bool value) noexcept |
| |
| std::size_t | quickHelpPageLineCount (std::size_t totalLines, std::size_t firstLine, int lineHeight, bool initialPage) noexcept |
| |
| Rect | menuButtonRect (MenuButton button) noexcept |
| |
| std::optional< MenuButton > | menuButtonHit (int x, int y) noexcept |
| |
| Rect | optionOkayRect () noexcept |
| |
| Rect | optionToggleRect (OptionToggle toggle, bool onSide) noexcept |
| |
| bool | optionToggleSupported (OptionToggle toggle) noexcept |
| |
| Rect | fileButtonRect (FileButton button) noexcept |
| |
| std::optional< FileButton > | fileButtonHit (int x, int y) noexcept |
| |
| Rect | helpButtonRect (HelpButton button) noexcept |
| |
| std::optional< HelpButton > | helpButtonHit (int x, int y) noexcept |
| |
| bool | beginFromIBar (State &state, display::Screen2D previousView) noexcept |
| |
| void | loadSupportedOptionValues (State &state, bool tokenVoicesOn, bool hostCommentsOn, bool musicOn, std::uint8_t musicTuneIndex, bool tokenAnimationsOn, bool cameraMovementOn, bool lightingOn, bool board3DOn, bool filteringOn) noexcept |
| |
| bool | selectMusicTune (State &state, std::uint8_t tuneIndex) noexcept |
| |
| InputResult | processInput (State &state, display::Screen2D desiredView, const uimsg::Message &message) noexcept |
| |
| void | reset (State &state) noexcept |
| |
| std::expected< std::vector< std::string >, std::string > | wrapOptionsText (fonts::Runtime &font, std::string_view text, int width, bool replaceUnderscores) |
| |
| constexpr data::DataId | creditsBitmap (data::BoardEdition edition) noexcept |
| |
| constexpr int | creditsScrollY (std::uint64_t elapsedTicks) noexcept |
| |
|
| constexpr std::size_t | CustomBoardLimit = 100 |
| |
| constexpr std::size_t | CustomBoardPageSize = 5 |
| |
| constexpr data::DataTag | FileTitleTag = 0x023A |
| |
| constexpr std::array< data::DataTag, 5 > | FileButtonInTags |
| |
| constexpr std::uint16_t | FileScreenPriority = 50 |
| |
| constexpr std::uint8_t | FileScreenStayAtEnd = 2 |
| |
| constexpr data::DataTag | HelpTitleTag = 0x0249 |
| |
| constexpr std::array< data::DataTag, 3 > | HelpButtonInTags |
| |
| constexpr std::uint16_t | HelpScreenPriority = 50 |
| |
| constexpr std::uint8_t | HelpScreenStayAtEnd = 2 |
| |
| constexpr std::uint8_t | NavigationStayAtEnd = 2 |
| |
| constexpr std::array< data::DataTag, 4 > | NavigationIdleTags |
| |
| constexpr std::array< data::DataTag, 4 > | NavigationReturnTags |
| |
| constexpr std::array< data::DataTag, 4 > | NavigationPressTags |
| |
| constexpr std::array< std::uint16_t, 4 > | NavigationIdlePriorities |
| |
| constexpr std::array< std::uint16_t, 4 > | NavigationPressPriorities |
| |
| constexpr std::uint16_t | OptionScreenPriority = 50 |
| |
| constexpr std::uint8_t | OptionScreenStayAtEnd = 2 |
| |
| constexpr data::DataTag | OptionTitleTag = 0x0277 |
| |
| constexpr data::DataTag | OptionSoundSubtitleTag = 0x0278 |
| |
| constexpr data::DataTag | OptionDisplaySubtitleTag = 0x0262 |
| |
| constexpr data::DataTag | OptionOkayInTag = 0x026E |
| |
| constexpr int | OptionOkayX = 350 |
| |
| constexpr int | OptionOkayY = 450 |
| |
| constexpr int | OptionOkayWidth = 127 |
| |
| constexpr int | OptionOkayHeight = 36 |
| |
| constexpr std::array< data::DataTag, 4 > | OptionScreenTags |
| |
| constexpr std::size_t | SaveSlotCount = 5 |
| |
| constexpr data::DataTag | ToggleOffUnselectedTag = 0x026B |
| |
| constexpr data::DataTag | ToggleOffSelectedTag = 0x026C |
| |
| constexpr data::DataTag | ToggleOnUnselectedTag = 0x0272 |
| |
| constexpr data::DataTag | ToggleOnSelectedTag = 0x0273 |
| |
| constexpr std::uint8_t | ToggleStayAtEnd = 2 |
| |
| constexpr std::uint8_t | MusicTuneCount = 5 |
| |
| constexpr std::array< OptionToggle, 8 > | SupportedOptionToggles |
| |
| constexpr std::array< std::uint32_t, 9 > | OptionLabelTextIds |
| |
| constexpr std::array< std::string_view, 5 > | MusicNames |
| |