Changeset 613 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Sep 14, 2024, 11:02:08 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r558 r613 69 69 procedure InitLines; 70 70 procedure Line(ca: TCanvas; L: Integer; NonText, lit: Boolean); 71 function RenameCity(cix: Integer): Boolean;72 71 function RenameModel(mix: Integer): Boolean; 73 72 procedure OnScroll(var Msg: TMessage); message WM_VSCROLL; … … 75 74 public 76 75 Result: Integer; 76 function RenameCity(cix: Integer): Boolean; 77 77 function OnlyChoice(TestKind: TListKind): Integer; 78 78 // -2=empty, -1=ambiguous, other=only choice … … 248 248 if ScrollBar.Position + L >= FirstShrinkedLine[Layer] then 249 249 ofs := (ScrollBar.Position + L - FirstShrinkedLine[Layer]) and 1 * 33 250 else { if FirstShrinkedLine[Layer] <Lines[Layer] then }250 else { if FirstShrinkedLine[Layer] < Lines[Layer] then } 251 251 ofs := 33; 252 252 … … 973 973 case Kind of 974 974 kCities, kCityEvents: 975 if RenameCity(lix) then 975 if RenameCity(lix) then begin 976 976 SmartUpdateContent; 977 Term.MainScreen.RepaintAll; 978 end; 977 979 kModels: 978 if RenameModel(lix) then 980 if RenameModel(lix) then begin 979 981 SmartUpdateContent; 982 Term.MainScreen.RepaintAll; 983 end; 980 984 end; 981 985 end;
Note:
See TracChangeset
for help on using the changeset viewer.