Changeset 503 for trunk/LocalPlayer/Help.pas
- Timestamp:
- Dec 23, 2023, 8:59:07 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Help.pas
r502 r503 5 5 6 6 uses 7 Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType, 8 Messages,SysUtils, Classes, ButtonB, PVSB, Types, Generics.Collections, IsoEngine,7 Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType, Messages, 8 SysUtils, Classes, ButtonB, PVSB, Types, Generics.Collections, IsoEngine, 9 9 {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.ExtCtrls, Dpi.Common, 10 10 System.UITypes{$ELSE} … … 858 858 x0[I] := x0[I] + 8; 859 859 end; 860 Self.Line(OffScreen.Canvas, I, False) 860 Self.Line(OffScreen.Canvas, I, False); 861 861 end; 862 862 end; … … 1113 1113 Delete(S, 1, P) 1114 1114 else 1115 Delete(S, 1, P - 1) 1115 Delete(S, 1, P - 1); 1116 1116 end; 1117 1117 '!': // highlighted … … 1146 1146 repeat 1147 1147 repeat 1148 Inc(P) 1148 Inc(P); 1149 1149 until (P > Length(S)) or (S[P] = ' ') or (S[P] = '\'); 1150 1150 if (BiColorTextWidth(OffScreen.Canvas, Copy(S, 1, P - 1)) <= … … 1211 1211 MainText[Count - 1] := Format(HelpText.Lookup('REQUIRED'), 1212 1212 [MainText[Count - 1]]); 1213 end 1213 end; 1214 1214 end; 1215 1215 … … 1253 1253 I: Integer; 1254 1254 S: string; 1255 sr: TSearchRec;1255 SearchRec: TSearchRec; 1256 1256 List, Plus: TStringList; 1257 1257 begin 1258 1258 List := TStringList.Create; 1259 1259 Plus := TStringList.Create; 1260 if FindFirst(GetGraphicsDir + DirectorySeparator + '*.credits.txt', $27, sr) = 0 then1260 if FindFirst(GetGraphicsDir + DirectorySeparator + '*.credits.txt', $27, SearchRec) = 0 then 1261 1261 repeat 1262 Plus.LoadFromFile(GetGraphicsDir + DirectorySeparator + sr.Name);1262 Plus.LoadFromFile(GetGraphicsDir + DirectorySeparator + SearchRec.Name); 1263 1263 List.AddStrings(Plus); 1264 until FindNext( sr) <> 0;1265 FindClose( sr);1264 until FindNext(SearchRec) <> 0; 1265 FindClose(SearchRec); 1266 1266 FreeAndNil(Plus); 1267 1267 … … 1959 1959 if (Sel + i0 >= MainText.Count) or (Sel >= 0) and 1960 1960 (THelpLineInfo(MainText.Objects[Sel + i0]).Category = hkNoLink) and 1961 (THelpLineInfo(MainText.Objects[Sel + i0]).Index = 0) then1961 (THelpLineInfo(MainText.Objects[Sel + i0]).Index = 0) then 1962 1962 Sel := -1; 1963 1963 if Sel <> Sel0 then … … 2166 2166 SearchResult.AddLine(S, pkNormal, 0, hkImp, I, True); 2167 2167 Include(mIMPHELP, I); 2168 end 2168 end; 2169 2169 end; 2170 2170 for I := 0 to nGov - 1 do … … 2187 2187 begin 2188 2188 if (I >= 0) and ((I <> PrevIndex) or (H <> PrevHandle)) and 2189 not (I in mADVHELP) then2189 not (I in mADVHELP) then 2190 2190 begin 2191 2191 S := Phrases.Lookup('ADVANCES', I); … … 2200 2200 begin 2201 2201 if (I >= 0) and ((I <> PrevIndex) or (H <> PrevHandle)) and 2202 not (I in mIMPHELP) then2202 not (I in mIMPHELP) then 2203 2203 begin 2204 2204 S := Phrases.Lookup('IMPROVEMENTS', I); … … 2219 2219 begin 2220 2220 if (I >= 0) and ((I <> PrevIndex) or (H <> PrevHandle)) and 2221 not (I in mFEATUREHELP) then2221 not (I in mFEATUREHELP) then 2222 2222 begin 2223 2223 S := Phrases.Lookup('FEATURES', I); … … 2271 2271 while BiColorTextWidth(OffScreen.Canvas, SearchResult[I]) > 2272 2272 RightMargin - 32 do 2273 SearchResult[I] := Copy(SearchResult[I], 1, Length(SearchResult[I]) - 1) 2273 SearchResult[I] := Copy(SearchResult[I], 1, Length(SearchResult[I]) - 1); 2274 2274 end; 2275 2275 end;
Note:
See TracChangeset
for help on using the changeset viewer.