diff options
Diffstat (limited to 'src/T2DLL/T2OuterObjDef.cpp')
-rw-r--r-- | src/T2DLL/T2OuterObjDef.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/T2DLL/T2OuterObjDef.cpp b/src/T2DLL/T2OuterObjDef.cpp index 5c8ec2a..f06e18e 100644 --- a/src/T2DLL/T2OuterObjDef.cpp +++ b/src/T2DLL/T2OuterObjDef.cpp @@ -51,8 +51,7 @@ T2OuterObjDef::T2OuterObjDef(DWORD type, T2PluginSpecifier& specifier, CResFile* if (IntersectRect(&intersect, &theOutObj->_3C, &rect)) { if (arg2) { // "重ねて設置できません" - cannot be placed on top of each other - CString str = "\x8F\x64\x82\xCB\x82\xC4\x90\xDD\x92\x75\x82\xC5\x82\xAB\x82\xDC\x82\xB9\x81\xF1"; - (new T2Message)->ShowMessage(str); + (new T2Message)->ShowMessage("\x8F\x64\x82\xCB\x82\xC4\x90\xDD\x92\x75\x82\xC5\x82\xAB\x82\xDC\x82\xB9\x81\xF1"); } return AreaCheckCode_0; } @@ -63,8 +62,7 @@ T2OuterObjDef::T2OuterObjDef(DWORD type, T2PluginSpecifier& specifier, CResFile* if (!inDoc->mFloorInfo->GetTenant(y, x)) { if (arg2) { // "はみだして設置できません" - it cannot be installed as it protrudes - CString str = "\x82\xCD\x82\xDD\x82\xBE\x82\xB5\x82\xC4\x90\xDD\x92\x75\x82\xC5\x82\xAB\x82\xDC\x82\xB9\x82\xF1"; - (new T2Message)->ShowMessage(str); + (new T2Message)->ShowMessage("\x82\xCD\x82\xDD\x82\xBE\x82\xB5\x82\xC4\x90\xDD\x92\x75\x82\xC5\x82\xAB\x82\xDC\x82\xB9\x82\xF1"); } return AreaCheckCode_0; } @@ -74,8 +72,7 @@ T2OuterObjDef::T2OuterObjDef(DWORD type, T2PluginSpecifier& specifier, CResFile* if (rect.bottom > (inDoc->mWorldDef->mGroundLine - inDoc->mWorldDef->mLobbyHeight)) { if (arg2) { // "ここには設置できません" - cannot be installed here - CString str = "\x82\xB1\x82\xB1\x82\xC9\x82\xCD\x90\xDD\x92\x75\x82\xC5\x82\xAB\x82\xDC\x82\xB9\x82\xF1"; - (new T2Message)->ShowMessage(str); + (new T2Message)->ShowMessage("\x82\xB1\x82\xB1\x82\xC9\x82\xCD\x90\xDD\x92\x75\x82\xC5\x82\xAB\x82\xDC\x82\xB9\x82\xF1"); } return AreaCheckCode_0; } @@ -84,17 +81,17 @@ T2OuterObjDef::T2OuterObjDef(DWORD type, T2PluginSpecifier& specifier, CResFile* } /*virtual*/ T2InfoDialog* T2OuterObjDef::ShowInfoDialog(T2TowerDoc* inDoc, T2OutObj* inOutObj) { - CRect windowRect; - AfxGetMainWnd()->GetWindowRect(windowRect); + CRect rect; + AfxGetMainWnd()->GetWindowRect(rect); T2DLGTEMPLATE tmpl; - tmpl.pt = windowRect.CenterPoint(); + tmpl.pt = rect.CenterPoint(); tmpl.moduleHandle = mModuleHandle; tmpl.resID = GetInfoDialogID(inDoc, inOutObj); - T2InfoDialog *theDialog = ConstructInfoDialog(inOutObj); - theDialog->Realize(this, &tmpl, inDoc, mImageObj, NULL, true, NULL, 0, true); - return theDialog; + T2InfoDialog *dialog = ConstructInfoDialog(inOutObj); + dialog->Realize(this, &tmpl, inDoc, mImageObj, NULL, true, NULL, 0, true); + return dialog; } /*virtual*/ int T2OuterObjDef::GetInfoDialogID(T2TowerDoc*, const T2OutObj*) const { |