Public Member Functions | |
MacLoomGui (ScummEngine *vm, const Common::Path &resourceFile) | |
const Common::String | name () const |
bool | handleEvent (Common::Event event) |
const Graphics::Font * | getFontByScummId (int32 id) |
void | setupCursor (int &width, int &height, int &hotspotX, int &hotspotY, int &animate) |
void | resetAfterLoad () |
void | update (int delta) |
void | runDraftsInventory () |
Public Member Functions inherited from Scumm::MacGuiImpl | |
MacGuiImpl (ScummEngine *vm, const Common::Path &resourceFile) | |
Graphics::Surface * | surface () |
int | toMacRoman (int unicode) const |
void | setPalette (const byte *palette, uint size) |
virtual void | initialize () |
void | updateWindowManager () |
const Graphics::Font * | getFont (FontId fontId) |
Graphics::Surface * | loadPict (int id) |
virtual bool | isVerbGuiActive () const |
virtual void | reset () |
bool | runQuitDialog () |
bool | runRestartDialog () |
virtual Graphics::Surface * | textArea () |
virtual void | clearTextArea () |
virtual void | initTextAreaForActor (Actor *a, byte color) |
virtual void | printCharToTextArea (int chr, int x, int y, int color) |
MacDialogWindow * | createWindow (Common::Rect bounds, MacDialogWindowStyle style=kStyleNormal) |
MacDialogWindow * | createDialog (int dialogId) |
void | drawBanner (char *message) |
void | undrawBanner () |
void | drawBitmap (Graphics::Surface *s, Common::Rect r, const uint16 *bitmap, Color color) const |
Protected Member Functions | |
bool | getFontParams (FontId fontId, int &id, int &size, int &slant) const |
bool | handleMenu (int id, Common::String &name) |
void | runAboutDialog () |
bool | runOpenDialog (int &saveSlotToHandle) |
bool | runSaveDialog (int &saveSlotToHandle, Common::String &name) |
bool | runOptionsDialog () |
Protected Member Functions inherited from Scumm::MacGuiImpl | |
MacGuiImpl::DelayStatus | delay (uint32 ms=0) |
Common::String | getDialogString (Common::SeekableReadStream *res, int len) |
void | prepareSaveLoad (Common::StringArray &savegameNames, bool *availSlots, int *slotIds, int size) |
bool | runOkCancelDialog (Common::String text) |
Additional Inherited Members | |
Static Public Member Functions inherited from Scumm::MacGuiImpl | |
static void | menuCallback (int id, Common::String &name, void *data) |
Public Attributes inherited from Scumm::MacGuiImpl | |
Graphics::MacWindowManager * | _windowManager = nullptr |
bool | _forceMenuClosed = false |
Protected Types inherited from Scumm::MacGuiImpl | |
enum | DelayStatus { kDelayDone = 0, kDelayInterrupted = 1, kDelayAborted } |
enum | Color { kBlack = 0, kBlue = 1, kGreen = 2, kCyan = 3, kRed = 4, kMagenta = 5, kBrown = 6, kLightGray = 7, kDarkGray = 8, kBrightBlue = 9, kBrightGreen = 10, kBrightCyan = 11, kBrightRed = 12, kBrightMagenta = 13, kBrightYellow = 14, kWhite = 15, kCustomColor = 100, kBackground = 254, kTransparency = 255 } |
enum | FontId { kSystemFont, kAboutFontRegular, kAboutFontBold, kAboutFontExtraBold, kAboutFontHeaderInside, kAboutFontHeaderOutside, kIndy3FontSmall, kIndy3FontMedium, kIndy3VerbFontRegular, kIndy3VerbFontBold, kIndy3VerbFontOutline, kLoomFontSmall, kLoomFontMedium, kLoomFontLarge } |
enum | TextStyle { kStyleHeader, kStyleBold, kStyleExtraBold, kStyleRegular } |
enum | MacDialogWindowStyle { kStyleNormal, kStyleRounded } |
Protected Attributes inherited from Scumm::MacGuiImpl | |
ScummEngine * | _vm = nullptr |
OSystem * | _system = nullptr |
Graphics::Surface * | _surface = nullptr |
MacGuiImpl::MacDialogWindow * | _bannerWindow = nullptr |
Common::Path | _resourceFile |
bool | _menuIsActive = false |
bool | _cursorWasVisible = false |
Common::HashMap< int, const Graphics::Font * > | _fonts |
int | _gameFontId = -1 |
byte | _unicodeToMacRoman [96] |