summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TowerMessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2TowerMessage.cpp')
-rw-r--r--src/T2DLL/T2TowerMessage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/T2DLL/T2TowerMessage.cpp b/src/T2DLL/T2TowerMessage.cpp
index c99ac63..3beea1d 100644
--- a/src/T2DLL/T2TowerMessage.cpp
+++ b/src/T2DLL/T2TowerMessage.cpp
@@ -24,7 +24,7 @@ T2TowerMessage::T2TowerMessage(HINSTANCE inModuleHandle, T2TowerDoc* inDoc) {
mHasCapture = false;
- inDoc->GetTowerMainView()->AddAttachment(this);
+ inDoc->GetMainView()->AddAttachment(this);
}
/*virtual*/ T2TowerMessage::~T2TowerMessage() {
@@ -67,7 +67,7 @@ void T2TowerMessage::InfoBarMessage(const CString& inText, int inDelay, const ch
void T2TowerMessage::SetInfoBarMsg(InfoBarMsgItem* inItem) {
CString empty;
CString *theString = inItem ? &inItem->mText : ∅
- mDocument->towerDoc_vf164(*theString);
+ mDocument->SetInfoBarText(*theString);
if (inItem && inItem->mSoundID != "")
Sounds->Play(inItem->mSoundID, SoundMask_10, SoundFlags_10, NULL, PlayMode_0, 100);
@@ -109,7 +109,7 @@ void T2TowerMessage::EquipBalloonMessage(const CString& inText, POINT inPt) {
}
void T2TowerMessage::BuildErr(const CString& inText) {
- POINT otherPt = mDocument->GetTowerMainView()->m7C;
+ POINT otherPt = mDocument->GetMainView()->m7C;
(new T2Message)->ShowMessage(inText);
}
@@ -135,7 +135,7 @@ BOOL T2TowerMessage::GetBuildErrString(unsigned int inID, CString& outStr) {
}
void T2TowerMessage::ObjectBalloonMessage(const CString& inText, const RECT& inRect) {
- T2TowerMainView *theView = mDocument->GetTowerMainView();
+ T2TowerMainView *theView = mDocument->GetMainView();
CRect rect = inRect;
UT2Coordinate::UnitToQD(rect, 0, true);
@@ -257,7 +257,7 @@ void T2TowerMessage::SpendTime2() {
CPoint pt;
pt.x = LOWORD(pMsg->lParam);
pt.y = HIWORD(pMsg->lParam);
- pt += GetCurrentT2TowerDoc()->GetTowerMainView()->m64;
+ pt += GetCurrentT2TowerDoc()->GetMainView()->mScrollOffset;
if (PtInRect(&mCaptureRect, pt)) {
newExecuteHost = false;