Mario Kart 64
Loading...
Searching...
No Matches
GameUI Namespace Reference

Namespaces

namespace  Freecam
 
namespace  Multiplayer
 

Data Structures

class  PortMenu
 

Enumerations

enum  setting { UPDATE_aspectRatioX , UPDATE_aspectRatioY , UPDATE_verticalPixelCount }
 
enum  messageType {
  MESSAGE_ERROR , MESSAGE_WARNING , MESSAGE_QUESTION , MESSAGE_INFO ,
  MESSAGE_GRAY_75
}
 

Functions

void SetupGuiElements ()
 
void Destroy ()
 
std::string GetWindowButtonText (const char *text, bool menuOpen)
 
void RegisterResolutionWidgets ()
 
void UpdateResolutionVars ()
 
bool IsDroppingFrames ()
 

Variables

std::shared_ptr< PortMenumPortMenu
 
std::shared_ptr< Ship::GuiWindow > mConsoleWindow
 
std::shared_ptr< Ship::GuiWindow > mStatsWindow
 
std::shared_ptr< Ship::GuiWindow > mInputEditorWindow
 
std::shared_ptr< Ship::GuiWindow > mGfxDebuggerWindow
 
std::shared_ptr< Ship::GuiWindow > mMultiplayerWindow
 
std::shared_ptr< Ship::GuiWindow > mToolsWindow
 
std::shared_ptr< Ship::GuiWindow > mSceneExplorerWindow
 
std::shared_ptr< Ship::GuiWindow > mPropertiesWindow
 
std::shared_ptr< Ship::GuiWindow > mTrackPropertiesWindow
 
std::shared_ptr< Ship::GuiWindow > mContentBrowserWindow
 
int32_t motionBlurStrength
 
static const std::unordered_map< int32_t, const char * > menuThemeOptions
 
static const std::unordered_map< int32_t, const char * > introBehaviourOptions
 
static const std::unordered_map< int32_t, const char * > textureFilteringMap
 
static const std::unordered_map< int32_t, const char * > motionBlurOptions
 
static const std::unordered_map< int32_t, const char * > logLevels
 
std::unordered_map< int32_t, const char * > aspectRatioPresetLabels
 
const float aspectRatioPresetsX [] = { 0.0f, 16.0f, 4.0f, 16.0f, 5.0f, 16.0f, 21.0f }
 
const float aspectRatioPresetsY [] = { 0.0f, 9.0f, 3.0f, 9.0f, 3.0f, 10.0f, 9.0f }
 
const int default_aspectRatio = 1
 
const char * pixelCountPresetLabels []
 
const int pixelCountPresets [] = { 480, 240, 480, 720, 960, 1200, 1440, 1080, 2160 }
 
const int default_pixelCount = 0
 
const uint32_t minVerticalPixelCount = SCREEN_HEIGHT
 
const uint32_t maxVerticalPixelCount = 4320
 
const unsigned short default_maxIntegerScaleFactor = 6
 
const ImVec4 messageColor []
 
static const float enhancementSpacerHeight = 19.0f
 
static bool update [3]
 
static short max_integerScaleFactor = default_maxIntegerScaleFactor
 
static short integerScale_maximumBounds = 1
 
static int32_t item_aspectRatio
 
static int32_t item_pixelCount
 
static float aspectRatioX
 
static float aspectRatioY
 
static int32_t verticalPixelCount
 
static bool showHorizontalResField
 
static int32_t horizontalPixelCount
 
static bool disabled_everything
 
static bool disabled_pixelCount
 
static RegisterMenuUpdateFunc updateFunc (UpdateResolutionVars, "Settings", "Graphics")
 
static RegisterMenuInitFunc initFunc (RegisterResolutionWidgets)
 

Enumeration Type Documentation

◆ messageType

Enumerator
MESSAGE_ERROR 
MESSAGE_WARNING 
MESSAGE_QUESTION 
MESSAGE_INFO 
MESSAGE_GRAY_75 

◆ setting

Enumerator
UPDATE_aspectRatioX 
UPDATE_aspectRatioY 
UPDATE_verticalPixelCount 

Function Documentation

◆ Destroy()

void GameUI::Destroy ( )

◆ GetWindowButtonText()

