Changeset 304 for trunk/LocalPlayer
- Timestamp:
- Mar 9, 2021, 10:05:19 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Help.pas
r290 r304 241 241 242 242 nSeeAlso = 14; 243 SeeAlso: array [0 .. nSeeAlso - 1] of record Kind, no, SeeKind, 244 SeeNo: integer end = ((Kind: hkImp; no: imWalls; SeeKind: hkFeature; 243 SeeAlso: array [0 .. nSeeAlso - 1] of record 244 Kind: Integer; 245 no: Integer; 246 SeeKind: Integer; 247 SeeNo: Integer; 248 end = ((Kind: hkImp; no: imWalls; SeeKind: hkFeature; 245 249 SeeNo: mcArtillery), (Kind: hkImp; no: imHydro; SeeKind: hkImp; 246 250 SeeNo: woHoover), (Kind: hkImp; no: imWalls; SeeKind: hkImp; … … 358 362 Line(Canvas, Sel, false); 359 363 Sel := -1 360 end 364 end; 361 365 end; 362 366 … … 436 440 if (Kind = hkMisc) and (no = miscMain) then 437 441 ca.Font.Assign(UniFont[ftNormal]); 438 end 442 end; 439 443 end; 440 444 … … 984 988 procedure AddTextual(s: string); 985 989 var 986 i, p, l, ofs, CurrentFormat, FollowFormat, Picpix, LinkCategory, LinkIndex, 987 RightMargin: integer; 990 i: Integer; 991 p: Integer; 992 l: Integer; 993 ofs: Integer; 994 CurrentFormat: Integer; 995 FollowFormat: Integer; 996 Picpix: Integer; 997 LinkCategory: Integer; 998 LinkIndex: Integer; 999 RightMargin: Integer; 988 1000 Name: string; 1001 Text: string; 989 1002 begin 990 1003 RightMargin := InnerWidth - 16 - GetSystemMetrics(SM_CXVSCROLL); … … 1133 1146 Break; 1134 1147 until (p >= Length(s)) or (s[l + 1] = '\'); 1135 MainText.AddLine(Copy(s, 1, l), CurrentFormat, Picpix, LinkCategory, 1148 Text := Copy(s, 1, l); 1149 if LinkCategory and $3f = hkInternet then begin 1150 if LinkIndex = 1 then Text := AITemplateManual 1151 else if LinkIndex = 2 then Text := CevoHomepageShort 1152 else if LinkIndex = 3 then Text := CevoContactShort; 1153 end; 1154 MainText.AddLine(Text, CurrentFormat, Picpix, LinkCategory, 1136 1155 LinkIndex); 1137 1156 if (l < Length(s)) and (s[l + 1] = '\') then
Note:
See TracChangeset
for help on using the changeset viewer.