Changeset 315 for trunk/LocalPlayer
- Timestamp:
- Mar 18, 2021, 10:58:28 PM (4 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Draft.pas
r313 r315 275 275 x := xDomain + d * DomainPitch; 276 276 if d = Domain then 277 ImageOp_BCC(offscreen, Templates , x, yDomain, 142, 246 + 37 * d, 36,277 ImageOp_BCC(offscreen, Templates.Data, x, yDomain, 142, 246 + 37 * d, 36, 278 278 36, 0, $00C0FF) 279 279 else 280 ImageOp_BCC(offscreen, Templates , x, yDomain, 142, 246 + 37 * d, 36,280 ImageOp_BCC(offscreen, Templates.Data, x, yDomain, 142, 246 + 37 * d, 36, 281 281 36, 0, $606060); 282 282 end; … … 300 300 for i := 0 to MaxWeight - 1 do 301 301 if i < Weight then 302 ImageOp_BCC(offscreen, Templates , xWeight + 20 * i, yWeight, 123, 400,302 ImageOp_BCC(offscreen, Templates.Data, xWeight + 20 * i, yWeight, 123, 400, 303 303 18, 20, 0, $949494) 304 304 else 305 ImageOp_BCC(offscreen, Templates , xWeight + 20 * i, yWeight, 105, 400,305 ImageOp_BCC(offscreen, Templates.Data, xWeight + 20 * i, yWeight, 105, 400, 306 306 18, 20, 0, $949494); 307 307 end; -
trunk/LocalPlayer/Help.pas
r313 r315 465 465 if ((ScaleToNative(y0) + y) >= 0) and ((ScaleToNative(y0) + y) < ScaleToNative(InnerHeight)) then begin 466 466 PaintPtr := PixelPointer(OffScreen, 0, ScaleToNative(y0) + y); 467 CoalPtr := PixelPointer(Templates , 0, ScaleToNative(yCoal) + y);467 CoalPtr := PixelPointer(Templates.Data, 0, ScaleToNative(yCoal) + y); 468 468 for dy := -1 to 1 do 469 469 if ((Max(y + ScaleToNative(dy), 0) shr 1) >= 0) and ((Max(y + ScaleToNative(dy), 0) shr 1) < ScaleToNative(ySizeBig)) then -
trunk/LocalPlayer/IsoEngine.pas
r314 r315 628 628 if Flags and unFortified <> 0 then 629 629 begin 630 { DataCanvas:= GrExt[HGrTerrain].Data.Canvas;631 MaskCanvas:= GrExt[HGrTerrain].Mask.Canvas;630 { DataCanvas:=HGrTerrain.Data.Canvas; 631 MaskCanvas:=HGrTerrain.Mask.Canvas; 632 632 TSprite(x,y+16,12*9+7); } 633 633 Sprite(HGrStdUnits, x, y, xxu * 2, yyu * 2, 1 + 6 * (xxu * 2 + 1), 1); -
trunk/LocalPlayer/MessgEx.pas
r313 r315 310 310 Trunc(Screwed[ix, iy, 0] / Screwed[ix, iy, 3]) shl 16; 311 311 312 ImageOp_BCC(LogoBuffer, Templates , 0, 0, xb, yb, wb, hb, clCover, clPage);312 ImageOp_BCC(LogoBuffer, Templates.Data, 0, 0, xb, yb, wb, hb, clCover, clPage); 313 313 314 314 BitBltCanvas(ca, x, y, wb, hb, LogoBuffer.Canvas, 0, 0); … … 441 441 BitBltCanvas(Buffer.Canvas, 0, 0, 140, 120, Canvas, 442 442 (ClientWidth - 140) div 2, 24); 443 ImageOp_BCC(Buffer, Templates , 0, 0, 1, 279, 140, 120, 0, $FFFFFF);443 ImageOp_BCC(Buffer, Templates.Data, 0, 0, 1, 279, 140, 120, 0, $FFFFFF); 444 444 BitBltCanvas(Canvas, (ClientWidth - 140) div 2, 24, 140, 120, 445 445 Buffer.Canvas, 0, 0); -
trunk/LocalPlayer/NatStat.pas
r313 r315 82 82 ReportText := TStringList.Create; 83 83 InitButtons(); 84 ContactBtn.Template := Templates ;84 ContactBtn.Template := Templates.Data; 85 85 HelpContext := 'DIPLOMACY'; 86 86 ToggleBtn.Hint := Phrases.Lookup('BTN_SELECT'); -
trunk/LocalPlayer/Select.pas
r313 r315 819 819 BitBltCanvas(ScienceNationDot.Canvas, 0, 0, 17, 17, Canvas, 820 820 xScreen - 10, ClientHeight - 27); 821 ImageOp_BCC(ScienceNationDot, Templates , 0, 0, 114, 211, 17, 17,821 ImageOp_BCC(ScienceNationDot, Templates.Data, 0, 0, 114, 211, 17, 17, 822 822 MainTexture.clBevelShade, Tribe[ScienceNation].Color); 823 823 BitBltCanvas(Canvas, xScreen - 10, ClientHeight - 27, 17, 17, -
trunk/LocalPlayer/TechTree.pas
r295 r315 131 131 NewWidth: Integer; 132 132 NewHeight: Integer; 133 const134 TransparentColor: Cardinal = $7F007F;135 133 begin 136 134 if Image = nil then begin … … 156 154 TextOut(xStart + X * xPitch + 2, yStart + Y * yPitch, s); 157 155 Pixels[xStart + X * xPitch + 10, yStart + Y * yPitch - 1] 158 := TransparentColor ;156 := TransparentColor2; 159 157 end 160 158 end; … … 171 169 end; 172 170 173 Texturize(Image, Paper, TransparentColor );171 Texturize(Image, Paper, TransparentColor2); 174 172 end; 175 173 -
trunk/LocalPlayer/Term.pas
r314 r315 2547 2547 Jump[0] := 999999; 2548 2548 GameMode := Command; 2549 for i := 0 to GrExt.Count - 1 do 2550 GrExt[i].ResetPixUsed; 2549 GrExt.ResetPixUsed; 2551 2550 IsoEngine.Reset; 2552 2551 Tribes.Init; … … 3512 3511 Canvas.Font.Assign(UniFont[ftSmall]); 3513 3512 InitButtons; 3514 EOT.Template := Templates ;3513 EOT.Template := Templates.Data; 3515 3514 end; 3516 3515 … … 4844 4843 end; 4845 4844 if GameMode <> cMovie then 4846 ImageOp_BCC(TopBar, Templates , 2, 1, 145, 38, 36, 36, $BFBF20, $4040DF);4845 ImageOp_BCC(TopBar, Templates.Data, 2, 1, 145, 38, 36, 36, $BFBF20, $4040DF); 4847 4846 if MyRO.nCity > 0 then 4848 4847 begin … … 4860 4859 4861 4860 // treasury section 4862 ImageOp_BCC(TopBar, Templates , xTreasurySection + 8, 1, 145, 1, 36, 36,4861 ImageOp_BCC(TopBar, Templates.Data, xTreasurySection + 8, 1, 145, 1, 36, 36, 4863 4862 $40A040, $4030C0); 4864 4863 s := IntToStr(TrueMoney); … … 4867 4866 if MyRO.Government <> gAnarchy then 4868 4867 begin 4869 ImageOp_BCC(TopBar, Templates , xTreasurySection + 48, 22, 124, 1, 14, 14,4868 ImageOp_BCC(TopBar, Templates.Data, xTreasurySection + 48, 22, 124, 1, 14, 14, 4870 4869 $0000C0, $0080C0); 4871 4870 if TaxSum >= 0 then … … 4878 4877 4879 4878 // research section 4880 ImageOp_BCC(TopBar, Templates , xResearchSection + 8, 1, 145, 75, 36, 36,4879 ImageOp_BCC(TopBar, Templates.Data, xResearchSection + 8, 1, 145, 75, 36, 36, 4881 4880 $FF0000, $00FFE0); 4882 4881 if MyData.FarTech <> adNexus then … … 4929 4928 if (MyData.FarTech <> adNexus) and (ScienceSum > 0) then 4930 4929 begin 4931 ImageOp_BCC(TopBar, Templates , xResearchSection + 48 + CostFactor + 11,4930 ImageOp_BCC(TopBar, Templates.Data, xResearchSection + 48 + CostFactor + 11, 4932 4931 22, 124, 1, 14, 14, $0000C0, $0080C0); 4933 4932 s := Format(Phrases.Lookup('TECHGAIN'), [ScienceSum]); -
trunk/LocalPlayer/Tribes.pas
r314 r315 466 466 facepix div 10 * 49 + 48] := $000000; 467 467 Gray := $B8B8B8; 468 ImageOp_BCC(faceHGr.Data, Templates ,468 ImageOp_BCC(faceHGr.Data, Templates.Data, 469 469 facepix mod 10 * 65 + 1, facepix div 10 * 49 + 1, 1, 25, 64, 48, 470 470 Gray, Color);
Note:
See TracChangeset
for help on using the changeset viewer.