Changeset 352 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Apr 6, 2021, 10:16:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r346 r352 1691 1691 Controls[i].Visible := false; 1692 1692 me := -1; 1693 SetMainTextureByAge(-1);1693 MainTexture.Age := -1; 1694 1694 with Panel.Canvas do 1695 1695 begin … … 1728 1728 { if MyRO.Happened and phGameEnd<>0 then 1729 1729 begin 1730 Age :=3;1731 SetMainTextureByAge(-1);1730 Age := 3; 1731 MainTexture.Age := -1; 1732 1732 end 1733 1733 else } 1734 1734 begin 1735 1735 Age := GetAge(me); 1736 if SetMainTextureByAge(Age) then 1736 if MainTexture.Age <> Age then begin 1737 MainTexture.Age := Age; 1737 1738 EOT.Invalidate; // has visible background parts in its bounds 1739 end; 1738 1740 end; 1739 1741 // age:=MyRO.Turn mod 4; //!!! … … 1748 1750 begin 1749 1751 Age := 0; 1750 SetMainTextureByAge(-1);1752 MainTexture.Age := -1; 1751 1753 if ClientMode = cMovieTurn then 1752 1754 EOT.ButtonIndex := eotCancel … … 2538 2540 Age := 0; 2539 2541 if Command = cHelpOnly then 2540 SetMainTextureByAge(-1);2542 MainTexture.Age := -1; 2541 2543 Tribes.Init; 2542 2544 HelpDlg.UserLeft := (Screen.width - HelpDlg.width) div 2; … … 4265 4267 xMini + 2 + G.lx - MapWidth div (xxt * 2), yMini + 2, 4266 4268 xMini + 1 + G.lx + MapWidth div (xxt * 2), yMini + 2 + G.ly - 1, 4267 MainTexture. clMark, MainTexture.clMark)4269 MainTexture.ColorMark, MainTexture.ColorMark) 4268 4270 else 4269 4271 Frame(Panel.Canvas, 4270 4272 xMini + 2 + G.lx - MapWidth div (xxt * 2), yMini + 2 + yw, 4271 4273 xMini + 1 + G.lx + MapWidth div (xxt * 2), yMini + yw + MapHeight div yyt, 4272 MainTexture. clMark, MainTexture.clMark);4274 MainTexture.ColorMark, MainTexture.ColorMark); 4273 4275 end; 4274 4276 end; … … 4301 4303 begin 4302 4304 Fill(Panel.Canvas, 0, 3, xMidPanel + 7 - 10, PanelHeight - 3, 4303 wMainTexture - (xMidPanel + 7 - 10), hMainTexture- PanelHeight);4305 MainTexture.Width - (xMidPanel + 7 - 10), MainTexture.Height - PanelHeight); 4304 4306 Fill(Panel.Canvas, xRightPanel + 10 - 7, 3, Panel.width - xRightPanel - 10 + 4305 7, PanelHeight - 3, -(xRightPanel + 10 - 7), hMainTexture- PanelHeight);4307 7, PanelHeight - 3, -(xRightPanel + 10 - 7), MainTexture.Height - PanelHeight); 4306 4308 FillLarge(Panel.Canvas, xMidPanel - 2, PanelHeight - MidPanelHeight, 4307 4309 xRightPanel + 2, PanelHeight, ClientWidth div 2); … … 4315 4317 LineTo(xRightPanel, 0); 4316 4318 LineTo(ClientWidth, 0); 4317 Pen.Color := MainTexture. clBevelLight;4319 Pen.Color := MainTexture.ColorBevelLight; 4318 4320 MoveTo(xMidPanel + 7 - 9, PanelHeight - MidPanelHeight + 2); 4319 4321 LineTo(xRightPanel + 10 - 8, PanelHeight - MidPanelHeight + 2); 4320 Pen.Color := MainTexture. clBevelLight;4322 Pen.Color := MainTexture.ColorBevelLight; 4321 4323 MoveTo(0, 1); 4322 4324 LineTo(xMidPanel + 7 - 9, 1); 4323 Pen.Color := MainTexture. clBevelShade;4325 Pen.Color := MainTexture.ColorBevelShade; 4324 4326 LineTo(xMidPanel + 7 - 9, PanelHeight - MidPanelHeight + 1); 4325 Pen.Color := MainTexture. clBevelLight;4327 Pen.Color := MainTexture.ColorBevelLight; 4326 4328 LineTo(xRightPanel + 10 - 9, PanelHeight - MidPanelHeight + 1); 4327 Pen.Color := MainTexture. clBevelLight;4329 Pen.Color := MainTexture.ColorBevelLight; 4328 4330 LineTo(xRightPanel + 10 - 9, 1); 4329 4331 LineTo(ClientWidth, 1); … … 4333 4335 MoveTo(0, 2); 4334 4336 LineTo(xMidPanel + 7 - 10, 2); 4335 Pen.Color := MainTexture. clBevelShade;4337 Pen.Color := MainTexture.ColorBevelShade; 4336 4338 LineTo(xMidPanel + 7 - 10, PanelHeight); 4337 4339 Corner(Panel.Canvas, xMidPanel + 7 - 16, 1, 1, MainTexture); … … 4472 4474 ScreenTools.Frame(Panel.Canvas, xTroop + 1 + x, 4473 4475 yTroop + 6 - yyt div 2, xTroop + 2 * xxt - 1 + x, 4474 yTroop + 2 * yyt + 10, MainTexture. clMark, MainTexture.clMark);4476 yTroop + 2 * yyt + 10, MainTexture.ColorMark, MainTexture.ColorMark); 4475 4477 end; 4476 4478 end; … … 4590 4592 else 4591 4593 x := xTroop - 152; 4592 Pen.Color := MainTexture. clBevelShade;4594 Pen.Color := MainTexture.ColorBevelShade; 4593 4595 MoveTo(x - 1, PanelHeight - MidPanelHeight + 2); 4594 4596 LineTo(x - 1, PanelHeight); 4595 Pen.Color := MainTexture. clBevelLight;4597 Pen.Color := MainTexture.ColorBevelLight; 4596 4598 MoveTo(x, PanelHeight - MidPanelHeight + 2); 4597 4599 LineTo(x, PanelHeight); … … 4631 4633 ScreenTools.Frame(Panel.Canvas, xTroop + 3 + x, 4632 4634 yTroop + 2, xTroop + 63 + x, yTroop + 46, 4633 MainTexture. clMark, MainTexture.clMark);4635 MainTexture.ColorMark, MainTexture.ColorMark); 4634 4636 end 4635 4637 else if (unx.Master >= 0) and (unx.Master = UnFocus) then … … 4638 4640 xTroop + 64 + x, yTroop + 47, 8, $000000); 4639 4641 CFrame(Panel.Canvas, xTroop + 3 + x, yTroop + 2, 4640 xTroop + 63 + x, yTroop + 46, 8, MainTexture. clMark);4642 xTroop + 63 + x, yTroop + 46, 8, MainTexture.ColorMark); 4641 4643 end; 4642 4644 NoMapPanel.SetOutput(Panel); … … 4733 4735 RFrame(Panel.Canvas, Left - 1, Top - self.ClientHeight + 4734 4736 (PanelHeight - 1), Left + width, Top + height - self.ClientHeight + 4735 PanelHeight, MainTexture. clBevelShade, MainTexture.clBevelLight)4737 PanelHeight, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight) 4736 4738 end; { if TroopLoc>=0 } 4737 4739 end; … … 4749 4751 RFrame(Panel.Canvas, Left - 1, Top - self.ClientHeight + 4750 4752 (PanelHeight - 1), Left + width, Top + height - self.ClientHeight + 4751 PanelHeight, MainTexture. clBevelShade, MainTexture.clBevelLight);4753 PanelHeight, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 4752 4754 end; 4753 4755 end; … … 4763 4765 RFrame(Panel.Canvas, Left - 1, Top - self.ClientHeight + 4764 4766 (PanelHeight - 1), Left + width, Top + height - self.ClientHeight + 4765 PanelHeight, MainTexture. clBevelShade, MainTexture.clBevelLight);4767 PanelHeight, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 4766 4768 end; 4767 4769 end; … … 4780 4782 MoveTo(0, TopBarHeight - 1); 4781 4783 LineTo(ClientWidth, TopBarHeight - 1); 4782 Pen.Color := MainTexture. clBevelShade;4784 Pen.Color := MainTexture.ColorBevelShade; 4783 4785 MoveTo(0, TopBarHeight - 2); 4784 4786 LineTo(ClientWidth, TopBarHeight - 2); 4785 4787 MoveTo(0, TopBarHeight - 3); 4786 4788 LineTo(ClientWidth, TopBarHeight - 3); 4787 Pen.Color := MainTexture. clBevelLight;4789 Pen.Color := MainTexture.ColorBevelLight; 4788 4790 ScreenTools.Frame(TopBar.Canvas, 40, -1, xTreasurySection - 1, 4789 TopBarHeight - 7, MainTexture. clBevelShade, MainTexture.clBevelLight);4791 TopBarHeight - 7, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 4790 4792 ScreenTools.Frame(TopBar.Canvas, xResearchSection + 332, -1, ClientWidth, 4791 TopBarHeight - 7, MainTexture. clBevelShade, MainTexture.clBevelLight);4793 TopBarHeight - 7, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 4792 4794 end; 4793 4795 if GameMode <> cMovie then … … 5224 5226 Frame(Panel.Canvas, xMini + 2 + G.lx - MapWidth div (2 * xxt), 5225 5227 yMini + 2, xMini + 1 + G.lx + MapWidth div (2 * xxt), 5226 yMini + 2 + G.ly - 1, MainTexture. clMark, MainTexture.clMark)5228 yMini + 2 + G.ly - 1, MainTexture.ColorMark, MainTexture.ColorMark) 5227 5229 else 5228 5230 Frame(Panel.Canvas, xMini + 2 + G.lx - MapWidth div (2 * xxt), 5229 5231 yMini + 2 + yw, xMini + 2 + G.lx + MapWidth div (2 * xxt) - 1, 5230 yMini + 2 + yw + MapHeight div yyt - 2, MainTexture. clMark,5231 MainTexture. clMark);5232 yMini + 2 + yw + MapHeight div yyt - 2, MainTexture.ColorMark, 5233 MainTexture.ColorMark); 5232 5234 end; 5233 5235 RectInvalidate(xMini + 2, TopBarHeight + MapHeight - overlap + yMini + 2, … … 7492 7494 Frame(Buffer.Canvas, x - xMini - 2 - MapWidth div (xxt * 2), 0, 7493 7495 x - xMini - 2 + MapWidth div (xxt * 2) - 1, G.ly - 1, 7494 MainTexture. clMark, MainTexture.clMark)7496 MainTexture.ColorMark, MainTexture.ColorMark) 7495 7497 else 7496 7498 Frame(Buffer.Canvas, x - xMini - 2 - MapWidth div (xxt * 2), yw, 7497 7499 x - xMini - 2 + MapWidth div (xxt * 2) - 1, yw + MapHeight div yyt - 7498 2, MainTexture. clMark, MainTexture.clMark);7500 2, MainTexture.ColorMark, MainTexture.ColorMark); 7499 7501 BitBltCanvas(Panel.Canvas, xMini + 2, yMini + 2, G.lx * 2, G.ly, 7500 7502 Buffer.Canvas, 0, 0);
Note:
See TracChangeset
for help on using the changeset viewer.