std::string GameUI::GetWindowButtonText ( const char * text,
bool menuOpen )

◆ IsDroppingFrames()

bool GameUI::IsDroppingFrames ( )
Here is the caller graph for this function:

◆ RegisterResolutionWidgets()

void GameUI::RegisterResolutionWidgets ( )
Here is the call graph for this function:

◆ SetupGuiElements()

void GameUI::SetupGuiElements ( )

◆ UpdateResolutionVars()

void GameUI::UpdateResolutionVars ( )
Here is the call graph for this function:

Variable Documentation

◆ aspectRatioPresetLabels

std::unordered_map<int32_t, const char*> GameUI::aspectRatioPresetLabels
Initial value:
= { { 0, "Off" },
{ 1, "Custom" },
{ 2, "Original (4:3)" },
{ 3, "Widescreen (16:9)" },
{ 4, "Nintendo 3DS (5:3)" },
{ 5, "16:10 (8:5)" },
{ 6, "Ultrawide (21:9)" } }

◆ aspectRatioPresetsX

const float GameUI::aspectRatioPresetsX[] = { 0.0f, 16.0f, 4.0f, 16.0f, 5.0f, 16.0f, 21.0f }

◆ aspectRatioPresetsY

const float GameUI::aspectRatioPresetsY[] = { 0.0f, 9.0f, 3.0f, 9.0f, 3.0f, 10.0f, 9.0f }

◆ aspectRatioX

float GameUI::aspectRatioX
static

◆ aspectRatioY

float GameUI::aspectRatioY
static

◆ default_aspectRatio

const int GameUI::default_aspectRatio = 1

◆ default_maxIntegerScaleFactor

const unsigned short GameUI::default_maxIntegerScaleFactor = 6

◆ default_pixelCount

const int GameUI::default_pixelCount = 0

◆ disabled_everything

bool GameUI::disabled_everything
static

◆ disabled_pixelCount

bool GameUI::disabled_pixelCount
static

◆ enhancementSpacerHeight

const float GameUI::enhancementSpacerHeight = 19.0f
static

◆ horizontalPixelCount

int32_t GameUI::horizontalPixelCount
static

◆ initFunc

◆ integerScale_maximumBounds

short GameUI::integerScale_maximumBounds = 1
static

◆ introBehaviourOptions

const std::unordered_map<int32_t, const char*> GameUI::introBehaviourOptions
static
Initial value:
= {
{ 0, "Both" },
{ 1, "Authentic" },
{ 2, "Start Menu" },
{ 3, "Main Menu" },
}

◆ item_aspectRatio

int32_t GameUI::item_aspectRatio
static

◆ item_pixelCount

int32_t GameUI::item_pixelCount
static

◆ logLevels

const std::unordered_map<int32_t, const char*> GameUI::logLevels
static
Initial value:
= {
{ DEBUG_LOG_TRACE, "Trace" }, { DEBUG_LOG_DEBUG, "Debug" }, { DEBUG_LOG_INFO, "Info" },
{ DEBUG_LOG_WARN, "Warn" }, { DEBUG_LOG_ERROR, "Error" }, { DEBUG_LOG_CRITICAL, "Critical" },
{ DEBUG_LOG_OFF, "Off" },
}
@ DEBUG_LOG_WARN
Definition MenuTypes.h:70
@ DEBUG_LOG_INFO
Definition MenuTypes.h:69
@ DEBUG_LOG_ERROR
Definition MenuTypes.h:71
@ DEBUG_LOG_OFF
Definition MenuTypes.h:73
@ DEBUG_LOG_TRACE
Definition MenuTypes.h:67
@ DEBUG_LOG_DEBUG
Definition MenuTypes.h:68
@ DEBUG_LOG_CRITICAL
Definition MenuTypes.h:72

◆ max_integerScaleFactor

short GameUI::max_integerScaleFactor = default_maxIntegerScaleFactor
static

◆ maxVerticalPixelCount

const uint32_t GameUI::maxVerticalPixelCount = 4320

◆ mConsoleWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mConsoleWindow

◆ mContentBrowserWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mContentBrowserWindow

◆ menuThemeOptions

