Changeset 29 for trunk/LocalPlayer
- Timestamp:
- Jan 8, 2017, 10:20:03 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 11 11 lib 12 12 heaptrclog.trc 13 c-evo
-
- Property svn:ignore
-
trunk/LocalPlayer/CityScreen.pas
r28 r29 216 216 Back.Height := ClientHeight; 217 217 Template := TBitmap.Create; 218 LoadGraphicFile(Template, HomeDir + 'Graphics \City', gfNoGamma);218 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'City', gfNoGamma); 219 219 Template.PixelFormat := pf8bit; 220 220 CityMapTemplate := TBitmap.Create; 221 LoadGraphicFile(CityMapTemplate, HomeDir + 'Graphics \BigCityMap', gfNoGamma);221 LoadGraphicFile(CityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'BigCityMap', gfNoGamma); 222 222 CityMapTemplate.PixelFormat := pf8bit; 223 223 SmallCityMapTemplate := TBitmap.Create; 224 LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics \SmallCityMap',224 LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'SmallCityMap', 225 225 gfNoGamma); 226 226 SmallCityMapTemplate.PixelFormat := pf24bit; -
trunk/LocalPlayer/Draft.pas
r21 r29 6 6 uses 7 7 Protocol, ClientTools, Term, ScreenTools, PVSB, BaseWin, 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, 9 ButtonA, ButtonB, Area; 8 9 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, 10 ButtonA, 11 ButtonB, ButtonBase, Area; 10 12 11 13 type … … 89 91 Back.Height := ClientHeight; 90 92 Template := TBitmap.Create; 91 LoadGraphicFile(Template, HomeDir + 'Graphics \MiliRes', gfNoGamma);93 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'MiliRes', gfNoGamma); 92 94 Template.PixelFormat := pf8bit; 93 95 end; -
trunk/LocalPlayer/Help.pas
r28 r29 6 6 uses 7 7 Protocol, ScreenTools, BaseWin, StringTables, 8 8 9 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, 9 ExtCtrls, ButtonB, PVSB, Types;10 ExtCtrls, ButtonB, PVSB, ButtonBase, Types; 10 11 11 12 const … … 40 41 41 42 THyperText = class(TStringList) 42 public43 43 procedure AddLine(s: String = ''; Format: integer = 0; Picpix: integer = 0; 44 44 LinkCategory: integer = 0; LinkIndex: integer = 0); … … 1169 1169 List := TStringList.Create; 1170 1170 plus := TStringList.Create; 1171 if FindFirst(HomeDir + 'Graphics \*.credits.txt', $27, sr) = 0 then1171 if FindFirst(HomeDir + 'Graphics' + DirectorySeparator + '*.credits.txt', $27, sr) = 0 then 1172 1172 repeat 1173 plus.LoadFromFile(HomeDir + 'Graphics \'+ sr.Name);1173 plus.LoadFromFile(HomeDir + 'Graphics' + DirectorySeparator + sr.Name); 1174 1174 List.AddStrings(plus); 1175 1175 until FindNext(sr) <> 0; … … 1203 1203 begin 1204 1204 List := TStringList.Create; 1205 List.LoadFromFile(HomeDir + 'Sounds \sound.credits.txt');1205 List.LoadFromFile(HomeDir + 'Sounds' + DirectorySeparator + 'sound.credits.txt'); 1206 1206 for i := 0 to List.Count - 1 do 1207 1207 begin … … 1917 1917 case Link and $FF of 1918 1918 1: 1919 OpenDocument(pchar(HomeDir + 'AI Template \AI development manual.html'));{ *Převedeno z ShellExecute* }1919 OpenDocument(pchar(HomeDir + 'AI Template' + DirectorySeparator + 'AI development manual.html'));{ *Převedeno z ShellExecute* } 1920 1920 2: 1921 1921 OpenURL('http://c-evo.org');{ *Převedeno z ShellExecute* } -
trunk/LocalPlayer/NatStat.pas
r21 r29 6 6 uses 7 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, 9 ButtonB, ButtonC, Menus, EOTButton; 8 9 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, 10 ButtonBase, ButtonB, ButtonC, Menus, EOTButton; 10 11 11 12 type -
trunk/LocalPlayer/Term.pas
r28 r29 10 10 Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase, 11 11 12 LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, Menus,12 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, Menus, 13 13 ExtCtrls, dateutils, Platform, 14 Button B, ButtonC, EOTButton, Area;14 ButtonA, ButtonB, ButtonC, EOTButton, Area; 15 15 16 16 const … … 3417 3417 doinit := false; 3418 3418 OpenKey('SOFTWARE\cevo\RegVer9', false); 3419 try 3420 if ValueExists('TileWidth') then xxt := ReadInteger('TileWidth') div 2; 3421 if ValueExists('TileHeight') then yyt := ReadInteger('TileHeight') div 2; 3422 if ValueExists('OptionChecked') then OptionChecked := ReadInteger('OptionChecked'); 3423 if ValueExists('MapOptionChecked') then MapOptionChecked := ReadInteger('MapOptionChecked'); 3424 if ValueExists('CityMapMask') then CityRepMask := Cardinal(ReadInteger('CityReport')); 3425 except 3426 doinit := true; 3427 end; 3419 if ValueExists('TileWidth') then xxt := ReadInteger('TileWidth') div 2 3420 else xxt := 48; 3421 if ValueExists('TileHeight') then yyt := ReadInteger('TileHeight') div 2 3422 else yyt := 24; 3423 if ValueExists('OptionChecked') then OptionChecked := ReadInteger('OptionChecked') 3424 else OptionChecked := DefaultOptionChecked; 3425 if ValueExists('MapOptionChecked') then MapOptionChecked := ReadInteger('MapOptionChecked') 3426 else MapOptionChecked := 1 shl moCityNames; 3427 if ValueExists('CityMapMask') then CityRepMask := Cardinal(ReadInteger('CityReport')) 3428 else CityRepMask := Cardinal(not chPopIncrease and not chNoGrowthWarning and 3429 not chCaptured); 3428 3430 CloseKey; 3429 3431 if OptionChecked and (7 shl 16) = 0 then … … 3431 3433 // old regver with no scrolling 3432 3434 end; 3433 Reg.free; 3434 if doinit then 3435 begin 3436 xxt := 48; 3437 yyt := 24; 3438 OptionChecked := DefaultOptionChecked; 3439 MapOptionChecked := 1 shl moCityNames; 3440 CityRepMask := Cardinal(not chPopIncrease and not chNoGrowthWarning and 3441 not chCaptured); 3442 end; 3443 3444 if FullScreen then 3445 begin 3435 Reg.Free; 3436 3437 if FullScreen then begin 3446 3438 p.Style := $87000000; 3447 3439 BorderStyle := bsNone; … … 3454 3446 SoundMode := smOnAlt 3455 3447 else 3456 SoundMode := smOn 3448 SoundMode := smOn; 3457 3449 end; 3458 3450 … … 4978 4970 GotoOnly: boolean; 4979 4971 begin 4980 Dist := 0;4981 4972 if ClientMode >= scContact then 4982 4973 exit; -
trunk/LocalPlayer/UnitStat.pas
r21 r29 6 6 uses 7 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, 9 ButtonB, ButtonC; 8 9 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, ButtonA, 10 ButtonB, 11 ButtonBase, ButtonC; 10 12 11 13 type … … 81 83 Back.Height := hMax; 82 84 Template := TBitmap.Create; 83 LoadGraphicFile(Template, HomeDir + 'Graphics \Unit', gfNoGamma);85 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'Unit', gfNoGamma); 84 86 Template.PixelFormat := pf8bit; 85 87 end;
Note:
See TracChangeset
for help on using the changeset viewer.