mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 17:20:30 +00:00
DIRECTOR: LINGO: Add custom asString for window
This commit is contained in:
parent
b014a78df1
commit
73c25028b8
@ -319,6 +319,10 @@ void LM::m_respondsTo(int nargs) {
|
||||
|
||||
// Window
|
||||
|
||||
Common::String Stage::asString() {
|
||||
return "window \"" + getName() + "\"";
|
||||
}
|
||||
|
||||
bool Stage::hasProp(const Common::String &propName) {
|
||||
Common::String fieldName = Common::String::format("%d%s", kTheWindow, propName.c_str());
|
||||
return g_lingo->_theEntityFields.contains(fieldName);
|
||||
|
@ -144,6 +144,7 @@ class Stage : public Graphics::MacWindow, public Object<Stage> {
|
||||
void loadMac(const Common::String movie);
|
||||
|
||||
// lingo/lingo-object.cpp
|
||||
virtual Common::String asString();
|
||||
virtual bool hasProp(const Common::String &propName);
|
||||
virtual Datum getProp(const Common::String &propName);
|
||||
virtual bool setProp(const Common::String &propName, const Datum &value);
|
||||
|
Loading…
Reference in New Issue
Block a user