Changeset 350 for trunk/LocalPlayer/CityType.pas
- Timestamp:
- Apr 6, 2021, 8:22:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityType.pas
r328 r350 63 63 inherited; 64 64 CaptionRight := CloseBtn.Left; 65 InitButtons ();65 InitButtons; 66 66 HelpContext := 'MACRO'; 67 67 Caption := Phrases.Lookup('TITLE_CITYTYPES'); … … 71 71 procedure TCityTypeDlg.CloseBtnClick(Sender: TObject); 72 72 begin 73 Close 73 Close; 74 74 end; 75 75 … … 137 137 Textout(xList + 20 + i mod nListCol * 42 - TextWidth(s) div 2, 138 138 yList + 15 + i div nListCol * 32 - TextHeight(s) div 2, s); 139 end 139 end; 140 140 end; 141 141 … … 201 201 begin 202 202 include(listed, MyData.ImpOrder[ctype, i]); 203 inc(i) 204 end; 205 Changed := false 203 inc(i); 204 end; 205 Changed := false; 206 206 end; 207 207 … … 215 215 if (MyCity[cix].Loc >= 0) and (MyCity[cix].Status and 7 = ctype + 1) then 216 216 AutoBuild(cix, MyData.ImpOrder[ctype]); 217 Changed := false 217 Changed := false; 218 218 end; 219 219 end; … … 252 252 dragiix := MyData.ImpOrder[ctype, i]; 253 253 Screen.Cursor := crImpDrag; 254 SmartUpdateContent 254 SmartUpdateContent; 255 255 end; 256 256 exit; … … 268 268 dragiix := Pooliix[i]; 269 269 Screen.Cursor := crImpDrag; 270 SmartUpdateContent 270 SmartUpdateContent; 271 271 end; 272 272 exit; … … 279 279 SaveType; 280 280 LoadType(i); 281 SmartUpdateContent 282 end 281 SmartUpdateContent; 282 end; 283 283 end; 284 284 … … 318 318 MyData.ImpOrder[ctype, i] := dragiix; 319 319 include(listed, dragiix); 320 Changed := true 320 Changed := true; 321 321 end 322 322 else if (dragiix in listed) and (x >= xPool) and (x < xPool + nPoolCol * 42) … … 324 324 begin 325 325 UnList(dragiix); 326 Changed := true 326 Changed := true; 327 327 end; 328 328 dragiix := -1; 329 SmartUpdateContent 330 end; 331 Screen.Cursor := crDefault 329 SmartUpdateContent; 330 end; 331 Screen.Cursor := crDefault; 332 332 end; 333 333
Note:
See TracChangeset
for help on using the changeset viewer.