22#ifndef HOLLYWOOD_MONSTERS_GAMEPLAY_OPTIONS_MENU_H
23#define HOLLYWOOD_MONSTERS_GAMEPLAY_OPTIONS_MENU_H
25#include "common/array.h"
26#include "common/path.h"
27#include "common/str.h"
28#include "common/types.h"
29#include "graphics/managed_surface.h"
31#include "hollywood/monsters/graphics.h"
32#include "hollywood/monsters/music.h"
46 void setAudioContext(
const Common::Path &soundBank0ArchiveName,
bool hasSpeechPreviewSample,
47 uint16 speechPreviewSampleId);
77 bool loadMenuFramebuffer();
78 bool loadObjectPalette();
79 bool loadObjectPaletteFromResource000();
81 void pollEvents(
bool &done);
82 void handleKeyDown(uint16 keycode,
bool &done);
83 void handleLeftClick(uint16 cursorX, uint16 cursorY,
bool &done);
84 HitAction hitActionAt(uint16 cursorX, uint16 cursorY)
const;
85 bool isVolumeHitAction(HitAction action)
const;
86 bool applyVolumeHitAction(HitAction action);
87 void startHeldVolume(HitAction action);
88 void stopHeldVolume();
89 void advanceHeldVolume(uint32 delta);
90 bool pointInGlobalRect(uint16 cursorX, uint16 cursorY, uint16 left, uint16 top,
91 uint16 right, uint16 bottom)
const;
92 void changeVolume(
byte &volume,
int delta);
93 void setSpeechMode(
byte mode);
94 void beginAudioSession();
95 void endAudioSession();
96 void disableTestAudio();
97 void updateTestAudio();
99 uint16 testMusicCueId()
const;
100 uint16 testSoundCueId()
const;
101 void captureGameplayPreview();
102 byte nearestPreviewPaletteColor(uint red, uint green, uint blue)
const;
103 void composeScreen();
104 void drawGameplayPreview();
108 byte color,
bool centered);
109 void drawQuitConfirmationBacking();
110 void drawQuitButtonFrame(
int globalLeft,
int globalRight);
111 void shiftGlobalRectColors(
int globalLeft,
int top,
int globalRight,
int bottom,
int delta);
112 void drawStatusDot(
int globalX,
int y,
byte color);
113 void drawStatusDots();
114 void drawValueBar(
int rowIndex,
byte value,
byte color);
115 void drawToggleSquare(
int columnIndex,
int rowIndex,
byte color);
129 uint16 _speechPreviewSampleId;
133 bool _sceneMusicWasPlaying;
134 bool _hasSpeechPreviewSample;
135 HitAction _heldVolumeAction;
136 uint32 _heldVolumeAccumulator;
137 uint32 _heldVolumeRepeatMillis;
Definition: managed_surface.h:51
Definition: hollywood.h:47
Definition: graphics.h:74
Definition: graphics.h:51
Definition: formatinfo.h:28