Changeset 614 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Sep 14, 2024, 5:43:37 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r613 r614 12 12 {$ENDIF} 13 13 Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase, 14 LCLIntf, LCLType, SysUtils, Classes, DrawDlg, Types, Math,14 LCLIntf, LCLType, Menus, SysUtils, Classes, DrawDlg, Types, Math, 15 15 DateUtils, Platform, ButtonB, ButtonC, EOTButton, Area, 16 16 GraphicSet, MiniMap, IsoEngine, Wonders, TechTree, Enhance, Nego, CityType, … … 34 34 TMainScreen = class(TDrawDlg) 35 35 mBigTiles: TMenuItem; 36 mFillMap: TMenuItem; 36 37 mNextUnit: TMenuItem; 37 38 N13: TMenuItem; … … 197 198 procedure mDiagramClick(Sender: TObject); 198 199 procedure mEmpireClick(Sender: TObject); 200 procedure mFillMapClick(Sender: TObject); 199 201 procedure mEnhanceClick(Sender: TObject); 200 202 procedure mEnhanceDefClick(Sender: TObject); … … 3761 3763 end; 3762 3764 3765 procedure TMainScreen.mFillMapClick(Sender: TObject); 3766 var 3767 FillMapData: TFillMapData; 3768 begin 3769 if not Edited or (SimpleQuery(mkYesNo, Phrases.Lookup('MAP_FILL'), '') 3770 = mrOK) then begin 3771 FillMapData.Tile := BrushType; 3772 Server(sFillMap, Me, 0, FillMapData); 3773 Edited := True; 3774 MapValid := False; 3775 PaintAllMaps; 3776 end; 3777 end; 3778 3763 3779 procedure TMainScreen.mEnhanceClick(Sender: TObject); 3764 3780 begin … … 5220 5236 end; 5221 5237 end; 5222 Inc(Count) 5238 Inc(Count); 5223 5239 end; 5224 5240 end; // for uix:=0 to MyRO.nUn-1 … … 5270 5286 JobFocus := nJob + 3 5271 5287 else 5272 JobFocus := nJob + 4 5288 JobFocus := nJob + 4; 5273 5289 end; 5274 5290 S := Phrases.Lookup('JOBRESULT', JobFocus); … … 5294 5310 (PanelHeight - 1), Left + Width, Top + Height - Self.ClientHeight + 5295 5311 PanelHeight, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight) 5296 end; { if TroopLoc >=0 }5312 end; { if TroopLoc >= 0 } 5297 5313 end; 5298 5314 … … 5332 5348 xTreasurySection := ClientWidth div 2 - 172; 5333 5349 xResearchSection := ClientWidth div 2; 5334 // ClientWidth div 2 +68 = maximum to right5350 // ClientWidth div 2 + 68 = maximum to right 5335 5351 FillLarge(TopBar.Canvas, 0, 0, ClientWidth, TopBarHeight - 3, 5336 5352 ClientWidth div 2); … … 5422 5438 if ScienceSum > 0 then 5423 5439 begin 5424 { j :=(i-MyRO.Research-1) div ScienceSum +1;5425 if J <1 then J:=1;5426 if J >1 then5427 S :=Format(Phrases.Lookup('TECHWAIT'),[S,J]); }5440 { j := (i - MyRO.Research - 1) div ScienceSum + 1; 5441 if J < 1 then J := 1; 5442 if J > 1 then 5443 S := Format(Phrases.Lookup('TECHWAIT'), [S, J]); } 5428 5444 LoweredTextOut(TopBar.Canvas, -1, MainTexture, 5429 5445 xResearchSection + 48, 0, S); … … 7003 7019 mResign.ShortCut := BResign.ShortCut; 7004 7020 mRandomMap.ShortCut := BRandomMap.ShortCut; 7021 mFillMap.ShortCut := BFillMap.ShortCut; 7005 7022 mDisband.ShortCut := BDisbandUnit.ShortCut; 7006 7023 mFort.ShortCut := BFortify.ShortCut; … … 7122 7139 if BResign.Test(ShortCut) then mResign.Click 7123 7140 else if BRandomMap.Test(ShortCut) then mRandomMap.Click 7141 else if BFillMap.Test(ShortCut) then mFillMap.Click 7124 7142 else if BHelp.Test(ShortCut) then mHelp.Click; 7125 7143 (*if Shift = [ssCtrl] then … … 7474 7492 mRandomMap.Visible := (ClientMode = cEditMap) and 7475 7493 (Server(sMapGeneratorRequest, Me, 0, nil^) = eOK); 7494 mFillMap.Visible := mRandomMap.Visible; 7476 7495 mOptions.Visible := ClientMode <> cEditMap; 7477 7496 mManip.Visible := ClientMode <> cEditMap;
Note:
See TracChangeset
for help on using the changeset viewer.