const std::unordered_map<int32_t, const char*> GameUI::menuThemeOptions
static
Initial value:
= {
{ UIWidgets::Colors::DarkRed, "Dark Red" },
{ UIWidgets::Colors::DarkGreen, "Dark Green" },
{ UIWidgets::Colors::LightBlue, "Light Blue" },
{ UIWidgets::Colors::DarkBlue, "Dark Blue" },
{ UIWidgets::Colors::DarkGray, "Dark Gray" },
}
@ Blue
Definition UIWidgets.h:47
@ Red
Definition UIWidgets.h:41
@ DarkRed
Definition UIWidgets.h:42
@ Purple
Definition UIWidgets.h:51
@ DarkGray
Definition UIWidgets.h:54
@ Violet
Definition UIWidgets.h:50
@ Brown
Definition UIWidgets.h:52
@ Green
Definition UIWidgets.h:44
@ Gray
Definition UIWidgets.h:53
@ DarkBlue
Definition UIWidgets.h:48
@ Indigo
Definition UIWidgets.h:49
@ Orange
Definition UIWidgets.h:43
@ DarkGreen
Definition UIWidgets.h:45
@ LightBlue
Definition UIWidgets.h:46

◆ messageColor

const ImVec4 GameUI::messageColor[]
Initial value:
{
{ 0.85f, 0.0f, 0.0f, 1.0f },
{ 0.85f, 0.85f, 0.0f, 1.0f },
{ 0.0f, 0.85f, 0.85f, 1.0f },
{ 0.0f, 0.85f, 0.55f, 1.0f },
{ 0.75f, 0.75f, 0.75f, 1.0f }
}

◆ mGfxDebuggerWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mGfxDebuggerWindow

◆ mInputEditorWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mInputEditorWindow

◆ minVerticalPixelCount

const uint32_t GameUI::minVerticalPixelCount = SCREEN_HEIGHT

◆ mMultiplayerWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mMultiplayerWindow

◆ motionBlurOptions

const std::unordered_map<int32_t, const char*> GameUI::motionBlurOptions
static
Initial value:
= {
{ MOTION_BLUR_DYNAMIC, "Dynamic (default)" },
{ MOTION_BLUR_ALWAYS_OFF, "Always Off" },
{ MOTION_BLUR_ALWAYS_ON, "Always On" },
}
@ MOTION_BLUR_DYNAMIC
Definition MenuTypes.h:61
@ MOTION_BLUR_ALWAYS_ON
Definition MenuTypes.h:63
@ MOTION_BLUR_ALWAYS_OFF
Definition MenuTypes.h:62

◆ motionBlurStrength

int32_t GameUI::motionBlurStrength

◆ mPortMenu

std::shared_ptr< PortMenu > GameUI::mPortMenu

◆ mPropertiesWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mPropertiesWindow

◆ mSceneExplorerWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mSceneExplorerWindow

◆ mStatsWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mStatsWindow

◆ mToolsWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mToolsWindow

◆ mTrackPropertiesWindow

std::shared_ptr<Ship::GuiWindow> GameUI::mTrackPropertiesWindow

◆ pixelCountPresetLabels

const char* GameUI::pixelCountPresetLabels[]
Initial value:
= { "Custom", "Native N64 (240p)", "2x (480p)", "3x (720p)", "4x (960p)",
"5x (1200p)", "6x (1440p)", "Full HD (1080p)", "4K (2160p)" }

◆ pixelCountPresets

const int GameUI::pixelCountPresets[] = { 480, 240, 480, 720, 960, 1200, 1440, 1080, 2160 }

◆ showHorizontalResField

bool GameUI::showHorizontalResField
static

◆ textureFilteringMap

const std::unordered_map<int32_t, const char*> GameUI::textureFilteringMap
static
Initial value:
= {
{ Fast::FilteringMode::FILTER_THREE_POINT, "Three-Point" },
{ Fast::FilteringMode::FILTER_LINEAR, "Linear" },
{ Fast::FilteringMode::FILTER_NONE, "None" },
}

◆ update

bool GameUI::update[3]
static

◆ updateFunc

RegisterMenuUpdateFunc GameUI::updateFunc(UpdateResolutionVars, "Settings", "Graphics") ( UpdateResolutionVars ,
"Settings" ,
"Graphics"  )
static

◆ verticalPixelCount

int32_t GameUI::verticalPixelCount
static