Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
OptionsUI.hpp File Reference
#include "Display.hpp"
#include "UIMessages.hpp"
#include <array>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for OptionsUI.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  monopoly::optionsui::Rect
 
struct  monopoly::optionsui::State
 
struct  monopoly::optionsui::InputResult
 

Namespaces

namespace  monopoly
 
namespace  monopoly::optionsui
 

Enumerations

enum class  monopoly::optionsui::Screen : std::uint8_t {
  monopoly::optionsui::File = 0 , monopoly::optionsui::Option , monopoly::optionsui::Credits , monopoly::optionsui::Help ,
  monopoly::optionsui::LoadBoard , monopoly::optionsui::LoadGame
}
 
enum class  monopoly::optionsui::MenuButton : std::uint8_t {
  monopoly::optionsui::File = 0 , monopoly::optionsui::Option , monopoly::optionsui::Credits , monopoly::optionsui::Help ,
  monopoly::optionsui::Count
}
 
enum class  monopoly::optionsui::FileButton : std::uint8_t {
  monopoly::optionsui::NewGame = 0 , monopoly::optionsui::Load , monopoly::optionsui::Save , monopoly::optionsui::Exit ,
  monopoly::optionsui::Cancel , monopoly::optionsui::Count
}
 
enum class  monopoly::optionsui::HelpButton : std::uint8_t { monopoly::optionsui::QuickHelp = 0 , monopoly::optionsui::FullHelp , monopoly::optionsui::Cancel , monopoly::optionsui::Count }
 
enum class  monopoly::optionsui::OptionToggle : std::uint8_t {
  monopoly::optionsui::TokenVoices = 0 , monopoly::optionsui::HostComments , monopoly::optionsui::Music , monopoly::optionsui::TokenAnimations ,
  monopoly::optionsui::Camera , monopoly::optionsui::Lighting , monopoly::optionsui::Board3D , monopoly::optionsui::Filtering ,
  monopoly::optionsui::Dithering , monopoly::optionsui::Resolution , monopoly::optionsui::Count
}
 

Functions

Rect monopoly::optionsui::menuButtonRect (MenuButton button) noexcept
 
std::optional< MenuButton > monopoly::optionsui::menuButtonHit (int x, int y) noexcept
 
Rect monopoly::optionsui::optionOkayRect () noexcept
 
Rect monopoly::optionsui::optionToggleRect (OptionToggle toggle, bool onSide) noexcept
 
bool monopoly::optionsui::optionToggleSupported (OptionToggle toggle) noexcept
 
Rect monopoly::optionsui::fileButtonRect (FileButton button) noexcept
 
std::optional< FileButton > monopoly::optionsui::fileButtonHit (int x, int y) noexcept
 
Rect monopoly::optionsui::helpButtonRect (HelpButton button) noexcept
 
std::optional< HelpButton > monopoly::optionsui::helpButtonHit (int x, int y) noexcept
 
std::size_t monopoly::optionsui::quickHelpPageLineCount (std::size_t totalLines, std::size_t firstLine, int lineHeight, bool initialPage) noexcept
 
bool monopoly::optionsui::beginFromIBar (State &state, display::Screen2D previousView) noexcept
 
void monopoly::optionsui::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 monopoly::optionsui::selectMusicTune (State &state, std::uint8_t tuneIndex) noexcept
 
InputResult monopoly::optionsui::processInput (State &state, display::Screen2D desiredView, const uimsg::Message &message) noexcept
 
void monopoly::optionsui::reset (State &state) noexcept
 

Variables

constexpr std::uint8_t monopoly::optionsui::MusicTuneCount = 5
 
constexpr std::array< OptionToggle, 8 > monopoly::optionsui::SupportedOptionToggles