Changeset 301 for trunk/LocalPlayer/Tribes.pas
- Timestamp:
- Mar 8, 2021, 10:11:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Tribes.pas
r300 r301 5 5 6 6 uses 7 Protocol, ScreenTools, LazFileUtils, Classes, Graphics, SysUtils ;7 Protocol, ScreenTools, LazFileUtils, Classes, Graphics, SysUtils, Global; 8 8 9 9 type … … 49 49 {$IFNDEF SCR} function TString(Template: string): string; 50 50 function TPhrase(Item: string): string; {$ENDIF} 51 procedure SetModelPicture(const Info: TModelPictureInfo; IsNew: boolean);51 procedure SetModelPicture(const Info: TModelPictureInfo; IsNew: Boolean); 52 52 function ChooseModelPicture(var Picture: TModelPictureInfo; 53 Code, Turn: Integer; ForceNew: boolean): boolean;53 Code, Turn: Integer; ForceNew: Boolean): Boolean; 54 54 procedure InitAge(Age: Integer); 55 55 protected … … 68 68 function CityName(Founder: Integer): string; 69 69 function ModelCode(const ModelInfo: TModelInfo): Integer; 70 procedure FindStdModelPicture( code: Integer; var pix: Integer; var Name: string);71 function GetTribeInfo(FileName: string; var Name: string; var Color: TColor): boolean;70 procedure FindStdModelPicture(Code: Integer; var pix: Integer; var Name: string); 71 function GetTribeInfo(FileName: string; var Name: string; var Color: TColor): Boolean; 72 72 procedure FindPosition(HGr, x, y, xmax, ymax: Integer; Mark: TColor; 73 73 var xp, yp: Integer); … … 231 231 end; 232 232 233 procedure FindStdModelPicture( code: Integer; var pix: Integer; var Name: string);233 procedure FindStdModelPicture(Code: Integer; var pix: Integer; var Name: string); 234 234 var 235 235 i: Integer; … … 239 239 Input := StdUnitScript[i]; 240 240 pix := GetNum; 241 if code = GetNum then241 if Code = GetNum then 242 242 begin 243 243 Name := Get; … … 249 249 250 250 function GetTribeInfo(FileName: string; var Name: string; 251 var Color: TColor): boolean;251 var Color: TColor): Boolean; 252 252 var 253 253 Found: Integer; … … 258 258 Found := 0; 259 259 AssignFile(TribeScript, LocalizedFilePath('Tribes' + DirectorySeparator + 260 FileName + '.tribe.txt'));260 FileName + CevoTribeExt)); 261 261 Reset(TribeScript); 262 262 while not EOF(TribeScript) do … … 285 285 var 286 286 Line: Integer; 287 Variant: char;287 Variant: Char; 288 288 Item: string; 289 289 begin … … 292 292 Name[Variant] := ''; 293 293 Script := TStringList.Create; 294 Script.LoadFromFile(LocalizedFilePath('Tribes' + DirectorySeparator + 295 FileName + '.tribe.txt')); 294 Script.LoadFromFile(FileName); 296 295 CityLine0 := 0; 297 296 nCityLines := 0; … … 476 475 end; 477 476 478 procedure TTribe.SetModelPicture(const Info: TModelPictureInfo; IsNew: boolean);477 procedure TTribe.SetModelPicture(const Info: TModelPictureInfo; IsNew: Boolean); 479 478 var 480 479 i: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.