aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lllcd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lllcd.cpp')
-rw-r--r--linden/indra/newview/lllcd.cpp100
1 files changed, 50 insertions, 50 deletions
diff --git a/linden/indra/newview/lllcd.cpp b/linden/indra/newview/lllcd.cpp
index 3d26824..f9660b5 100644
--- a/linden/indra/newview/lllcd.cpp
+++ b/linden/indra/newview/lllcd.cpp
@@ -200,12 +200,12 @@ LLDebugConsolePageGroup::LLDebugConsolePageGroup(CEzLcd *LCD, int type, HICON SL
200void LLDebugPageGroup::UpdateDetails() 200void LLDebugPageGroup::UpdateDetails()
201{ 201{
202 mLCD->ModifyControlsOnPage(mPageArray[0].mPageIndex); 202 mLCD->ModifyControlsOnPage(mPageArray[0].mPageIndex);
203 LLString ping = llformat("1000"); 203 LLString ping = "1000";
204 LLString packetsIn = llformat("0"); 204 LLString packetsIn = "0";
205 LLString packetsOut = llformat("0"); 205 LLString packetsOut = "0";
206 LLString packetLoss = llformat("0"); 206 LLString packetLoss = "0";
207 LLString fps = llformat("0"); 207 LLString fps = "0";
208 LLString simfps = llformat("0"); 208 LLString simfps = "0";
209 // region name 209 // region name
210 if (gStatusBar) 210 if (gStatusBar)
211 { 211 {
@@ -257,11 +257,11 @@ LLDebugPageGroup::LLDebugPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
257 // add Title 257 // add Title
258 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128); 258 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128);
259 mLCD->SetOrigin(title, 32, 0); 259 mLCD->SetOrigin(title, 32, 0);
260 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("DebugInfo")).c_str())); 260 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("DebugInfo")).c_str()));
261 261
262 HANDLE fpsStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 18); 262 HANDLE fpsStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 18);
263 mLCD->SetOrigin(fpsStatic, ICON_WIDTH, 11); 263 mLCD->SetOrigin(fpsStatic, ICON_WIDTH, 11);
264 mLCD->SetText(fpsStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("FPS")).c_str())); 264 mLCD->SetText(fpsStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("FPS")).c_str()));
265 265
266 HANDLE fps = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25); 266 HANDLE fps = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25);
267 mLCD->SetOrigin(fps, ICON_WIDTH+25, 11); 267 mLCD->SetOrigin(fps, ICON_WIDTH+25, 11);
@@ -270,7 +270,7 @@ LLDebugPageGroup::LLDebugPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
270 270
271 HANDLE simfpsStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 35); 271 HANDLE simfpsStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 35);
272 mLCD->SetOrigin(simfpsStatic, ICON_WIDTH+37+25, 11); 272 mLCD->SetOrigin(simfpsStatic, ICON_WIDTH+37+25, 11);
273 mLCD->SetText(simfpsStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("SimFPS")).c_str())); 273 mLCD->SetText(simfpsStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("SimFPS")).c_str()));
274 274
275 HANDLE simfps = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25); 275 HANDLE simfps = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25);
276 mLCD->SetOrigin(simfps, ICON_WIDTH+37+27+37, 11); 276 mLCD->SetOrigin(simfps, ICON_WIDTH+37+27+37, 11);
@@ -279,7 +279,7 @@ LLDebugPageGroup::LLDebugPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
279 279
280 HANDLE packetsinStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25); 280 HANDLE packetsinStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25);
281 mLCD->SetOrigin(packetsinStatic, ICON_WIDTH, 22); 281 mLCD->SetOrigin(packetsinStatic, ICON_WIDTH, 22);
282 mLCD->SetText(packetsinStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Pin")).c_str())); 282 mLCD->SetText(packetsinStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Pin")).c_str()));
283 283
284 HANDLE packetsin = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25); 284 HANDLE packetsin = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25);
285 mLCD->SetOrigin(packetsin, ICON_WIDTH+32, 22); 285 mLCD->SetOrigin(packetsin, ICON_WIDTH+32, 22);
@@ -288,7 +288,7 @@ LLDebugPageGroup::LLDebugPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
288 288
289 HANDLE packetsoutStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 289 HANDLE packetsoutStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
290 mLCD->SetOrigin(packetsoutStatic, ICON_WIDTH+37+25, 22); 290 mLCD->SetOrigin(packetsoutStatic, ICON_WIDTH+37+25, 22);
291 mLCD->SetText(packetsoutStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Pout")).c_str())); 291 mLCD->SetText(packetsoutStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Pout")).c_str()));
292 292
293 HANDLE packetsout = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25); 293 HANDLE packetsout = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 25);
294 mLCD->SetOrigin(packetsout, ICON_WIDTH+37+27+37, 22); 294 mLCD->SetOrigin(packetsout, ICON_WIDTH+37+27+37, 22);
@@ -297,7 +297,7 @@ LLDebugPageGroup::LLDebugPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
297 297
298 HANDLE packetlossStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 298 HANDLE packetlossStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
299 mLCD->SetOrigin(packetlossStatic, ICON_WIDTH, 33); 299 mLCD->SetOrigin(packetlossStatic, ICON_WIDTH, 33);
300 mLCD->SetText(packetlossStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("PLoss")).c_str())); 300 mLCD->SetText(packetlossStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("PLoss")).c_str()));
301 301
302 HANDLE packetloss = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 35); 302 HANDLE packetloss = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 35);
303 mLCD->SetOrigin(packetloss, ICON_WIDTH+33, 33); 303 mLCD->SetOrigin(packetloss, ICON_WIDTH+33, 33);
@@ -306,7 +306,7 @@ LLDebugPageGroup::LLDebugPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
306 306
307 HANDLE pingStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 20); 307 HANDLE pingStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 20);
308 mLCD->SetOrigin(pingStatic, ICON_WIDTH+32+38, 33); 308 mLCD->SetOrigin(pingStatic, ICON_WIDTH+32+38, 33);
309 mLCD->SetText(pingStatic,(LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Ping")).c_str())); 309 mLCD->SetText(pingStatic,(LPCTSTR)(utf8str_to_utf16str(bogus->getString("Ping")).c_str()));
310 310
311 HANDLE ping = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 311 HANDLE ping = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
312 mLCD->SetOrigin(ping, ICON_WIDTH+37+27+37, 33); 312 mLCD->SetOrigin(ping, ICON_WIDTH+37+27+37, 33);
@@ -326,8 +326,8 @@ LLDebugPageGroup::LLDebugPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
326void LLLindenPageGroup::UpdateDetails() 326void LLLindenPageGroup::UpdateDetails()
327{ 327{
328 mLCD->ModifyControlsOnPage(mPageArray[0].mPageIndex); 328 mLCD->ModifyControlsOnPage(mPageArray[0].mPageIndex);
329 LLString time = llformat("Unknown"); 329 LLString time = "Unknown";
330 LLString balance = llformat("Unknown"); 330 LLString balance = "Unknown";
331 // region name 331 // region name
332 if (gStatusBar) 332 if (gStatusBar)
333 { 333 {
@@ -363,11 +363,11 @@ LLLindenPageGroup::LLLindenPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
363 // add Title 363 // add Title
364 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128); 364 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128);
365 mLCD->SetOrigin(title, 32, 0); 365 mLCD->SetOrigin(title, 32, 0);
366 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("AccountDetails")).c_str())); 366 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("AccountDetails")).c_str()));
367 367
368 HANDLE timeStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 368 HANDLE timeStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
369 mLCD->SetOrigin(timeStatic, ICON_WIDTH, 11); 369 mLCD->SetOrigin(timeStatic, ICON_WIDTH, 11);
370 mLCD->SetText(timeStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Time")).c_str())); 370 mLCD->SetText(timeStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Time")).c_str()));
371 371
372 HANDLE time = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH - 32); 372 HANDLE time = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH - 32);
373 mLCD->SetOrigin(time, ICON_WIDTH+32, 11); 373 mLCD->SetOrigin(time, ICON_WIDTH+32, 11);
@@ -376,7 +376,7 @@ LLLindenPageGroup::LLLindenPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
376 376
377 HANDLE balanceStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 377 HANDLE balanceStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
378 mLCD->SetOrigin(balanceStatic, ICON_WIDTH, 22); 378 mLCD->SetOrigin(balanceStatic, ICON_WIDTH, 22);
379 mLCD->SetText(balanceStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("LBal")).c_str())); 379 mLCD->SetText(balanceStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("LBal")).c_str()));
380 380
381 HANDLE balance = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH - 35); 381 HANDLE balance = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH - 35);
382 mLCD->SetOrigin(balance, ICON_WIDTH+35, 22); 382 mLCD->SetOrigin(balance, ICON_WIDTH+35, 22);
@@ -395,28 +395,28 @@ LLLindenPageGroup::LLLindenPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
395 395
396void LLRegionPageGroup::UpdateDetails() 396void LLRegionPageGroup::UpdateDetails()
397{ 397{
398 LLString pos = llformat("Unknown"); 398 LLString pos = "Unknown";
399 LLString parcel = llformat("Unknown"); 399 LLString parcel = "Unknown";
400 LLString region = llformat("Unknown"); 400 LLString region = "Unknown";
401 LLString owner = llformat("Unknown"); 401 LLString owner = "Unknown";
402 LLString forsale = bogus->childGetText("No"); 402 LLString forsale = bogus->getString("No");
403 LLString rtype = llformat("Unknown"); 403 LLString rtype = "Unknown";
404 LLString sqm = llformat("0"); 404 LLString sqm = "0";
405 LLString traffic = llformat("0"); 405 LLString traffic = "0";
406 406
407 // region name 407 // region name
408 if (gStatusBar) 408 if (gStatusBar)
409 { 409 {
410 pos = llformat(" %d, %d, %d", gStatusBar->mRegionDetails.mX, gStatusBar->mRegionDetails.mY, gStatusBar->mRegionDetails.mZ); 410 pos = llformat(" %d, %d, %d", gStatusBar->mRegionDetails.mX, gStatusBar->mRegionDetails.mY, gStatusBar->mRegionDetails.mZ);
411 parcel = llformat("%s", gStatusBar->mRegionDetails.mParcelName); 411 parcel = gStatusBar->mRegionDetails.mParcelName;
412 region = gStatusBar->mRegionDetails.mRegionName; 412 region = gStatusBar->mRegionDetails.mRegionName;
413 rtype = llformat("%s", gStatusBar->mRegionDetails.mAccesString); 413 rtype = gStatusBar->mRegionDetails.mAccesString;
414 sqm = llformat("%d", gStatusBar->mRegionDetails.mArea); 414 sqm = llformat("%d", gStatusBar->mRegionDetails.mArea);
415 if (gStatusBar->mRegionDetails.mForSale) 415 if (gStatusBar->mRegionDetails.mForSale)
416 { 416 {
417 forsale = bogus->childGetText("Yes"); 417 forsale = bogus->getString("Yes");
418 } 418 }
419 owner = llformat("%s", gStatusBar->mRegionDetails.mOwner); 419 owner = gStatusBar->mRegionDetails.mOwner;
420 traffic = llformat("%d", (int)gStatusBar->mRegionDetails.mTraffic); 420 traffic = llformat("%d", (int)gStatusBar->mRegionDetails.mTraffic);
421 } 421 }
422 422
@@ -466,11 +466,11 @@ LLRegionPageGroup::LLRegionPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
466 // add Title 466 // add Title
467 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128); 467 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128);
468 mLCD->SetOrigin(title, 32, 0); 468 mLCD->SetOrigin(title, 32, 0);
469 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("LocationDetails1")).c_str())); 469 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("LocationDetails1")).c_str()));
470 470
471 HANDLE regionNameStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 471 HANDLE regionNameStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
472 mLCD->SetOrigin(regionNameStatic, ICON_WIDTH, 11); 472 mLCD->SetOrigin(regionNameStatic, ICON_WIDTH, 11);
473 mLCD->SetText(regionNameStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Region")).c_str())); 473 mLCD->SetText(regionNameStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Region")).c_str()));
474 474
475 HANDLE regionName = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH - 30 - 2); 475 HANDLE regionName = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH - 30 - 2);
476 mLCD->SetOrigin(regionName, ICON_WIDTH+32, 11); 476 mLCD->SetOrigin(regionName, ICON_WIDTH+32, 11);
@@ -479,7 +479,7 @@ LLRegionPageGroup::LLRegionPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
479 479
480 HANDLE parcelStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 480 HANDLE parcelStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
481 mLCD->SetOrigin(parcelStatic, ICON_WIDTH, 22); 481 mLCD->SetOrigin(parcelStatic, ICON_WIDTH, 22);
482 mLCD->SetText(parcelStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Parcel")).c_str())); 482 mLCD->SetText(parcelStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Parcel")).c_str()));
483 483
484 HANDLE parcel = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_CENTER, 160 - ICON_WIDTH - 30 - 2); 484 HANDLE parcel = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_CENTER, 160 - ICON_WIDTH - 30 - 2);
485 mLCD->SetOrigin(parcel, ICON_WIDTH+32, 22); 485 mLCD->SetOrigin(parcel, ICON_WIDTH+32, 22);
@@ -488,7 +488,7 @@ LLRegionPageGroup::LLRegionPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
488 488
489 HANDLE positionStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 18); 489 HANDLE positionStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 18);
490 mLCD->SetOrigin(positionStatic, 0, 33); 490 mLCD->SetOrigin(positionStatic, 0, 33);
491 mLCD->SetText(positionStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Parcel")).c_str())); 491 mLCD->SetText(positionStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Parcel")).c_str()));
492 492
493 HANDLE position = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 60); 493 HANDLE position = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 60);
494 mLCD->SetOrigin(position, 20, 33); 494 mLCD->SetOrigin(position, 20, 33);
@@ -497,7 +497,7 @@ LLRegionPageGroup::LLRegionPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
497 497
498 HANDLE sqmStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 18); 498 HANDLE sqmStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 18);
499 mLCD->SetOrigin(sqmStatic, 90, 33); 499 mLCD->SetOrigin(sqmStatic, 90, 33);
500 mLCD->SetText(sqmStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Sqm")).c_str())); 500 mLCD->SetText(sqmStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Sqm")).c_str()));
501 501
502 HANDLE sqm = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 40); 502 HANDLE sqm = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 40);
503 mLCD->SetOrigin(sqm, 90 + 20, 33); 503 mLCD->SetOrigin(sqm, 90 + 20, 33);
@@ -521,11 +521,11 @@ LLRegionPageGroup::LLRegionPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
521 // add Title 521 // add Title
522 title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128); 522 title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128);
523 mLCD->SetOrigin(title, 32, 0); 523 mLCD->SetOrigin(title, 32, 0);
524 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("LocationDetails2")).c_str())); 524 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("LocationDetails2")).c_str()));
525 525
526 HANDLE ownerStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 526 HANDLE ownerStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
527 mLCD->SetOrigin(ownerStatic, ICON_WIDTH, 11); 527 mLCD->SetOrigin(ownerStatic, ICON_WIDTH, 11);
528 mLCD->SetText(ownerStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Owner")).c_str())); 528 mLCD->SetText(ownerStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Owner")).c_str()));
529 529
530 HANDLE owner = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_LEFT, 160 - 30 - ICON_WIDTH - 2); 530 HANDLE owner = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_LEFT, 160 - 30 - ICON_WIDTH - 2);
531 mLCD->SetOrigin(owner, ICON_WIDTH+32, 11); 531 mLCD->SetOrigin(owner, ICON_WIDTH+32, 11);
@@ -534,7 +534,7 @@ LLRegionPageGroup::LLRegionPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
534 534
535 HANDLE typeStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 535 HANDLE typeStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
536 mLCD->SetOrigin(typeStatic, ICON_WIDTH, 22); 536 mLCD->SetOrigin(typeStatic, ICON_WIDTH, 22);
537 mLCD->SetText(typeStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Type")).c_str())); 537 mLCD->SetText(typeStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Type")).c_str()));
538 538
539 HANDLE rtype = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 160 - 30 - ICON_WIDTH - 2); 539 HANDLE rtype = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 160 - 30 - ICON_WIDTH - 2);
540 mLCD->SetOrigin(rtype, ICON_WIDTH+32, 22); 540 mLCD->SetOrigin(rtype, ICON_WIDTH+32, 22);
@@ -543,16 +543,16 @@ LLRegionPageGroup::LLRegionPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
543 543
544 HANDLE forsaleStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 40); 544 HANDLE forsaleStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 40);
545 mLCD->SetOrigin(forsaleStatic, 0, 33); 545 mLCD->SetOrigin(forsaleStatic, 0, 33);
546 mLCD->SetText(forsaleStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Forsale")).c_str())); 546 mLCD->SetText(forsaleStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Forsale")).c_str()));
547 547
548 HANDLE forsale = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 548 HANDLE forsale = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
549 mLCD->SetOrigin(forsale, 42, 33); 549 mLCD->SetOrigin(forsale, 42, 33);
550 mLCD->SetText(forsale, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("No")).c_str())); 550 mLCD->SetText(forsale, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("No")).c_str()));
551 newPage2.mDisplayItemArray.push_back(forsale); 551 newPage2.mDisplayItemArray.push_back(forsale);
552 552
553 HANDLE trafficStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 50); 553 HANDLE trafficStatic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 50);
554 mLCD->SetOrigin(trafficStatic, 70, 33); 554 mLCD->SetOrigin(trafficStatic, 70, 33);
555 mLCD->SetText(trafficStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Traffic")).c_str())); 555 mLCD->SetText(trafficStatic, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Traffic")).c_str()));
556 556
557 HANDLE traffic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30); 557 HANDLE traffic = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_LEFT, 30);
558 mLCD->SetOrigin(traffic, 122, 33); 558 mLCD->SetOrigin(traffic, 122, 33);
@@ -592,9 +592,9 @@ void LLChatPageGroup::InsertText(const LLString &newLine)
592LLChatPageGroup::LLChatPageGroup(CEzLcd *LCD, int type, HICON SLIcon) 592LLChatPageGroup::LLChatPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
593:LLLCDPageGroup(LCD, type, SLIcon) 593:LLLCDPageGroup(LCD, type, SLIcon)
594{ 594{
595 mLine1 = llformat(""); 595 mLine1 = "";
596 mLine2 = llformat(""); 596 mLine2 = "";
597 mLine3 = llformat(""); 597 mLine3 = "";
598 // create a new specific page 598 // create a new specific page
599 LLLCDSpecificPage newPage; 599 LLLCDSpecificPage newPage;
600 newPage.mPageIndex = mLCD->AddNewPage() - 1; 600 newPage.mPageIndex = mLCD->AddNewPage() - 1;
@@ -609,7 +609,7 @@ LLChatPageGroup::LLChatPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
609 // add Title 609 // add Title
610 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128); 610 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128);
611 mLCD->SetOrigin(title, 32, 0); 611 mLCD->SetOrigin(title, 32, 0);
612 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Last3ChatLines")).c_str())); 612 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Last3ChatLines")).c_str()));
613 613
614 // add line 614 // add line
615 HANDLE chatLine = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH); 615 HANDLE chatLine = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH);
@@ -661,9 +661,9 @@ void LLIMPageGroup::InsertText(const LLString &newLine)
661 661
662LLIMPageGroup::LLIMPageGroup(CEzLcd *LCD, int type, HICON SLIcon) 662LLIMPageGroup::LLIMPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
663:LLLCDPageGroup(LCD, type, SLIcon){ 663:LLLCDPageGroup(LCD, type, SLIcon){
664 mLine1 = llformat(""); 664 mLine1 = "";
665 mLine2 = llformat(""); 665 mLine2 = "";
666 mLine3 = llformat(""); 666 mLine3 = "";
667 // create a new specific page 667 // create a new specific page
668 LLLCDSpecificPage newPage; 668 LLLCDSpecificPage newPage;
669 newPage.mPageIndex = mLCD->AddNewPage() - 1; 669 newPage.mPageIndex = mLCD->AddNewPage() - 1;
@@ -678,7 +678,7 @@ LLIMPageGroup::LLIMPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
678 // add Title 678 // add Title
679 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128); 679 HANDLE title = mLCD->AddText(LG_STATIC_TEXT, LG_SMALL, DT_CENTER, 128);
680 mLCD->SetOrigin(title, 32, 0); 680 mLCD->SetOrigin(title, 32, 0);
681 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->childGetText("Last3IMLines")).c_str())); 681 mLCD->SetText(title, (LPCTSTR)(utf8str_to_utf16str(bogus->getString("Last3IMLines")).c_str()));
682 682
683 // add line 683 // add line
684 HANDLE chatLine = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH); 684 HANDLE chatLine = mLCD->AddText(LG_SCROLLING_TEXT, LG_SMALL, DT_LEFT, 160 - ICON_WIDTH);
@@ -703,4 +703,4 @@ LLIMPageGroup::LLIMPageGroup(CEzLcd *LCD, int type, HICON SLIcon)
703} 703}
704 704
705#endif //LL_WINDOWS 705#endif //LL_WINDOWS
706#endif //LL_LCD_COMPILE \ No newline at end of file 706#endif //LL_LCD_COMPILE