#include <controls32.h>
Public Member Functions | |
GfxControls32 (SegManager *segMan, GfxCache *cache, GfxText32 *text) | |
reg_t | kernelEditText (const reg_t controlObject) |
reg_t | kernelInputText (const reg_t textObject, const reg_t titleTextObject, const int16 maxTextLength) |
reg_t | makeScrollWindow (const Common::Rect &gameRect, const Common::Point &position, const reg_t plane, const uint8 defaultForeColor, const uint8 defaultBackColor, const GuiResourceId defaultFontId, const TextAlign defaultAlignment, const int16 defaultBorderColor, const uint16 maxNumEntries) |
ScrollWindow * | getScrollWindow (const reg_t id) |
void | destroyScrollWindow (const reg_t id) |
reg_t | kernelMessageBox (const Common::String &message, const Common::String &title, const uint16 style) |
Controls class, handles drawing of UI controls in SCI32 games that use kernel controls instead of custom script controls.
reg_t Sci::GfxControls32::makeScrollWindow | ( | const Common::Rect & | gameRect, |
const Common::Point & | position, | ||
const reg_t | plane, | ||
const uint8 | defaultForeColor, | ||
const uint8 | defaultBackColor, | ||
const GuiResourceId | defaultFontId, | ||
const TextAlign | defaultAlignment, | ||
const int16 | defaultBorderColor, | ||
const uint16 | maxNumEntries | ||
) |
Creates a new scrollable window and returns the ID for the new window, which is used by game scripts to interact with scrollable windows.
ScrollWindow* Sci::GfxControls32::getScrollWindow | ( | const reg_t | id | ) |
Gets a registered ScrollWindow instance by ID.
void Sci::GfxControls32::destroyScrollWindow | ( | const reg_t | id | ) |
Destroys the scroll window with the given ID.
reg_t Sci::GfxControls32::kernelMessageBox | ( | const Common::String & | message, |
const Common::String & | title, | ||
const uint16 | style | ||
) |
Displays an OS-level message dialog.