coastline 0.0.4
Loading...
Searching...
No Matches
menuscreen.h File Reference

The menu screen of the Nintendo 64 release that every menu shares, ProcessScreenState() of the console: a title, the items one at a time as models turning on a stage under a spotlight, the buttons at the bottom, and the fades and the sounds of moving and choosing. More...

#include <array>
#include <cstdint>
#include <filesystem>
#include <functional>
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <vector>
#include "common/types.h"
#include "scenerenderer.h"
Include dependency graph for menuscreen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  coastline::MenuButtons
 The presses of a controller that act on a menu, each true on the frame it starts. More...
struct  coastline::MenuItem
 An item of a menu screen. More...
struct  coastline::MenuSetup
 What a frame of a screen shows, the arguments of ProcessScreenState(). More...
struct  coastline::MenuTitleImage
 A picture over the title of a screen, and its rectangle on the 320 by 240 screen. More...
class  coastline::MenuScreen
 The state and the assets of the menu screens, read once from the import of a release. More...

Namespaces

namespace  coastline

Enumerations

enum class  coastline::MenuResult {
  coastline::None , coastline::Chosen , coastline::Cancelled , coastline::Up ,
  coastline::Down
}
 What a frame of a menu screen ends with, the results of ProcessScreenState(). More...

Variables

constexpr u32 coastline::MENU_ITEM_ADJUSTABLE = 0x01
 The flag of an item whose up and down change it in place, as MenuResult::Up and Down.
constexpr u32 coastline::MENU_ITEM_IMMEDIATE = 0x02
 The flag of an item chosen at once, without fading the screen out.
constexpr u32 coastline::MENU_ITEM_SPINNING = 0x04
 The flag of an item drawn as its model spinning round as the items slide.
constexpr u32 coastline::MENU_ITEM_UNAVAILABLE = 0x08
 The flag of an item that cannot be chosen, whose screen explains why.
constexpr u32 coastline::MENU_ITEM_MIRRORED_MODEL = 0x10
 The flag of an item whose model is drawn mirrored.
constexpr u32 coastline::MENU_ITEM_FIRST_PLAYER = 0x20
 The flag of an item only the first player may choose.
constexpr u32 coastline::MENU_ITEM_LOCKED = 0x80000000
 The flag of an item that cannot be chosen, without a reason shown.

Detailed Description

The menu screen of the Nintendo 64 release that every menu shares, ProcessScreenState() of the console: a title, the items one at a time as models turning on a stage under a spotlight, the buttons at the bottom, and the fades and the sounds of moving and choosing.