Changeset 288 for trunk/LocalPlayer
- Timestamp:
- Feb 26, 2021, 9:43:24 PM (4 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/TechTree.pas
r257 r288 132 132 NewHeight: Integer; 133 133 const 134 TransparentColor = $7F007F;134 TransparentColor: Cardinal = $7F007F; 135 135 begin 136 136 if Image = nil then begin -
trunk/LocalPlayer/Term.lfm
r232 r288 1 1 object MainScreen: TMainScreen 2 Left = 2312 Left = 169 3 3 Height = 480 4 Top = 1904 Top = 596 5 5 Width = 800 6 6 HorzScrollBar.Visible = False … … 12 12 Constraints.MinHeight = 480 13 13 Constraints.MinWidth = 800 14 DesignTimePPI = 144 14 15 Font.Color = clWindowText 15 16 Font.Height = -13 … … 30 31 OnShow = FormShow 31 32 Position = poDefault 32 PixelsPerInch = 9633 LCLVersion = '2.0.12.0' 33 34 Scaled = False 34 LCLVersion = '1.6.0.4'35 35 WindowState = wsMaximized 36 36 object UnitBtn: TButtonB … … 217 217 Interval = 50 218 218 OnTimer = Timer1Timer 219 left = 8220 top = 48219 Left = 8 220 Top = 48 221 221 end 222 222 object GamePopup: TPopupMenu 223 223 AutoPopup = False 224 left = 40225 top = 48224 Left = 40 225 Top = 48 226 226 object mHelp: TMenuItem 227 227 Tag = 7 … … 459 459 RadioItem = True 460 460 OnClick = mBigTilesClick 461 end 461 end 462 462 end 463 463 object mSound: TMenuItem … … 587 587 object UnitPopup: TPopupMenu 588 588 AutoPopup = False 589 left = 104590 top = 48589 Left = 104 590 Top = 48 591 591 object mdisband: TMenuItem 592 592 Tag = 72 … … 670 670 object StatPopup: TPopupMenu 671 671 AutoPopup = False 672 left = 72673 top = 48672 Left = 72 673 Top = 48 674 674 object mUnitStat: TMenuItem 675 675 Tag = 9 … … 726 726 end 727 727 object EditPopup: TPopupMenu 728 left = 168729 top = 48728 Left = 168 729 Top = 48 730 730 object mCreateUnit: TMenuItem 731 731 Tag = 47 … … 733 733 end 734 734 object TerrainPopup: TPopupMenu 735 left = 136736 top = 48735 Left = 136 736 Top = 48 737 737 object mtrans: TMenuItem 738 738 Tag = 273 -
trunk/LocalPlayer/Term.pas
r263 r288 283 283 procedure OnEOT(var Msg: TMessage); message WM_EOT; 284 284 procedure SoundPreload(Check: integer); 285 procedure UpdateKeyShortcuts; 285 286 public 286 287 UsedOffscreenWidth, UsedOffscreenHeight: integer; … … 3404 3405 i, j: integer; 3405 3406 begin 3407 UpdateKeyShortcuts; 3408 3406 3409 MainFormKeyDown := FormKeyDown; 3407 3410 BaseWin.CreateOffscreen(Offscreen); … … 3617 3620 CanClose := Closable; 3618 3621 if not Closable and idle and (me = 0) and (ClientMode < scContact) then 3619 MenuClick(mResign) 3622 MenuClick(mResign); 3620 3623 end; 3621 3624 … … 3630 3633 procedure TMainScreen.OnEOT(var Msg: TMessage); 3631 3634 begin 3632 EndTurn 3635 EndTurn; 3633 3636 end; 3634 3637 … … 3638 3641 begin 3639 3642 MessgExDlg.CancelMovie; 3640 Server(sBreak, me, 0, nil^) 3643 Server(sBreak, me, 0, nil^); 3641 3644 end 3642 3645 else if ClientMode < 0 then … … 3647 3650 begin 3648 3651 Jump[pTurn] := 0; 3649 StartRunning := false 3652 StartRunning := false; 3650 3653 end 3651 3654 else 3652 EndTurn 3655 EndTurn; 3653 3656 end; 3654 3657 … … 6440 6443 end; 6441 6444 6445 procedure TMainScreen.UpdateKeyShortcuts; 6446 begin 6447 mHelp.ShortCut := BHelp.ShortCut; 6448 mUnitStat.ShortCut := BUnitStat.ShortCut; 6449 mCityStat.ShortCut := BCityStat.ShortCut; 6450 mScienceStat.ShortCut := BScienceStat.ShortCut; 6451 mEUnitStat.ShortCut := BEUnitStat.ShortCut;; 6452 mDiagram.ShortCut := BDiagram.ShortCut; 6453 mWonders.ShortCut := BWonders.ShortCut; 6454 mShips.ShortCut := BShips.ShortCut; 6455 mNations.ShortCut := BNations.ShortCut; 6456 mEmpire.ShortCut := BEmpire.ShortCut; 6457 mResign.ShortCut := BResign.ShortCut; 6458 mRandomMap.ShortCut := BRandomMap.ShortCut; 6459 mDisband.ShortCut := BDisbandUnit.ShortCut; 6460 mFort.ShortCut := BFortify.ShortCut; 6461 mCentre.ShortCut := BCenterUnit.ShortCut; 6462 mStay.ShortCut := BStay.ShortCut; 6463 mNoOrders.ShortCut := BNoOrders.ShortCut; 6464 mTechTree.ShortCut := BTechTree.ShortCut; 6465 mWait.ShortCut := BWait.ShortCut; 6466 mJump.ShortCut := BJump.ShortCut;; 6467 end; 6468 6442 6469 procedure TMainScreen.FormKeyDown(Sender: TObject; var Key: word; 6443 6470 Shift: TShiftState); … … 6513 6540 end 6514 6541 end else if Shift = [ssCtrl] then begin 6542 if ShortCut = BJump.ShortCut then MenuClick(mJump); 6515 6543 case char(Key) of 6516 'J': MenuClick(mJump);6517 6544 'K': mShowClick(mDebugMap); 6518 6545 'L': mShowClick(mLocCodes); … … 6542 6569 '4': MapBtnClick(MapBtn5); 6543 6570 '5': MapBtnClick(MapBtn6); 6544 'T': MenuClick(mTechTree);6545 'W': MenuClick(mWait);6546 6571 end; 6572 if ShortCut = BTechTree.ShortCut then MenuClick(mTechTree) 6573 else if ShortCut = BWait.ShortCut then MenuClick(mWait); 6547 6574 end; 6548 6575
Note:
See TracChangeset
for help on using the changeset viewer.