Changeset 617 for trunk/LocalPlayer


Ignore:
Timestamp:
Sep 15, 2024, 1:31:30 PM (3 months ago)
Author:
chronos
Message:
  • Fixed: City screen rename right mouse click didn't work on Windows due to window title are. Change to behave the same way as on Linux.
  • Fixed: Allow full screen switching in editor and movie mode.
  • Modified: Precalculate scaling coefficients also for from native values conversions for faster speed.
Location:
trunk/LocalPlayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r613 r617  
    11881188        with MainScreen.MessgExDlg do
    11891189        begin
    1190           { MessgText:=Phrases.Lookup('OUTOFCONTROL');
    1191             if C.Project and cpImp=0 then
    1192             MessgText:=Format(MessgText,[Tribe[cOwner].ModelName[C.Project and cpIndex]])
    1193             else MessgText:=Format(MessgText,[Phrases.Lookup('IMPROVEMENTS',C.Project and cpIndex)]); }
     1190          { MessgText := Phrases.Lookup('OUTOFCONTROL');
     1191            if C.Project and cpImp = 0 then
     1192            MessgText := Format(MessgText, [Tribe[cOwner].ModelName[C.Project and cpIndex]])
     1193            else MessgText := Format(MessgText, [Phrases.Lookup('IMPROVEMENTS',
     1194              C.Project and cpIndex)]);
     1195          }
    11941196          MessgText := Phrases.Lookup('NOCHANGEINANARCHY');
    11951197          Kind := mkOk;
     
    12011203        begin
    12021204          ProdHint := False;
    1203           SmartUpdateContent
     1205          SmartUpdateContent;
    12041206        end;
    12051207        ChooseProject;
  • trunk/LocalPlayer/Term.pas

    r616 r617  
    70927092  ShortCut := KeyToShortCut(Key, Shift);
    70937093
     7094  if BFullScreen.Test(ShortCut) then begin
     7095    FullScreen := not FullScreen;
     7096    SetFullScreen(FullScreen);
     7097  end;
     7098
    70947099  if GameMode = cMovie then begin
    70957100    if BScienceStat.Test(ShortCut) then MenuClick_Check(StatPopup, mScienceStat)
     
    71077112    else if BFillMap.Test(ShortCut) then mFillMap.Click
    71087113    else if BHelp.Test(ShortCut) then mHelp.Click;
    7109     (*if Shift = [ssCtrl] then
    7110       case Char(Key) of
    7111          'A':
    7112           begin // auto symmetry
    7113           Server($7F0,Me,0,nil^);
    7114           MapValid:=False;
    7115           PaintAll;
    7116           end;
    7117           'B':
    7118           begin // land mass
    7119           dy:=0;
    7120           for dx:=G.lx to G.lx*(G.ly-1)-1 do
    7121           if MyMap[dx] and fTerrain>=fGrass then Inc(dy);
    7122           dy:=dy
    7123           end;
    7124       end;
    7125     *)
    71267114    Exit;
    71277115  end;
    71287116
    71297117  if BEndTurn.Test(ShortCut) then EndTurn
    7130   else if BFullScreen.Test(ShortCut) then begin
    7131     FullScreen := not FullScreen;
    7132     SetFullScreen(FullScreen);
    7133   end
    71347118  else if BHelp.Test(ShortCut) then mHelp.Click
    71357119  else if BUnitStat.Test(ShortCut) then MenuClick_Check(StatPopup, mUnitStat)
Note: See TracChangeset for help on using the changeset viewer.