- Timestamp:
- Apr 6, 2021, 8:22:04 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Inp.pas
r111 r350 37 37 Canvas.Brush.Style := bsClear; 38 38 TitleHeight := Height; 39 InitButtons ();39 InitButtons; 40 40 Center := true; 41 41 end; -
trunk/LocalPlayer/Battle.pas
r330 r350 206 206 OKBtn.Caption := Phrases.Lookup('BTN_YES'); 207 207 CancelBtn.Caption := Phrases.Lookup('BTN_NO'); 208 InitButtons ();208 InitButtons; 209 209 end; 210 210 -
trunk/LocalPlayer/CityScreen.pas
r330 r350 208 208 AgePrepared := -2; 209 209 Optimize_cixTileChange := -1; 210 InitButtons ();210 InitButtons; 211 211 // InitWindowRegion; 212 212 CloseBtn.Caption := Phrases.Lookup('BTN_OK'); -
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 -
trunk/LocalPlayer/Diagram.pas
r340 r350 132 132 CaptionRight := CloseBtn.Left; 133 133 CaptionLeft := ToggleBtn.Left + ToggleBtn.Width; 134 InitButtons ();134 InitButtons; 135 135 end; 136 136 -
trunk/LocalPlayer/Draft.pas
r323 r350 68 68 begin 69 69 inherited; 70 InitButtons ();70 InitButtons; 71 71 HelpContext := 'CLASSES'; 72 72 Caption := Phrases.Lookup('TITLE_DRAFT'); -
trunk/LocalPlayer/Enhance.pas
r340 r350 65 65 CaptionRight := CloseBtn.Left; 66 66 CaptionLeft := ToggleBtn.Left + ToggleBtn.Width; 67 InitButtons ();67 InitButtons; 68 68 HelpContext := 'MACRO'; 69 69 Caption := Phrases.Lookup('TITLE_ENHANCE'); -
trunk/LocalPlayer/Help.pas
r346 r350 301 301 CaptionFont.Assign(UniFont[ftNormal]); 302 302 CaptionFont.Style := CaptionFont.Style + [fsItalic, fsBold]; 303 InitButtons ();303 InitButtons; 304 304 305 305 TopBtn.Hint := Phrases.Lookup('BTN_CONTENTS'); -
trunk/LocalPlayer/NatStat.pas
r336 r350 81 81 GetMem(SelfReport, SizeOf(TEnemyReport) - 2 * (INFIN + 1)); 82 82 ReportText := TStringList.Create; 83 InitButtons ();83 InitButtons; 84 84 ContactBtn.Template := Templates.Data; 85 85 HelpContext := 'DIPLOMACY'; -
trunk/LocalPlayer/Nego.pas
r340 r350 144 144 cix: integer; 145 145 begin 146 InitButtons ();146 InitButtons; 147 147 for cix := 0 to ComponentCount - 1 do 148 148 if Components[cix] is TButtonN then -
trunk/LocalPlayer/Rates.pas
r313 r350 42 42 begin 43 43 TitleHeight := Screen.Height; 44 InitButtons ();44 InitButtons; 45 45 end; 46 46 -
trunk/LocalPlayer/Select.pas
r346 r350 114 114 sb.SetBorderSpacing(36, 10, 36); 115 115 sb.OnUpdate := ScrollBarUpdate; 116 InitButtons ();116 InitButtons; 117 117 Kind := kMission; 118 118 Layer0Btn.Hint := Phrases.Lookup('BTN_IMPRS'); -
trunk/LocalPlayer/UnitStat.pas
r330 r350 77 77 AgePrepared := -2; 78 78 TitleHeight := Screen.Height; 79 InitButtons ();79 InitButtons; 80 80 81 81 Back := TBitmap.Create; -
trunk/NoTerm.pas
r290 r350 80 80 Canvas.Font.Assign(UniFont[ftSmall]); 81 81 TitleHeight := 36; 82 InitButtons ();82 InitButtons; 83 83 LastShowYearTime := 0; 84 84 end;
Note:
See TracChangeset
for help on using the changeset viewer.