Changeset 432


Ignore:
Timestamp:
Apr 28, 2022, 10:46:44 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Incorrectly renamed function.
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r431 r432  
    12041204        if iix >= 0 then
    12051205          if ssShift in Shift then
    1206             HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkImp, iix)
     1206            HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkImp, iix)
    12071207          else if (ClientMode < scContact) then
    12081208            with MessgExDlg do
     
    13351335          Loc1 := dLoc(cLoc, dx, dy);
    13361336          if (Loc1 >= 0) and (Loc1 < G.lx * G.ly) then
    1337             HelpOnTerrain(Loc1, WindowModePersistent(FWindowMode))
     1337            HelpOnTerrain(Loc1, WindowModeMakePersistent(FWindowMode))
    13381338        end
    13391339        else if (ClientMode < scContact) and (cGov <> gAnarchy) and
  • trunk/LocalPlayer/CityType.pas

    r431 r432  
    246246  begin
    247247    if ssShift in Shift then
    248       HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkImp,
     248      HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkImp,
    249249        MyData.ImpOrder[ctype, i])
    250250    else
     
    263263  begin
    264264    if ssShift in Shift then
    265       HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkImp, Pooliix[i])
     265      HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkImp, Pooliix[i])
    266266    else
    267267    begin
  • trunk/LocalPlayer/Draft.pas

    r431 r432  
    532532      i := (y - yFeature) div LinePitch;
    533533      if (x >= xFeature - 21) and (x < ClientWidth) and (ssShift in Shift) then
    534         HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkFeature, code[i])
     534        HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkFeature, code[i])
    535535      else if not(code[i] in AutoFeature) then
    536536      begin
  • trunk/LocalPlayer/Enhance.pas

    r431 r432  
    384384  ShortCut := KeyToShortCut(Key, Shift);
    385385  if BHelp.Test(ShortCut) then
    386     HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkText,
     386    HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkText,
    387387      HelpDlg.TextIndex('MACRO'))
    388388end;
  • trunk/LocalPlayer/Nego.pas

    r431 r432  
    648648  if (X >= xNationPicture0) and (X < xNationPicture0 + 64) and
    649649    (Y >= yNationPicture) and (Y < yNationPicture + 48) then
    650     NatStatDlg.ShowNewContent(WindowModePersistent(FWindowMode), DipMem[me].pContact)
     650    NatStatDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), DipMem[me].pContact)
    651651  else if (X >= xNationPicture1) and (X < xNationPicture1 + 64) and
    652652    (Y >= yNationPicture) and (Y < yNationPicture + 48) then
    653     NatStatDlg.ShowNewContent(WindowModePersistent(FWindowMode), me)
     653    NatStatDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), me)
    654654end;
    655655
  • trunk/LocalPlayer/Wonders.pas

    r431 r432  
    351351begin
    352352  if Selection >= 0 then
    353     HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkImp, Selection);
     353    HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkImp, Selection);
    354354end;
    355355
  • trunk/Packages/CevoComponents/BaseWin.pas

    r431 r432  
    7171
    7272procedure CreateOffscreen(var Offscreen: TBitmap);
    73 function WindowModePersistent(Mode: TWindowMode): TWindowMode;
     73function WindowModeMakePersistent(Mode: TWindowMode): TWindowMode;
    7474procedure Register;
    7575
     
    144144  if Key = VK_F1 then begin
    145145    if Assigned(ShowNewContentProc) then
    146       ShowNewContentProc(WindowModePersistent(FWindowMode), HelpContext);
     146      ShowNewContentProc(WindowModeMakePersistent(FWindowMode), HelpContext);
    147147  end else
    148148  if FWindowMode = wmPersistent then begin
Note: See TracChangeset for help on using the changeset viewer.