Changeset 9 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Jan 7, 2017, 1:28:56 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 6 6 Win32 7 7 *.~dsk 8 C-evo.exe 9 Integrated.compiled 10 Integrated.lps 11 lib
-
- Property svn:ignore
-
trunk/LocalPlayer/Term.pas
r6 r9 1 {$INCLUDE switches }1 {$INCLUDE switches.pas} 2 2 unit Term; 3 3 … … 5 5 6 6 uses 7 Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase,8 9 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Menus,7 Windows, Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase, 8 9 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, Menus, 10 10 ExtCtrls, 11 11 ButtonA, ButtonB, ButtonC, EOTButton, Area; … … 427 427 uses 428 428 Directories, IsoEngine, CityScreen, Draft, MessgEx, Select, CityType, Help, 429 UnitStat, Diplomacy, Inp, log, Diagram, NatStat, Wonders, Enhance, Nego,429 UnitStat, Diplomacy, Inp, Log, Diagram, NatStat, Wonders, Enhance, Nego, 430 430 Battle, Rates, 431 431 TechTree, 432 432 433 Registry , ShellAPI;434 435 {$R *. DFM}436 {$R Res1.res}433 Registry; 434 435 {$R *.lfm} 436 // TODO {$R Res1.res} 437 437 438 438 const … … 4204 4204 offscreen.Canvas.Font.Assign(UniFont[ftSmall]); 4205 4205 rec := Rect(0, 0, MapWidth, MapHeight); 4206 ScrollDC(offscreen.Canvas.Handle, (xwd - xw) * (xxt * 2),4207 (ywd - yw) * yyt, rec, rec, 0, nil); 4206 { TODO ScrollDC(offscreen.Canvas.Handle, (xwd - xw) * (xxt * 2), 4207 (ywd - yw) * yyt, rec, rec, 0, nil);} 4208 4208 for DoInvalidate := false to FastScrolling do 4209 4209 begin … … 4211 4211 begin 4212 4212 rec.Bottom := MapHeight - overlap; 4213 ScrollDC(Canvas.Handle, (xwd - xw) * (xxt * 2), (ywd - yw) * yyt, rec,4214 rec, 0, nil); 4213 { TODO ScrollDC(Canvas.Handle, (xwd - xw) * (xxt * 2), (ywd - yw) * yyt, rec, 4214 rec, 0, nil);} 4215 4215 ProcessOptions := prInvalidate; 4216 4216 end … … 4372 4372 if supervising then 4373 4373 begin 4374 Frame(Panel.Canvas, ClientWidth - xPalace - 1, yPalace - 1,4374 ScreenTools.Frame(Panel.Canvas, ClientWidth - xPalace - 1, yPalace - 1, 4375 4375 ClientWidth - xPalace + xSizeBig, yPalace + ySizeBig, 4376 4376 $B0B0B0, $FFFFFF); … … 4392 4392 4393 4393 if GameMode = cMovie then 4394 Frame(Panel.Canvas, xMini + 1, yMini + 1, xMini + 2 + G.lx * 2,4394 ScreenTools.Frame(Panel.Canvas, xMini + 1, yMini + 1, xMini + 2 + G.lx * 2, 4395 4395 yMini + 2 + G.ly, $000000, $000000) 4396 4396 else 4397 4397 begin 4398 Frame(Panel.Canvas, xMini + 1, yMini + 1, xMini + 2 + G.lx * 2,4398 ScreenTools.Frame(Panel.Canvas, xMini + 1, yMini + 1, xMini + 2 + G.lx * 2, 4399 4399 yMini + 2 + G.ly, $B0B0B0, $FFFFFF); 4400 4400 RFrame(Panel.Canvas, xMini, yMini, xMini + 3 + G.lx * 2, … … 4498 4498 if BrushTypes[i] = BrushType then 4499 4499 begin 4500 Frame(Panel.Canvas, xTroop + 2 + x, yTroop + 7 - yyt div 2,4500 ScreenTools.Frame(Panel.Canvas, xTroop + 2 + x, yTroop + 7 - yyt div 2, 4501 4501 xTroop + 2 * xxt + x, yTroop + 2 * yyt + 11, $000000, $000000); 4502 Frame(Panel.Canvas, xTroop + 1 + x, yTroop + 6 - yyt div 2,4502 ScreenTools.Frame(Panel.Canvas, xTroop + 1 + x, yTroop + 6 - yyt div 2, 4503 4503 xTroop + 2 * xxt - 1 + x, yTroop + 2 * yyt + 10, 4504 4504 MainTexture.clMark, MainTexture.clMark); … … 4655 4655 if uix = UnFocus then 4656 4656 begin 4657 Frame(Panel.Canvas, xTroop + 4 + x, yTroop + 3,4657 ScreenTools.Frame(Panel.Canvas, xTroop + 4 + x, yTroop + 3, 4658 4658 xTroop + 64 + x, yTroop + 47, $000000, $000000); 4659 Frame(Panel.Canvas, xTroop + 3 + x, yTroop + 2,4659 ScreenTools.Frame(Panel.Canvas, xTroop + 3 + x, yTroop + 2, 4660 4660 xTroop + 63 + x, yTroop + 46, MainTexture.clMark, 4661 4661 MainTexture.clMark); … … 4822 4822 LineTo(ClientWidth, TopBarHeight - 3); 4823 4823 Pen.Color := MainTexture.clBevelLight; 4824 Frame(TopBar.Canvas, 40, -1, xTreasurySection - 1, TopBarHeight - 7,4824 ScreenTools.Frame(TopBar.Canvas, 40, -1, xTreasurySection - 1, TopBarHeight - 7, 4825 4825 MainTexture.clBevelShade, MainTexture.clBevelLight); 4826 Frame(TopBar.Canvas, xResearchSection + 332, -1, ClientWidth,4826 ScreenTools.Frame(TopBar.Canvas, xResearchSection + 332, -1, ClientWidth, 4827 4827 TopBarHeight - 7, MainTexture.clBevelShade, MainTexture.clBevelLight); 4828 4828 end; … … 6845 6845 end 6846 6846 else 6847 with MessgExDlg do6847 // TODO with MessgExDlg do 6848 6848 begin // revolution! 6849 Messg Text := Tribe[me].TPhrase('REVOLUTION');6850 Kind := mkYesNo;6851 IconKind := mikPureIcon;6852 IconIndex := 72; // anarchy palace6853 ShowModal;6849 MessgExDlg.MessgText := Tribe[me].TPhrase('REVOLUTION'); 6850 MessgExDlg.Kind := mkYesNo; 6851 MessgExDlg.IconKind := mikPureIcon; 6852 MessgExDlg.IconIndex := 72; // anarchy palace 6853 MessgExDlg.ShowModal; 6854 6854 if ModalResult = mrOK then 6855 6855 begin … … 6868 6868 end 6869 6869 else if Sender = mWebsite then 6870 ShellExecute(Handle, 'open', 'http://c-evo.org', '', '', SW_SHOWNORMAL)6870 OpenURL('http://c-evo.org'){ *Převedeno z ShellExecute* } 6871 6871 else if Sender = mRandomMap then 6872 6872 begin
Note:
See TracChangeset
for help on using the changeset viewer.