From 85451f69ee8c7bd88c88e5920da3571bfb00cc26 Mon Sep 17 00:00:00 2001 From: "techdragon.nguyen@gmail.com" Date: Thu, 26 Jan 2012 14:54:07 +0000 Subject: [PATCH] vs 2010 update for deck editor changes as well as SDL update --- projects/mtg/src/GameStateDeckViewer.cpp | 2 +- projects/mtg/src/InteractiveButton.cpp | 4 ++-- projects/mtg/template.vcxproj | 6 +++++- projects/mtg/template.vcxproj.filters | 14 +++++++++++++- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/projects/mtg/src/GameStateDeckViewer.cpp b/projects/mtg/src/GameStateDeckViewer.cpp index a7d0e3eb6..43e25bf6e 100644 --- a/projects/mtg/src/GameStateDeckViewer.cpp +++ b/projects/mtg/src/GameStateDeckViewer.cpp @@ -1766,7 +1766,7 @@ void GameStateDeckViewer::OnScroll(int inXVelocity, int inYVelocity, int magnitu offset = 2 + numCards; mEngine->LeftClickedProcessed(); - mEngine->LeftClicked(cardsCoordinates[offset].first, cardsCoordinates[offset].second); + mEngine->LeftClicked(static_cast(cardsCoordinates[offset].first), static_cast(cardsCoordinates[offset].second)); mEngine->HoldKey_NoRepeat(JGE_BTN_OK); } else diff --git a/projects/mtg/src/InteractiveButton.cpp b/projects/mtg/src/InteractiveButton.cpp index a2cb79833..0379ce2bc 100644 --- a/projects/mtg/src/InteractiveButton.cpp +++ b/projects/mtg/src/InteractiveButton.cpp @@ -68,9 +68,9 @@ void InteractiveButton::Render() float stringWidth = mainFont->GetStringWidth(detailedInfoString.c_str()); DWORD currentColor = mainFont->GetColor(); #ifndef TOUCH_ENABLED - mXOffset = stringWidth / 2; + mXOffset = 5; mYOffset = 10; - float boxStartX = getX() - mXOffset; + float boxStartX = getX() - 5; float pspIconsSize = 0.5; renderer->FillRoundRect( boxStartX, getY() - 5, stringWidth, mainFont->GetHeight() + 15, .5, ARGB( 255, 0, 0, 0) ); if (buttonImage != NULL) diff --git a/projects/mtg/template.vcxproj b/projects/mtg/template.vcxproj index 8d7052691..b06862787 100644 --- a/projects/mtg/template.vcxproj +++ b/projects/mtg/template.vcxproj @@ -375,6 +375,7 @@ + @@ -408,6 +409,7 @@ + @@ -497,6 +499,7 @@ + @@ -525,6 +528,7 @@ + @@ -567,4 +571,4 @@ - \ No newline at end of file + diff --git a/projects/mtg/template.vcxproj.filters b/projects/mtg/template.vcxproj.filters index 1c1f12cb3..d4e1ebe09 100644 --- a/projects/mtg/template.vcxproj.filters +++ b/projects/mtg/template.vcxproj.filters @@ -322,6 +322,12 @@ src + + src + + + src + @@ -660,6 +666,12 @@ inc + + inc + + + inc + inc @@ -692,4 +704,4 @@ res - \ No newline at end of file +