Changeset 414 for trunk/LocalPlayer/NatStat.pas
- Timestamp:
- Nov 17, 2021, 1:18:21 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/NatStat.pas
r352 r414 5 5 6 6 uses 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, 8 9 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, 10 ButtonB, ButtonC, Menus, EOTButton; 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, LCLIntf, LCLType, SysUtils, 8 Classes, Graphics, Controls, Forms, ButtonB, ButtonC, Menus, EOTButton; 11 9 12 10 type … … 32 30 procedure ScrollDownBtnClick(Sender: TObject); 33 31 procedure TellAIBtnClick(Sender: TObject); 34 35 32 public 36 33 procedure CheckAge; 37 34 procedure ShowNewContent(NewMode: integer; p: integer = -1); 38 35 procedure EcoChange; 39 40 36 protected 41 37 procedure OffscreenPaint; override; 42 43 38 private 44 39 pView, AgePrepared, LinesDown: integer; … … 305 300 Phrases.Lookup('FREXTINCT')); 306 301 LoweredTextOut(Canvas, -1, MainTexture, xAttrib, yAttrib + 28, 307 TurnToString(CurrentReport.TurnOfCivilReport)) 302 TurnToString(CurrentReport.TurnOfCivilReport)); 308 303 end 309 304 else … … 320 315 s := Phrases.Lookup('FRNOCONTACT'); 321 316 LoweredTextOut(Canvas, -1, MainTexture, 322 (ClientWidth - BiColorTextWidth(Canvas, s)) div 2, yRelation + 9, s) 317 (ClientWidth - BiColorTextWidth(Canvas, s)) div 2, yRelation + 9, s); 323 318 end 324 319 else if ShowContact then … … 379 374 end; 380 375 inc(y); 381 end 376 end; 382 377 end; 383 378 end … … 403 398 procedure TNatStatDlg.CloseBtnClick(Sender: TObject); 404 399 begin 405 Close 400 Close; 406 401 end; 407 402 … … 421 416 begin 422 417 if MainScreen.ContactRefused(pView, 'FRANARCHY') then 423 SmartUpdateContent 418 SmartUpdateContent; 424 419 end 425 420 else … … 427 422 end 428 423 else 429 Close 424 Close; 430 425 end; 431 426 … … 501 496 end 502 497 else 503 inherited 498 inherited; 504 499 end; 505 500 … … 510 505 SelfReport.Government := MyRO.Government; 511 506 SelfReport.Money := MyRO.Money; 512 SmartUpdateContent 513 end 507 SmartUpdateContent; 508 end; 514 509 end; 515 510 … … 520 515 dec(LinesDown); 521 516 SmartUpdateContent; 522 end 517 end; 523 518 end; 524 519 … … 529 524 inc(LinesDown); 530 525 SmartUpdateContent; 531 end 526 end; 532 527 end; 533 528 … … 540 535 else 541 536 TellAIBtn.ButtonIndex := 2; 542 SmartUpdateContent 537 SmartUpdateContent; 543 538 end; 544 539
Note:
See TracChangeset
for help on using the changeset viewer.