Changeset 473 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Dec 4, 2023, 12:13:15 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r471 r473 180 180 if S <> '' then 181 181 LoweredTextOut(Canvas, -1, MainTexture, 182 ( ClientWidth - BiColorTextWidth(Canvas, S)) div 2, 31, S);182 (Width - BiColorTextWidth(Canvas, S)) div 2, 31, S); 183 183 if not MultiPage and (Kind in [kProject, kAdvance, kFarAdvance]) and not Phrases2FallenBackToEnglish 184 184 then … … 186 186 S := Phrases2.Lookup('SHIFTCLICK'); 187 187 LoweredTextOut(Canvas, -2, MainTexture, 188 ( ClientWidth - BiColorTextWidth(Canvas, S)) div 2, ClientHeight - 29, S);188 (Width - BiColorTextWidth(Canvas, S)) div 2, Height - 29, S); 189 189 end; 190 190 end; … … 231 231 if Y + TextSize.cy >= TitleHeight + InnerHeight then 232 232 TextSize.cy := TitleHeight + InnerHeight - Y; 233 Fill(ca, X, Y, TextSize.cx, TextSize.cy, (Maintexture.Width - ClientWidth)234 div 2, (Maintexture.Height - ClientHeight) div 2);233 Fill(ca, X, Y, TextSize.cx, TextSize.cy, (Maintexture.Width - Width) 234 div 2, (Maintexture.Height - Height) div 2); 235 235 end; 236 236 LoweredTextOut(ca, Color, MainTexture, X, Y, S); … … 811 811 if ScienceNation <> OldScienceNation then 812 812 begin 813 Fill(Canvas, 9, ClientHeight - 29, ClientWidth - 18, 24,814 (Maintexture.Width - ClientWidth) div 2,815 (Maintexture.Height - ClientHeight) div 2);813 Fill(Canvas, 9, Height - 29, Width - 18, 24, 814 (Maintexture.Width - Width) div 2, 815 (Maintexture.Height - Height) div 2); 816 816 if ScienceNation >= 0 then 817 817 begin … … 823 823 S := S + ' (' + TurnToString(MyRO.EnemyReport[ScienceNation] 824 824 .TurnOfCivilReport) + ')'; // old report 825 xScreen := ( ClientWidth - BiColorTextWidth(Canvas, S)) div 2;825 xScreen := (Width - BiColorTextWidth(Canvas, S)) div 2; 826 826 LoweredTextOut(Canvas, -1, MainTexture, xScreen + 10, 827 ClientHeight - 29, S);827 Height - 29, S); 828 828 BitBltCanvas(ScienceNationDotBuffer.Canvas, 0, 0, ScienceNationDot.Width, 829 ScienceNationDot.Height, Canvas, xScreen - 10, ClientHeight - 27);829 ScienceNationDot.Height, Canvas, xScreen - 10, Height - 27); 830 830 ImageOp_BCC(ScienceNationDotBuffer, Templates.Data, Point(0, 0), 831 831 ScienceNationDot.BoundsRect, MainTexture.ColorBevelShade, Tribe[ScienceNation].Color); 832 BitBltCanvas(Canvas, xScreen - 10, ClientHeight - 27, ScienceNationDot.Width,832 BitBltCanvas(Canvas, xScreen - 10, Height - 27, ScienceNationDot.Width, 833 833 ScienceNationDot.Height, ScienceNationDotBuffer.Canvas, 0, 0); 834 834 end; … … 1577 1577 DispLines := MaxLines; 1578 1578 InnerHeight := LineDistance * (DispLines + 1) + 24; 1579 ClientHeight := InnerHeight + TitleHeight + WideFrame;1579 Height := InnerHeight + TitleHeight + WideFrame; 1580 1580 end 1581 1581 else … … 1584 1584 DispLines := MaxLines; 1585 1585 InnerHeight := LineDistance * (DispLines + 1) + 24; 1586 ClientHeight := InnerHeight + TitleHeight + NarrowFrame;1587 end; 1588 Assert( ClientHeight <= Maintexture.Height);1586 Height := InnerHeight + TitleHeight + NarrowFrame; 1587 end; 1588 Assert(Height <= Maintexture.Height); 1589 1589 1590 1590 TechNameSpace := 224; … … 1618 1618 InnerWidth := 363; 1619 1619 end; 1620 ClientWidth := InnerWidth + 2 * SideFrame;1621 1622 CloseBtn.Left := ClientWidth - 38;1620 Width := InnerWidth + 2 * SideFrame; 1621 1622 CloseBtn.Left := Width - 38; 1623 1623 CaptionLeft := ToggleBtn.Left + ToggleBtn.Width; 1624 1624 CaptionRight := CloseBtn.Left; … … 1645 1645 if Kind = kProject then 1646 1646 begin 1647 Layer0Btn.Top := ClientHeight - 31;1648 Layer0Btn.Left := ClientWidth div 2 - (12 + 29);1647 Layer0Btn.Top := Height - 31; 1648 Layer0Btn.Left := Width div 2 - (12 + 29); 1649 1649 Layer0Btn.Down := True; 1650 Layer1Btn.Top := ClientHeight - 31;1651 Layer1Btn.Left := ClientWidth div 2 - (12 - 29);1650 Layer1Btn.Top := Height - 31; 1651 Layer1Btn.Left := Width div 2 - (12 - 29); 1652 1652 Layer1Btn.Down := False; 1653 Layer2Btn.Top := ClientHeight - 31;1654 Layer2Btn.Left := ClientWidth div 2 - 12;1653 Layer2Btn.Top := Height - 31; 1654 Layer2Btn.Left := Width div 2 - 12; 1655 1655 Layer2Btn.Down := False; 1656 1656 end; … … 1667 1667 var 1668 1668 I: Integer; 1669 ShowFocus, forceclose: Boolean;1670 begin 1671 forceclose := (ListKind <> Kind) and1669 ShowFocus, ForceClose: Boolean; 1670 begin 1671 ForceClose := (ListKind <> Kind) and 1672 1672 not((Kind = kCities) and (ListKind = kCityEvents)) and 1673 1673 not((Kind = kCityEvents) and (ListKind = kCities)) and … … 1746 1746 CloseBtn.Visible := not(Kind in MustChooseKind); 1747 1747 1748 inherited ShowNewContent(NewMode, forceclose);1748 inherited ShowNewContent(NewMode, ForceClose); 1749 1749 end; 1750 1750
Note:
See TracChangeset
for help on using the changeset viewer.