66 using Callback = void (*)(
int nPlayer,
int nEvent,
void *pData);
76 RemixHUD(
int nPlayer,
const char *pszEffectLabel);
237 void SelectPanel(
int nIndex);
246 void SelectEntry(
int nEntry);
256 void OpenPanel(
int nIndex,
bool bOpen);
276 void SetPeerIndex(
int nIndex);
287 void AddPanel(
int nType,
const char *pszLabel,
int nPostLabel);
295 void AddChorusPanel();
319 void AddStutterPanel();
328 void AddEffectPanel(
const char *pszLabel);
344 void AddTempoPanel();
373 void Navigate(
bool bUp,
bool bRepeat);
404 std::vector<int> mPeers;
408 std::vector<int> mPanelTypes;
409 std::vector<int> mPanelOfType;
410 std::vector<GfxManager::RemixSubPanel> mSubPanels;
411 std::vector<int> mEntryCounts;
RemixSubPanel
Sub-panel of a player's remix menu.
Definition gfxmanager.h:90
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
Owner of one reference to an Attachment.
Definition ptr.h:16
PanelType
Kind of a panel.
Definition remixhud.h:23
@ kPanelChorus
Definition remixhud.h:26
@ kPanelLoop
Definition remixhud.h:24
@ kPanelSolo
Definition remixhud.h:29
@ kPanelEffect
Definition remixhud.h:28
@ kNumPanelTypes
Definition remixhud.h:32
@ kPanelTempo
Definition remixhud.h:30
@ kPanelStutter
Definition remixhud.h:27
@ kPanelBoot
Definition remixhud.h:31
@ kPanelMute
Definition remixhud.h:25
void SetLoop(int nOn)
Show whether loop is on.
void SetChorus(int nOn)
Show whether chorus is on.
~RemixHUD() override
Release the controller when the menu has it.
void(*)(int nPlayer, int nEvent, void *pData) Callback
Receiver of the player's choices.
Definition remixhud.h:66
void SetEffect(int nOn)
Show whether the constructor's effect is on.
bool DispatchPriv(Message *pMsg) override
Act on a press of the player's controller.
static constexpr int kModeMute
Value of SetMode() under which the mute panel can be chosen.
Definition remixhud.h:36
void OpenTempo()
Open the panel at index 1, the tempo panel when the menu has one, unless the tempo control is already...
void SetTempo(float fTempo, int nDimmed)
Show the tempo on the tempo panel and in the tempo control.
void SetFocused(int nFocused)
Give the controller to the menu or take it away.
void SetMute(int nOn)
Record whether mute is on, shown only in kModeMute.
RemixHUD(int nPlayer, const char *pszEffectLabel)
Construct the menu of a player and add its panels.
void RemovePeer(int nPeer)
Remove a player from the players the host can remove.
void SetStutter(int nOn)
Show whether stutter is on.
void SetActive(int nActive)
Activate or deactivate the menu.
void CloseTempo()
Close the tempo control when it is open.
Event
What the player chose, as the callback receives it.
Definition remixhud.h:39
@ kEventTempoOpened
Definition remixhud.h:55
@ kEventStutterOn
Definition remixhud.h:47
@ kEventNone
Definition remixhud.h:40
@ kEventMuteOn
Definition remixhud.h:41
@ kEventTempoDown
Definition remixhud.h:54
@ kEventMuteOff
Definition remixhud.h:42
@ kEventBootFirst
Definition remixhud.h:56
@ kEventLoopOff
Definition remixhud.h:44
@ kEventTempoUp
Definition remixhud.h:53
@ kEventEffectOn
Definition remixhud.h:49
@ kEventStutterOff
Definition remixhud.h:48
@ kEventSoloOff
Definition remixhud.h:52
@ kEventLoopOn
Definition remixhud.h:43
@ kEventChorusOff
Definition remixhud.h:46
@ kEventChorusOn
Definition remixhud.h:45
@ kEventSoloOn
Definition remixhud.h:51
@ kEventEffectOff
Definition remixhud.h:50
void SetSolo(int nOn)
Show whether solo is on.
void SetCallback(Callback pfnCallback, void *pData)
Set the receiver of the player's choices.
void SetMode(int nMode)
Set the mode of the player's track.