Changeset 352 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Apr 6, 2021, 10:16:55 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r350 r352 202 202 begin 203 203 Frame(offscreen.Canvas, x + (16 - 1), y + (16 - 2), x + (16 + xSizeSmall), 204 y + (16 - 1 + ySizeSmall), MainTexture. clBevelLight,205 MainTexture. clBevelShade);204 y + (16 - 1 + ySizeSmall), MainTexture.ColorBevelLight, 205 MainTexture.ColorBevelShade); 206 206 if pix and cpType = 0 then 207 207 if (pix and cpIndex = imPalace) and (MyRO.Government <> gAnarchy) then … … 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, ( wMaintexture- ClientWidth)234 div 2, ( hMaintexture- ClientHeight) div 2);233 Fill(ca, x, y, TextSize.cx, TextSize.cy, (Maintexture.Width - ClientWidth) 234 div 2, (Maintexture.Height - ClientHeight) div 2); 235 235 end; 236 236 LoweredTextOut(ca, Color, MainTexture, x, y, s); … … 260 260 begin 261 261 x := x + SideFrame; 262 y := y + TitleHeight 262 y := y + TitleHeight; 263 263 end; 264 264 if lit then 265 TextColor := MainTexture. clLitText265 TextColor := MainTexture.ColorLitText 266 266 else 267 267 TextColor := -1; … … 434 434 end; 435 435 if lit then 436 TextColor := MainTexture. clLitText436 TextColor := MainTexture.ColorLitText 437 437 else 438 438 TextColor := -1; … … 556 556 begin 557 557 Frame(offscreen.Canvas, (8 + 16 - 1), y0 - 1, (8 + 16 + 36), 558 y0 + 20, MainTexture. clBevelLight, MainTexture.clBevelShade);558 y0 + 20, MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 559 559 Dump(offscreen, HGrSystem, (8 + 16), y0, 36, 20, 223, 295) 560 560 end … … 562 562 begin 563 563 Frame(offscreen.Canvas, (8 + 16 - 1), y0 - 1, (8 + 16 + 36), 564 y0 + 20, MainTexture. clBevelLight, MainTexture.clBevelShade);564 y0 + 20, MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 565 565 Dump(offscreen, HGrSystem, (8 + 16), y0, 36, 20, 260, 295) 566 566 end … … 568 568 begin 569 569 Frame(offscreen.Canvas, (8 + 16 - 1), y0 - 1, (8 + 16 + 36), 570 y0 + 20, MainTexture. clBevelLight, MainTexture.clBevelShade);570 y0 + 20, MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 571 571 Dump(offscreen, HGrSystem, (8 + 16), y0, 36, 20, 38, 295) 572 572 end … … 575 575 Frame(offscreen.Canvas, (8 + 16 - 1), y0 - 1, 576 576 (8 + 16 + xSizeSmall), y0 + ySizeSmall, 577 MainTexture. clBevelLight, MainTexture.clBevelShade);577 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 578 578 if AdvIcon[lix] < 84 then 579 579 BitBltCanvas(offscreen.Canvas, (8 + 16), y0, xSizeSmall, … … 681 681 Frame(offscreen.Canvas, 8 + 16 - 1, y0 - 15 + (16 - 2), 682 682 8 + 16 + xSizeSmall, y0 - 15 + (16 - 1 + ySizeSmall), 683 MainTexture. clBevelLight, MainTexture.clBevelShade);683 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 684 684 BitBltCanvas(offscreen.Canvas, 8 + 16, y0 - 15 + (16 - 1), 685 685 xSizeSmall, ySizeSmall, SmallImp.Canvas, … … 712 712 end; 713 713 if lit then 714 TextColor := MainTexture. clLitText714 TextColor := MainTexture.ColorLitText 715 715 else 716 716 TextColor := -1; … … 812 812 begin 813 813 Fill(Canvas, 9, ClientHeight - 29, ClientWidth - 18, 24, 814 ( wMaintexture- ClientWidth) div 2,815 ( hMaintexture- ClientHeight) div 2);814 (Maintexture.Width - ClientWidth) div 2, 815 (Maintexture.Height - ClientHeight) div 2); 816 816 if ScienceNation >= 0 then 817 817 begin … … 829 829 ScienceNationDot.Height, Canvas, xScreen - 10, ClientHeight - 27); 830 830 ImageOp_BCC(ScienceNationDotBuffer, Templates.Data, Point(0, 0), 831 ScienceNationDot.BoundsRect, MainTexture. clBevelShade, Tribe[ScienceNation].Color);831 ScienceNationDot.BoundsRect, MainTexture.ColorBevelShade, Tribe[ScienceNation].Color); 832 832 BitBltCanvas(Canvas, xScreen - 10, ClientHeight - 27, ScienceNationDot.Width, 833 833 ScienceNationDot.Height, ScienceNationDotBuffer.Canvas, 0, 0); … … 1532 1532 begin 1533 1533 LineDistance := 21; // looks ugly with scrollbar 1534 MaxLines := ( hMaintexture- (24 + TitleHeight + NarrowFrame))1534 MaxLines := (Maintexture.Height - (24 + TitleHeight + NarrowFrame)) 1535 1535 div LineDistance - 1; 1536 1536 end … … 1538 1538 begin 1539 1539 LineDistance := 24; 1540 MaxLines := ( hMaintexture- (24 + TitleHeight + WideFrame))1540 MaxLines := (Maintexture.Height - (24 + TitleHeight + WideFrame)) 1541 1541 div LineDistance - 1; 1542 1542 end; … … 1574 1574 ClientHeight := InnerHeight + TitleHeight + NarrowFrame; 1575 1575 end; 1576 assert(ClientHeight <= hMaintexture);1576 assert(ClientHeight <= Maintexture.Height); 1577 1577 1578 1578 TechNameSpace := 224;
Note:
See TracChangeset
for help on using the changeset viewer.