Changeset 317 for trunk/Start.pas


Ignore:
Timestamp:
Mar 19, 2021, 9:59:02 AM (4 years ago)
Author:
chronos
Message:
  • Added: Allow to set gamma corection in settings dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r316 r317  
    894894  else if Page in [pgStartRandom, pgStartMap] then
    895895  begin
    896     DLine(Canvas, 344, 514, y0Mini + 61 + 19, MainTexture.clBevelLight,
    897       MainTexture.clBevelShade);
    898     RisedTextOut(Canvas, 344, y0Mini + 61, Phrases.Lookup('STARTCONTROLS', 10));
    899     s := TurnToString(MaxTurn);
    900     RisedTextOut(Canvas, 514 - BiColorTextWidth(Canvas, s), y0Mini + 61, s);
     896    UnderlinedTitleValue(Canvas, Phrases.Lookup('STARTCONTROLS', 10),
     897      TurnToString(MaxTurn), 344, y0Mini + 61, 170);
     898
    901899    s := Phrases.Lookup('STARTCONTROLS', 7);
    902900    w := Canvas.TextWidth(s);
     
    974972        s := IntToStr(nMapStartPositions - 1);
    975973      RisedTextOut(Canvas, 198 - BiColorTextWidth(Canvas, s), yMain + 140, s);
     974
    976975      DLine(Canvas, 24, xDefault - 6, yMain + 164 + 19,
    977976        MainTexture.clBevelLight, MainTexture.clBevelShade);
     
    986985      DLine(Canvas, 56, 272, y0Mini + 61 + 19, MainTexture.clBevelLight,
    987986        MainTexture.clBevelShade);
     987
    988988      RisedTextOut(Canvas, 56, y0Mini + 61,
    989989        Phrases.Lookup('STARTCONTROLS', 14));
     
    10241024  else if Page = pgEditRandom then
    10251025  begin
    1026     DLine(Canvas, 344, 514, y0Mini - 77 + 19, MainTexture.clBevelLight,
    1027       MainTexture.clBevelShade);
    1028     RisedTextOut(Canvas, 344, y0Mini - 77, Phrases.Lookup('STARTCONTROLS', 5));
    1029     s := IntToStr((WorldSizes[WorldSize].X * WorldSizes[WorldSize].Y * 20 +
    1030       DefaultWorldTiles div 2) div DefaultWorldTiles * 5) + '%';
    1031     RisedTextOut(Canvas, 514 - BiColorTextWidth(Canvas, s), y0Mini - 77, s);
    1032     DLine(Canvas, 344, 514, y0Mini + 61 + 19, MainTexture.clBevelLight,
    1033       MainTexture.clBevelShade);
    1034     RisedTextOut(Canvas, 344, y0Mini + 61, Phrases.Lookup('STARTCONTROLS', 6));
    1035     s := IntToStr(StartLandMass) + '%';
    1036     RisedTextOut(Canvas, 514 - BiColorTextWidth(Canvas, s), y0Mini + 61, s);
     1026    UnderlinedTitleValue(Canvas, Phrases.Lookup('STARTCONTROLS', 5),
     1027      IntToStr((WorldSizes[WorldSize].X * WorldSizes[WorldSize].Y * 20 +
     1028      DefaultWorldTiles div 2) div DefaultWorldTiles * 5) + '%',
     1029      344, y0Mini - 77, 170);
     1030    UnderlinedTitleValue(Canvas, Phrases.Lookup('STARTCONTROLS', 6),
     1031      IntToStr(StartLandMass) + '%', 344, y0Mini + 61, 170);
    10371032  end
    10381033  else if Page = pgEditMap then
Note: See TracChangeset for help on using the changeset viewer.