22#ifndef HOLLYWOOD_MONSTERS_GAMEPLAY_DIALOGUE_MENU_H
23#define HOLLYWOOD_MONSTERS_GAMEPLAY_DIALOGUE_MENU_H
25#include "common/array.h"
26#include "common/str.h"
27#include "common/types.h"
35 byte nextNodeIndex = 0;
36 byte transitionMode = 0;
37 byte playerTextRowId = 0;
38 byte responseFrameIndex = 0;
39 byte disableAfterUse = 0;
46 bool firstLineOfChoice =
false;
47 bool selectable =
true;
52 bool visible()
const {
return lineCount != 0; }
53 byte choiceForLine(
byte lineIndex)
const;
57 byte highlightedLineIndex = 0xff;
70 virtual Common::String dialogueMenuText(
byte stageId,
byte textRowId)
const = 0;
72 virtual byte redirectDialogueMenuChoice(
byte depthIndex,
byte nodeIndex,
byte choiceIndex)
const;
73 virtual void advanceDialogueMenu(uint32 deltaMillis) = 0;
74 virtual void drawDialogueMenuFrame() = 0;
87 kCancelledChoice = 0xff
93 byte depthIndex,
byte nodeIndex);
100 kMaxVisibleLines = 10
104 byte depthIndex,
byte nodeIndex,
byte &selectableChoiceCount);
105 void appendWrappedChoiceText(
byte choiceIndex,
const Common::String &text,
bool selectable);
106 bool pollEvents(
bool &selected,
bool &cancelled);
107 bool animateChoiceRedirect(
byte choiceIndex);
108 bool waitForChoiceRedirect(uint32 millis);
109 void updateHoverFromCursor();
110 byte lineAt(uint16 cursorY)
const;
Definition: hollywood.h:47
Definition: dialogue_menu.h:33