Ignore:
Timestamp:
Sep 14, 2024, 11:02:08 AM (2 months ago)
Author:
chronos
Message:
  • Added: Allow to rename city with mouse right click on city caption in City screen.
  • Fixed: Do not overflow city name text in City screen.
  • Fixed: Repaint main screen after city and unit rename.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Diplomacy.pas

    r468 r613  
    2929        Result := Tribe[P].TPhrase('PRICE_MAP');
    3030      opTreaty:
    31         { if Price-opTreaty<Treaty then
     31        { if Price - opTreaty < Treaty then
    3232          case Treaty of
    33           trPeace: Result:=Phrases.Lookup('FRENDTREATY_PEACE');
    34           trFriendlyContact: Result:=Phrases.Lookup('FRENDTREATY_FRIENDLY');
    35           trAlliance: Result:=Phrases.Lookup('FRENDTREATY_ALLIANCE');
     33            trPeace: Result := Phrases.Lookup('FRENDTREATY_PEACE');
     34            trFriendlyContact: Result := Phrases.Lookup('FRENDTREATY_FRIENDLY');
     35            trAlliance: Result := Phrases.Lookup('FRENDTREATY_ALLIANCE');
    3636          end
    3737          else } Result := Phrases.Lookup('TREATY', Price - opTreaty);
     
    6161        Result := Tribe[P].TPhrase('PRICE_ALLMODEL');
    6262      { opCity:
    63         Result:=Format(TPhrase('PRICE_CITY',P),[CityName(Price-opCity)]); }
    64     end
     63        Result := Format(TPhrase('PRICE_CITY', P), [CityName(Price - opCity)]); }
     64    end;
    6565  end;
    6666
     
    9292          (Integer(OppOffer.Price[0] - opTreaty) > Treaty) then
    9393        // simple treaty offer
    94           { if OppOffer.Price[0]-opTreaty=trCeaseFire then
    95             Result:=Tribe[pTarget].TPhrase('FRACCEPTCEASEFIRE')
     94          { if OppOffer.Price[0] - opTreaty = trCeaseFire then
     95            Result := Tribe[pTarget].TPhrase('FRACCEPTCEASEFIRE')
    9696            else } Result := Tribe[pTarget].TPhrase('FRACCEPTTREATY')
    9797        else if OppOffer.nDeliver = 0 then
     
    132132            sDeliver := sAdd
    133133          else
    134             sDeliver := Format(Phrases.Lookup('PRICE_CONCAT'), [sDeliver, sAdd])
     134            sDeliver := Format(Phrases.Lookup('PRICE_CONCAT'), [sDeliver, sAdd]);
    135135        end;
    136136        sCost := '';
     
    141141            sCost := sAdd
    142142          else
    143             sCost := Format(Phrases.Lookup('PRICE_CONCAT'), [sCost, sAdd])
     143            sCost := Format(Phrases.Lookup('PRICE_CONCAT'), [sCost, sAdd]);
    144144        end;
    145145
     
    167167            end;
    168168            Result := Result + Phrases.Lookup('FRDONE');
    169             DoIntro := False
    170           end
     169            DoIntro := False;
     170          end;
    171171        end
    172172        else if (Offer.nDeliver + Offer.nCost = 1) and
     
    183183            trAlliance:
    184184              Result := Result + Tribe[pTarget].TPhrase('FRALLIANCE');
    185           end
     185          end;
    186186        end
    187187        else if Offer.nDeliver = 0 then // demand
     
    196196            Result := Result +
    197197              Format(Tribe[pTarget].TPhrase('FRDEMAND_STRONG'), [sCost]);
    198             DoIntro := False
    199           end
     198            DoIntro := False;
     199          end;
    200200        end
    201201        else if Offer.nCost = 0 then // present
     
    216216      Result := Tribe[pSender].TPhrase('FRSTART_NOTREATY') + ' ' + Result
    217217    else
    218       Result := Tribe[pSender].TPhrase('FRSTART_PEACE') + ' ' + Result
     218      Result := Tribe[pSender].TPhrase('FRSTART_PEACE') + ' ' + Result;
    219219end;
    220220
Note: See TracChangeset for help on using the changeset viewer.