Changeset 414
- Timestamp:
- 02/16/09 22:07:36 (18 months ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
client/Game2/Game2.rc (modified) (1 diff)
-
client/Game2/Observer.cpp (modified) (4 diffs)
-
client/Game2/Observer.h (modified) (2 diffs)
-
client/Game2/resource.h (modified) (1 diff)
-
po/de.po (modified) (8 diffs)
-
po/en_US@piglatin.po (modified) (3 diffs)
-
po/ja.po (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/Game2/Game2.rc
r397 r414 1277 1277 IDS_SAMEADDRPORT2 " are using the same IP and port!" 1278 1278 IDS_CONN_ERROR "Connection error with " 1279 IDS_SELECT_CRAFT "<== Select your craft with the arrow keys ==>"1280 IDS_BASIC_CRAFT_DESC "Basic craft"1281 IDS_BI_TURBO_CRAFT_DESC "Bi-Turbo craft"1282 IDS_CX_CRAFT_DESC "CX craft"1283 IDS_EON_CRAFT_DESC "Eon craft"1284 1279 END 1285 1280 -
trunk/client/Game2/Observer.cpp
r323 r414 27 27 #include "resource.h" 28 28 #include "../../engine/Util/StrRes.h" 29 #include "../../engine/VideoServices/StaticText.h" 29 30 30 31 #include <math.h> 32 33 using HoverRace::VideoServices::StaticText; 31 34 32 35 #define NB_PLAYER_PAGE 10 … … 49 52 CString gCurLapStr = MR_LoadString(IDS_CUR_LAP); 50 53 51 CString gChooseCraft = MR_LoadString(IDS_SELECT_CRAFT); 52 CString gBasicStr = MR_LoadString(IDS_BASIC_CRAFT_DESC); 53 CString gBiStr = MR_LoadString(IDS_BI_TURBO_CRAFT_DESC); 54 CString gCXStr = MR_LoadString(IDS_CX_CRAFT_DESC); 55 CString gEonStr = MR_LoadString(IDS_EON_CRAFT_DESC); 54 static const char *GetCraftName(int id) 55 { 56 static const char *names[4] = { 57 _("Basic craft"), 58 _("CX craft"), 59 _("Bi-Turbo craft"), 60 _("Eon craft"), 61 }; 62 static const char *unknown = _("Unknown craft"); 63 return (id >= 0 && id < 4) ? names[id] : unknown; 64 } 56 65 57 66 MR_Observer::MR_Observer() … … 86 95 mHoverIcons = (MR_SpriteHandle *) MR_DllObjectFactory::CreateObject(lHoverIconsId); 87 96 97 std::string selectStr("<== "); 98 selectStr += _("Select your craft with the arrow keys"); 99 selectStr += " ==>"; 100 selectCraftTxt = new StaticText(selectStr, "Arial", 16, true, true, 0x2c); 101 102 craftTxt = new StaticText("", "Arial", 20, true, false, 0x47); 88 103 } 89 104 90 105 MR_Observer::~MR_Observer() 91 106 { 107 delete craftTxt; 108 delete selectCraftTxt; 109 92 110 delete mBaseFont; 93 111 delete mMissileLevel; … … 742 760 sprintf(lMainLineBuffer, gCountdownStr, (pTime % 60000) / 1000, (pTime % 1000) / 10, pViewingCharacter->GetTotalLap()); 743 761 744 // craft info -- not added below since this is the only time this line is used745 char lCraftInfoBuffer[80];746 747 762 int lFontScaling = 1 + (mBaseFont->GetSprite()->GetItemHeight() * 30) / (lYRes); 748 763 int lLineHeight = (mBaseFont->GetSprite()->GetItemHeight() / lFontScaling); 749 764 750 if(pSession->GetMainCharacter()->GetHoverModel() == 0) // basic 751 sprintf(lCraftInfoBuffer, gBasicStr); 752 else if(pSession->GetMainCharacter()->GetHoverModel() == 1) // cx 753 sprintf(lCraftInfoBuffer, gCXStr); 754 else if(pSession->GetMainCharacter()->GetHoverModel() == 2) // bi-turbo 755 sprintf(lCraftInfoBuffer, gBiStr); 756 else if(pSession->GetMainCharacter()->GetHoverModel() == 3) // eon 757 sprintf(lCraftInfoBuffer, gEonStr); 758 759 mBaseFont->GetSprite()->StrBlt(lXRes / 2, lYRes / 16 + lLineHeight, Ascii2Simple(gChooseCraft), &m3DView, MR_Sprite::eCenter, MR_Sprite::eTop, lFontScaling); 760 mBaseFont->GetSprite()->StrBlt(lXRes / 2, lYRes / 16 + 2 * lLineHeight, Ascii2Simple(lCraftInfoBuffer), &m3DView, MR_Sprite::eCenter, MR_Sprite::eTop, lFontScaling); 765 selectCraftTxt->Blt(lXRes / 2, lYRes / 16 + lLineHeight, &m3DView, true); 766 767 craftTxt->SetText(GetCraftName(pSession->GetMainCharacter()->GetHoverModel())); 768 craftTxt->Blt(lXRes / 2, lYRes / 16 + lLineHeight + selectCraftTxt->GetHeight(), &m3DView, true); 761 769 } 762 770 else if(pViewingCharacter->GetTotalLap() <= pViewingCharacter->GetLap()) { -
trunk/client/Game2/Observer.h
r217 r414 28 28 #include "../../engine/MainCharacter/MainCharacter.h" 29 29 #include "../../engine/ObjFacTools/SpriteHandle.h" 30 31 namespace HoverRace { namespace VideoServices { class StaticText; } } 30 32 31 33 class MR_Observer … … 69 71 MR_SpriteHandle *mPowerUpDisp; 70 72 MR_SpriteHandle *mHoverIcons; 73 74 HoverRace::VideoServices::StaticText *selectCraftTxt; 75 HoverRace::VideoServices::StaticText *craftTxt; 71 76 72 77 MR_Observer(); -
trunk/client/Game2/resource.h
r384 r414 346 346 #define IDS_SAMEADDRPORT2 40233 347 347 #define IDS_CONN_ERROR 40234 348 #define IDS_SELECT_CRAFT 40235349 #define IDS_BASIC_CRAFT_DESC 40236350 #define IDS_BI_TURBO_CRAFT_DESC 40237351 #define IDS_CX_CRAFT_DESC 40238352 #define IDS_EON_CRAFT_DESC 40239353 348 #define IDS_INVALID_RESOLUTION 40240 354 349 #define IDS_TEST_RESOLUTION 40241 -
trunk/po/de.po
r407 r414 7 7 "Project-Id-Version: hoverrace 1.24\n" 8 8 "Report-Msgid-Bugs-To: \n" 9 "POT-Creation-Date: 2009-02- 07 16:35-0500\n"9 "POT-Creation-Date: 2009-02-16 21:55-0500\n" 10 10 "PO-Revision-Date: 2009-02-07 17:07-0500\n" 11 11 "Last-Translator: Ryan Curtin <ryan@igglybob.com>\n" … … 58 58 59 59 #: client/Game2/GameApp.cpp:2691 60 msgid "and with the help of the many testers willing to put up with bugs and other strange happenings." 61 msgstr "und mit der Hilfe vieler Prüfern, die Fehler und Merkwürdigen tolerieren." 60 msgid "" 61 "and with the help of the many testers willing to put up with bugs and other " 62 "strange happenings." 63 msgstr "" 64 "und mit der Hilfe vieler Prüfern, die Fehler und Merkwürdigen tolerieren." 62 65 63 66 #: client/Game2/GameApp.cpp:2693 … … 73 76 msgstr "Schließen" 74 77 75 #: client/Game2/NetInterface.cpp:463 76 #: client/Game2/NetInterface.cpp:484 77 #: client/Game2/NetInterface.cpp:496 78 #: client/Game2/NetInterface.cpp:554 79 #: client/Game2/NetInterface.cpp:574 80 #: client/Game2/NetInterface.cpp:629 81 #: client/Game2/NetInterface.cpp:709 82 #: client/Game2/NetInterface.cpp:719 83 #: client/Game2/NetInterface.cpp:890 84 #: client/Game2/NetInterface.cpp:1652 78 #: client/Game2/NetInterface.cpp:463 client/Game2/NetInterface.cpp:484 79 #: client/Game2/NetInterface.cpp:496 client/Game2/NetInterface.cpp:554 80 #: client/Game2/NetInterface.cpp:574 client/Game2/NetInterface.cpp:629 81 #: client/Game2/NetInterface.cpp:709 client/Game2/NetInterface.cpp:719 82 #: client/Game2/NetInterface.cpp:890 client/Game2/NetInterface.cpp:1652 85 83 msgid "TCP Server" 86 84 msgstr "" 87 85 88 #: client/Game2/NetInterface.cpp:463 89 #: client/Game2/NetInterface.cpp:554 86 #: client/Game2/NetInterface.cpp:463 client/Game2/NetInterface.cpp:554 90 87 #: client/Game2/NetInterface.cpp:890 91 88 msgid "Unable to create socket" 92 89 msgstr "" 93 90 94 #: client/Game2/NetInterface.cpp:483 95 #: client/Game2/NetInterface.cpp:719 91 #: client/Game2/NetInterface.cpp:483 client/Game2/NetInterface.cpp:719 96 92 msgid "Unable to use the port, try to close some WINSOCK applications" 97 93 msgstr "" 98 94 99 #: client/Game2/NetInterface.cpp:495 100 #: client/Game2/NetInterface.cpp:573 95 #: client/Game2/NetInterface.cpp:495 client/Game2/NetInterface.cpp:573 101 96 #: client/Game2/NetInterface.cpp:628 102 msgid "Unable to use UDP recv port; choose a different port or close some Winsock applications." 97 msgid "" 98 "Unable to use UDP recv port; choose a different port or close some Winsock " 99 "applications." 103 100 msgstr "" 104 101 … … 120 117 121 118 #: client/Game2/NetInterface.cpp:1694 122 msgid " ; perhaps they are behind a firewall and need to forward ports 9530 and 9531 TCP and UDP?"123 msgstr ""124 125 #: client/Game2/NetInterface.cpp:1696 126 #: client/Game2/NetInterface.cpp:1735 127 #: client/Game2/NetInterface.cpp:1 761128 #: client/Game2/NetInterface.cpp:17 71119 msgid "" 120 "; perhaps they are behind a firewall and need to forward ports 9530 and 9531 " 121 "TCP and UDP?" 122 msgstr "" 123 124 #: client/Game2/NetInterface.cpp:1696 client/Game2/NetInterface.cpp:1735 125 #: client/Game2/NetInterface.cpp:1761 client/Game2/NetInterface.cpp:1771 129 126 msgid "TCP Client" 130 127 msgstr "" … … 150 147 msgstr "" 151 148 152 #: client/Game2/TrackSelect.cpp:119 153 #: client/Game2/TrackSelect.cpp:129 149 #: client/Game2/Observer.cpp:58 150 msgid "Basic craft" 151 msgstr "" 152 153 #: client/Game2/Observer.cpp:59 154 msgid "CX craft" 155 msgstr "" 156 157 #: client/Game2/Observer.cpp:60 158 msgid "Bi-Turbo craft" 159 msgstr "" 160 161 #: client/Game2/Observer.cpp:61 162 msgid "Eon craft" 163 msgstr "" 164 165 #: client/Game2/Observer.cpp:63 166 msgid "Unknown craft" 167 msgstr "" 168 169 #: client/Game2/Observer.cpp:101 170 msgid "Select your craft with the arrow keys" 171 msgstr "" 172 173 #: client/Game2/TrackSelect.cpp:119 client/Game2/TrackSelect.cpp:129 154 174 msgid "Bad track file format" 155 175 msgstr "Falsches Strecke Dateiformat" … … 183 203 msgstr "Abbrechen" 184 204 185 #: client/Game2/TrackSelect.cpp:211 186 #: client/Game2/TrackSelect.cpp:230 205 #: client/Game2/TrackSelect.cpp:211 client/Game2/TrackSelect.cpp:230 187 206 msgid " no selection" 188 207 msgstr " nichts ist ausgewählt" … … 192 211 msgstr "Die Anzahl von Runden soll zwischen 1 und 99" 193 212 194 #: client/Game2/main.cpp:22 5213 #: client/Game2/main.cpp:229 195 214 #, fuzzy, c-format, boost-format 196 215 msgid "" … … 202 221 "Bitte besuchen Sie %s zu lernen, wie man\n" 203 222 "diesem Projekt mitwirken kann." 204 -
trunk/po/en_US@piglatin.po
r408 r414 8 8 "Project-Id-Version: PACKAGE VERSION\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2009-02- 07 16:32-0500\n"11 "PO-Revision-Date: 2009-02- 07 17:11-0500\n"12 "Last-Translator: Ryan Curtin <ryan@igglybob.com>\n"10 "POT-Creation-Date: 2009-02-16 21:55-0500\n" 11 "PO-Revision-Date: 2009-02-16 22:03-0500\n" 12 "Last-Translator: Michael Imamura <zoogie@lugatgt.org>\n" 13 13 "Language-Team: English\n" 14 14 "MIME-Version: 1.0\n" … … 149 149 msgstr "Onnectioncay erroray ithway" 150 150 151 #: client/Game2/Observer.cpp:58 152 msgid "Basic craft" 153 msgstr "Asicbay aftcray" 154 155 #: client/Game2/Observer.cpp:59 156 msgid "CX craft" 157 msgstr "CX aftcray" 158 159 #: client/Game2/Observer.cpp:60 160 msgid "Bi-Turbo craft" 161 msgstr "Bi-Turbo aftcray" 162 163 #: client/Game2/Observer.cpp:61 164 msgid "Eon craft" 165 msgstr "Eon aftcray" 166 167 #: client/Game2/Observer.cpp:63 168 msgid "Unknown craft" 169 msgstr "Unknownway aftcray" 170 171 #: client/Game2/Observer.cpp:101 172 msgid "Select your craft with the arrow keys" 173 msgstr "Electsay ouryay aftcray ithway ethey arrowyay eyskay" 174 151 175 #: client/Game2/TrackSelect.cpp:119 152 176 #: client/Game2/TrackSelect.cpp:129 … … 191 215 msgstr "Umbernay of apslay ouldshay ebay etweenbay 1 and 99" 192 216 193 #: client/Game2/main.cpp:22 5217 #: client/Game2/main.cpp:229 194 218 #, c-format, boost-format 195 219 msgid "" -
trunk/po/ja.po
r407 r414 7 7 "Project-Id-Version: hoverrace 1.24\n" 8 8 "Report-Msgid-Bugs-To: \n" 9 "POT-Creation-Date: 2009-02- 07 16:32-0500\n"10 "PO-Revision-Date: 2009-02- 04 00:10-0500\n"9 "POT-Creation-Date: 2009-02-16 21:55-0500\n" 10 "PO-Revision-Date: 2009-02-16 21:59-0500\n" 11 11 "Last-Translator: Michael Imamura <zoogie@lugatgt.org>\n" 12 12 "Language-Team: Japanese\n" … … 54 54 55 55 #: client/Game2/GameApp.cpp:2691 56 msgid "" 57 "and with the help of the many testers willing to put up with bugs and other " 58 "strange happenings." 56 msgid "and with the help of the many testers willing to put up with bugs and other strange happenings." 59 57 msgstr "" 60 58 … … 71 69 msgstr "閉じる" 72 70 73 #: client/Game2/NetInterface.cpp:463 client/Game2/NetInterface.cpp:484 74 #: client/Game2/NetInterface.cpp:496 client/Game2/NetInterface.cpp:554 75 #: client/Game2/NetInterface.cpp:574 client/Game2/NetInterface.cpp:629 76 #: client/Game2/NetInterface.cpp:709 client/Game2/NetInterface.cpp:719 77 #: client/Game2/NetInterface.cpp:890 client/Game2/NetInterface.cpp:1652 71 #: client/Game2/NetInterface.cpp:463 72 #: client/Game2/NetInterface.cpp:484 73 #: client/Game2/NetInterface.cpp:496 74 #: client/Game2/NetInterface.cpp:554 75 #: client/Game2/NetInterface.cpp:574 76 #: client/Game2/NetInterface.cpp:629 77 #: client/Game2/NetInterface.cpp:709 78 #: client/Game2/NetInterface.cpp:719 79 #: client/Game2/NetInterface.cpp:890 80 #: client/Game2/NetInterface.cpp:1652 78 81 msgid "TCP Server" 79 82 msgstr "" 80 83 81 #: client/Game2/NetInterface.cpp:463 client/Game2/NetInterface.cpp:554 84 #: client/Game2/NetInterface.cpp:463 85 #: client/Game2/NetInterface.cpp:554 82 86 #: client/Game2/NetInterface.cpp:890 83 87 msgid "Unable to create socket" 84 88 msgstr "" 85 89 86 #: client/Game2/NetInterface.cpp:483 client/Game2/NetInterface.cpp:719 90 #: client/Game2/NetInterface.cpp:483 91 #: client/Game2/NetInterface.cpp:719 87 92 msgid "Unable to use the port, try to close some WINSOCK applications" 88 93 msgstr "" 89 94 90 #: client/Game2/NetInterface.cpp:495 client/Game2/NetInterface.cpp:573 95 #: client/Game2/NetInterface.cpp:495 96 #: client/Game2/NetInterface.cpp:573 91 97 #: client/Game2/NetInterface.cpp:628 92 msgid "" 93 "Unable to use UDP recv port; choose a different port or close some Winsock " 94 "applications." 98 msgid "Unable to use UDP recv port; choose a different port or close some Winsock applications." 95 99 msgstr "" 96 100 … … 112 116 113 117 #: client/Game2/NetInterface.cpp:1694 114 msgid " "115 "; perhaps they are behind a firewall and need to forward ports 9530 and 9531"116 "TCP and UDP?" 117 msgstr "" 118 119 #: client/Game2/NetInterface.cpp:1 696 client/Game2/NetInterface.cpp:1735120 #: client/Game2/NetInterface.cpp:17 61 client/Game2/NetInterface.cpp:1771118 msgid "; perhaps they are behind a firewall and need to forward ports 9530 and 9531 TCP and UDP?" 119 msgstr "" 120 121 #: client/Game2/NetInterface.cpp:1696 122 #: client/Game2/NetInterface.cpp:1735 123 #: client/Game2/NetInterface.cpp:1761 124 #: client/Game2/NetInterface.cpp:1771 121 125 msgid "TCP Client" 122 126 msgstr "" … … 142 146 msgstr "" 143 147 144 #: client/Game2/TrackSelect.cpp:119 client/Game2/TrackSelect.cpp:129 148 #: client/Game2/Observer.cpp:58 149 msgid "Basic craft" 150 msgstr "基本的な車両" 151 152 #: client/Game2/Observer.cpp:59 153 msgid "CX craft" 154 msgstr "CX 車両" 155 156 #: client/Game2/Observer.cpp:60 157 msgid "Bi-Turbo craft" 158 msgstr "Bi-Turbo 車両" 159 160 #: client/Game2/Observer.cpp:61 161 msgid "Eon craft" 162 msgstr "Eon 車両" 163 164 #: client/Game2/Observer.cpp:63 165 msgid "Unknown craft" 166 msgstr "無名車両" 167 168 #: client/Game2/Observer.cpp:101 169 msgid "Select your craft with the arrow keys" 170 msgstr "車両は、矢印キーで選択してください" 171 172 #: client/Game2/TrackSelect.cpp:119 173 #: client/Game2/TrackSelect.cpp:129 145 174 msgid "Bad track file format" 146 175 msgstr "" … … 174 203 msgstr "キャンセル" 175 204 176 #: client/Game2/TrackSelect.cpp:211 client/Game2/TrackSelect.cpp:230 205 #: client/Game2/TrackSelect.cpp:211 206 #: client/Game2/TrackSelect.cpp:230 177 207 msgid " no selection" 178 208 msgstr "" … … 182 212 msgstr "" 183 213 184 #: client/Game2/main.cpp:22 5214 #: client/Game2/main.cpp:229 185 215 #, c-format, boost-format 186 216 msgid "" … … 189 219 "contribute to this project." 190 220 msgstr "" 221
