[Scummvm-git-logs] scummvm master -> 5b0087bf46124f29141e2248cefbceae3b0c33be
sev-
sev at scummvm.org
Fri Jul 10 19:52:01 UTC 2020
This automated email contains information about 3 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
21b7dc5cf6 DIRECTOR: LINGO: Added stubs for 'the cast' field getters
8f75b1bdd7 DIRECTOR: LINGO: Added stubs for 'the cast' setters
5b0087bf46 DIRECTRO: LINGO: Added stubs for getters/setters of 'the field'
Commit: 21b7dc5cf6fe46be52ced7a85282bd1e61994c87
https://github.com/scummvm/scummvm/commit/21b7dc5cf6fe46be52ced7a85282bd1e61994c87
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-07-10T21:51:34+02:00
Commit Message:
DIRECTOR: LINGO: Added stubs for 'the cast' field getters
Changed paths:
engines/director/lingo/lingo-the.cpp
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index 0a0746eff2..6c81402648 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -1335,24 +1335,84 @@ Datum Lingo::getTheCast(Datum &id1, int field) {
case kTheCastType:
d.u.i = castType;
break;
+ case kTheCenter:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheController:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheCrop:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheDepth:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheDirectToStage:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheDuration:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheFileName:
d = Datum(castInfo->fileName);
break;
case kTheForeColor:
d.u.i = member->getForeColor();
break;
+ case kTheFrameRate:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheHeight:
d.u.i = cast->getCastMemberInitialRect(id).height();
break;
+ case kTheHilite:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheLoaded:
d.u.i = 1; //Not loaded handled above
break;
+ case kTheLoop:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheModified:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheName:
d = Datum(castInfo->name);
break;
+ case kTheNumber:
+ d.u.i = id;
+ break;
+ case kThePausedAtStart:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kThePreLoad:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheRect:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheRegPoint:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kThePalette:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kThePicture:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kThePurgePriority:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheScriptText:
d = Datum(castInfo->script);
break;
+ case kTheSize:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheSound:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheText:
{
Common::String text;
@@ -1368,12 +1428,12 @@ Datum Lingo::getTheCast(Datum &id1, int field) {
d = Datum(text);
}
break;
+ case kTheVideo:
+ warning("STUB: Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheWidth:
d.u.i = cast->getCastMemberInitialRect(id).width();
break;
- case kTheNumber:
- d.u.i = id;
- break;
default:
warning("Lingo::getTheCast(): Unprocessed getting field \"%s\" of cast %d", field2str(field), id);
d.type = VOID;
Commit: 8f75b1bdd7939c2946e304516582c0a863aa2f2a
https://github.com/scummvm/scummvm/commit/8f75b1bdd7939c2946e304516582c0a863aa2f2a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-07-10T21:51:34+02:00
Commit Message:
DIRECTOR: LINGO: Added stubs for 'the cast' setters
Changed paths:
engines/director/lingo/lingo-the.cpp
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index 6c81402648..ad6e911e14 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -1465,17 +1465,36 @@ void Lingo::setTheCast(Datum &id1, int field, Datum &d) {
CastMemberInfo *castInfo = cast->getCastMemberInfo(id);
switch (field) {
- case kTheBackColor: {
- int color = _vm->transformColor(d.asInt());
- member->setColors(nullptr, &color);
- break;
- }
+ case kTheBackColor:
+ {
+ int color = _vm->transformColor(d.asInt());
+ member->setColors(nullptr, &color);
+ break;
+ }
case kTheCastType:
// TODO: You can actually switch the cast type!?
warning("Lingo::setTheCast(): Tried to switch cast type of %d", id);
//cast->type = static_cast<CastType>(d.u.i);
//cast->modified = 1;
break;
+ case kTheCenter:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheController:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheCrop:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheDepth:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheDirectToStage:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheDuration:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheFileName:
if (!castInfo) {
warning("Lingo::setTheCast(): The cast %d not found. type: %d", id, castType);
@@ -1483,11 +1502,15 @@ void Lingo::setTheCast(Datum &id1, int field, Datum &d) {
}
castInfo->fileName = d.asString();
break;
- case kTheForeColor: {
- int color = _vm->transformColor(d.asInt());
- member->setColors(&color, nullptr);
+ case kTheForeColor:
+ {
+ int color = _vm->transformColor(d.asInt());
+ member->setColors(&color, nullptr);
+ break;
+ }
+ case kTheFrameRate:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
break;
- }
case kTheHeight:
cast->getCastMemberInitialRect(id).setHeight(d.asInt());
cast->setCastMemberModified(id);
@@ -1504,6 +1527,9 @@ void Lingo::setTheCast(Datum &id1, int field, Datum &d) {
warning("Lingo::setTheCast: Attempted to set hilite of unsupported cast type");
}
break;
+ case kTheLoop:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheName:
if (!castInfo) {
warning("Lingo::setTheCast(): The cast %d not found. type: %d", id, castType);
@@ -1511,6 +1537,27 @@ void Lingo::setTheCast(Datum &id1, int field, Datum &d) {
}
castInfo->name = d.asString();
break;
+ case kThePausedAtStart:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kThePreLoad:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheRect:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kTheRegPoint:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kThePalette:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kThePicture:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
+ case kThePurgePriority:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheScriptText:
if (!castInfo) {
warning("Lingo::setTheCast(): The cast %d not found. type: %d", id, castType);
@@ -1519,6 +1566,9 @@ void Lingo::setTheCast(Datum &id1, int field, Datum &d) {
cast->_lingoArchive->addCode(d.u.s->c_str(), kCastScript, id);
castInfo->script = d.asString();
break;
+ case kTheSound:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheText:
if (castType == kCastText) {
if (member->_type == kCastText) {
@@ -1531,6 +1581,9 @@ void Lingo::setTheCast(Datum &id1, int field, Datum &d) {
warning("Lingo::setTheCast(): Unprocessed setting text of cast %d type %d", id, castType);
}
break;
+ case kTheVideo:
+ warning("STUB: Lingo::setTheCast(): Unprocessed setting field \"%s\" of cast %d", field2str(field), id);
+ break;
case kTheWidth:
cast->getCastMemberInitialRect(id).setWidth(d.asInt());
cast->setCastMemberModified(id);
Commit: 5b0087bf46124f29141e2248cefbceae3b0c33be
https://github.com/scummvm/scummvm/commit/5b0087bf46124f29141e2248cefbceae3b0c33be
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-07-10T21:51:34+02:00
Commit Message:
DIRECTRO: LINGO: Added stubs for getters/setters of 'the field'
Changed paths:
engines/director/lingo/lingo-the.cpp
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index ad6e911e14..9d207dad34 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -1607,6 +1607,9 @@ Datum Lingo::getTheField(Datum &id1, int field) {
}
switch (field) {
+ case kTheText:
+ warning("Lingo::getTheField(): Unprocessed getting field \"%s\" of field %d", field2str(field), id);
+ break;
case kTheTextAlign:
d.type = STRING;
switch (((Graphics::MacText *)member->_widget)->getAlign()) {
@@ -1625,6 +1628,18 @@ Datum Lingo::getTheField(Datum &id1, int field) {
break;
}
break;
+ case kTheTextFont:
+ warning("Lingo::getTheField(): Unprocessed getting field \"%s\" of field %d", field2str(field), id);
+ break;
+ case kTheTextHeight:
+ warning("Lingo::getTheField(): Unprocessed getting field \"%s\" of field %d", field2str(field), id);
+ break;
+ case kTheTextSize:
+ warning("Lingo::getTheField(): Unprocessed getting field \"%s\" of field %d", field2str(field), id);
+ break;
+ case kTheTextStyle:
+ warning("Lingo::getTheField(): Unprocessed getting field \"%s\" of field %d", field2str(field), id);
+ break;
default:
warning("Lingo::getTheField(): Unprocessed getting field \"%s\" of field %d", field2str(field), id);
}
@@ -1651,27 +1666,43 @@ void Lingo::setTheField(Datum &id1, int field, Datum &d) {
}
switch (field) {
- case kTheTextAlign: {
- Common::String select = d.asString(true);
- select.toLowercase();
-
- Graphics::TextAlign align;
- if (select == "\"left\"") {
- align = Graphics::kTextAlignLeft;
- } else if (select == "\"center\"") {
- align = Graphics::kTextAlignCenter;
- } else if (select == "\"right\"") {
- align = Graphics::kTextAlignRight;
- } else {
- warning("Lingo::setTheField: Unknown text align spec: %s", d.asString(true).c_str());
+ case kTheText:
+ warning("Lingo::setTheField(): Unprocessed setting field \"%s\" of field %d", field2str(field), id);
+ break;
+ case kTheTextAlign:
+ {
+ Common::String select = d.asString(true);
+ select.toLowercase();
+
+ Graphics::TextAlign align;
+ if (select == "\"left\"") {
+ align = Graphics::kTextAlignLeft;
+ } else if (select == "\"center\"") {
+ align = Graphics::kTextAlignCenter;
+ } else if (select == "\"right\"") {
+ align = Graphics::kTextAlignRight;
+ } else {
+ warning("Lingo::setTheField: Unknown text align spec: %s", d.asString(true).c_str());
+ break;
+ }
+
+ ((Graphics::MacText *)member->_widget)->setAlignOffset(align);
+ ((Graphics::MacText *)member->_widget)->draw();
+ member->_modified = true;
break;
}
-
- ((Graphics::MacText *)member->_widget)->setAlignOffset(align);
- ((Graphics::MacText *)member->_widget)->draw();
- member->_modified = true;
+ case kTheTextFont:
+ warning("Lingo::setTheField(): Unprocessed setting field \"%s\" of field %d", field2str(field), id);
+ break;
+ case kTheTextHeight:
+ warning("Lingo::setTheField(): Unprocessed setting field \"%s\" of field %d", field2str(field), id);
+ break;
+ case kTheTextSize:
+ warning("Lingo::setTheField(): Unprocessed setting field \"%s\" of field %d", field2str(field), id);
+ break;
+ case kTheTextStyle:
+ warning("Lingo::setTheField(): Unprocessed setting field \"%s\" of field %d", field2str(field), id);
break;
- }
default:
warning("Lingo::setTheField(): Unprocessed setting field \"%s\" of field %d", field2str(field), id);
}
More information about the Scummvm-git-logs
mailing list