Changeset 361 for branches/highdpi/LocalPlayer/Term.pas
- Timestamp:
- Apr 9, 2021, 5:56:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Term.pas
r351 r361 1697 1697 Controls[i].Visible := false; 1698 1698 me := -1; 1699 SetMainTextureByAge(-1);1699 MainTexture.Age := -1; 1700 1700 with Panel.Canvas do 1701 1701 begin … … 1734 1734 { if MyRO.Happened and phGameEnd<>0 then 1735 1735 begin 1736 Age :=3;1737 SetMainTextureByAge(-1);1736 Age := 3; 1737 MainTexture.Age := -1; 1738 1738 end 1739 1739 else } 1740 1740 begin 1741 1741 Age := GetAge(me); 1742 if SetMainTextureByAge(Age) then 1742 if MainTexture.Age <> Age then begin 1743 MainTexture.Age := Age; 1743 1744 EOT.Invalidate; // has visible background parts in its bounds 1745 end; 1744 1746 end; 1745 1747 // age:=MyRO.Turn mod 4; //!!! … … 1754 1756 begin 1755 1757 Age := 0; 1756 SetMainTextureByAge(-1);1758 MainTexture.Age := -1; 1757 1759 if ClientMode = cMovieTurn then 1758 1760 EOT.ButtonIndex := eotCancel … … 2544 2546 Age := 0; 2545 2547 if Command = cHelpOnly then 2546 SetMainTextureByAge(-1);2548 MainTexture.Age := -1; 2547 2549 Tribes.Init; 2548 2550 HelpDlg.UserLeft := (DpiScreen.width - HelpDlg.width) div 2; … … 4271 4273 xMini + 2 + G.lx - MapWidth div (xxt * 2), yMini + 2, 4272 4274 xMini + 1 + G.lx + MapWidth div (xxt * 2), yMini + 2 + G.ly - 1, 4273 MainTexture. clMark, MainTexture.clMark)4275 MainTexture.ColorMark, MainTexture.ColorMark) 4274 4276 else 4275 4277 Frame(Panel.Canvas, 4276 4278 xMini + 2 + G.lx - MapWidth div (xxt * 2), yMini + 2 + yw, 4277 4279 xMini + 1 + G.lx + MapWidth div (xxt * 2), yMini + yw + MapHeight div yyt, 4278 MainTexture. clMark, MainTexture.clMark);4280 MainTexture.ColorMark, MainTexture.ColorMark); 4279 4281 end; 4280 4282 end; … … 4307 4309 begin 4308 4310 Fill(Panel.Canvas, 0, 3, xMidPanel + 7 - 10, PanelHeight - 3, 4309 wMainTexture - (xMidPanel + 7 - 10), hMainTexture- PanelHeight);4311 MainTexture.Width - (xMidPanel + 7 - 10), MainTexture.Height - PanelHeight); 4310 4312 Fill(Panel.Canvas, xRightPanel + 10 - 7, 3, Panel.width - xRightPanel - 10 + 4311 7, PanelHeight - 3, -(xRightPanel + 10 - 7), hMainTexture- PanelHeight);4313 7, PanelHeight - 3, -(xRightPanel + 10 - 7), MainTexture.Height - PanelHeight); 4312 4314 FillLarge(Panel.Canvas, xMidPanel - 2, PanelHeight - MidPanelHeight, 4313 4315 xRightPanel + 2, PanelHeight, ClientWidth div 2); … … 4321 4323 LineTo(xRightPanel, 0); 4322 4324 LineTo(ClientWidth, 0); 4323 Pen.Color := MainTexture. clBevelLight;4325 Pen.Color := MainTexture.ColorBevelLight; 4324 4326 MoveTo(xMidPanel + 7 - 9, PanelHeight - MidPanelHeight + 2); 4325 4327 LineTo(xRightPanel + 10 - 8, PanelHeight - MidPanelHeight + 2); 4326 Pen.Color := MainTexture. clBevelLight;4328 Pen.Color := MainTexture.ColorBevelLight; 4327 4329 MoveTo(0, 1); 4328 4330 LineTo(xMidPanel + 7 - 9, 1); 4329 Pen.Color := MainTexture. clBevelShade;4331 Pen.Color := MainTexture.ColorBevelShade; 4330 4332 LineTo(xMidPanel + 7 - 9, PanelHeight - MidPanelHeight + 1); 4331 Pen.Color := MainTexture. clBevelLight;4333 Pen.Color := MainTexture.ColorBevelLight; 4332 4334 LineTo(xRightPanel + 10 - 9, PanelHeight - MidPanelHeight + 1); 4333 Pen.Color := MainTexture. clBevelLight;4335 Pen.Color := MainTexture.ColorBevelLight; 4334 4336 LineTo(xRightPanel + 10 - 9, 1); 4335 4337 LineTo(ClientWidth, 1); … … 4339 4341 MoveTo(0, 2); 4340 4342 LineTo(xMidPanel + 7 - 10, 2); 4341 Pen.Color := MainTexture. clBevelShade;4343 Pen.Color := MainTexture.ColorBevelShade; 4342 4344 LineTo(xMidPanel + 7 - 10, PanelHeight); 4343 4345 Corner(Panel.Canvas, xMidPanel + 7 - 16, 1, 1, MainTexture); … … 4478 4480 ScreenTools.Frame(Panel.Canvas, xTroop + 1 + x, 4479 4481 yTroop + 6 - yyt div 2, xTroop + 2 * xxt - 1 + x, 4480 yTroop + 2 * yyt + 10, MainTexture. clMark, MainTexture.clMark);4482 yTroop + 2 * yyt + 10, MainTexture.ColorMark, MainTexture.ColorMark); 4481 4483 end; 4482 4484 end; … … 4596 4598 else 4597 4599 x := xTroop - 152; 4598 Pen.Color := MainTexture. clBevelShade;4600 Pen.Color := MainTexture.ColorBevelShade; 4599 4601 MoveTo(x - 1, PanelHeight - MidPanelHeight + 2); 4600 4602 LineTo(x - 1, PanelHeight); 4601 Pen.Color := MainTexture. clBevelLight;4603 Pen.Color := MainTexture.ColorBevelLight; 4602 4604 MoveTo(x, PanelHeight - MidPanelHeight + 2); 4603 4605 LineTo(x, PanelHeight); … … 4637 4639 ScreenTools.Frame(Panel.Canvas, xTroop + 3 + x, 4638 4640 yTroop + 2, xTroop + 63 + x, yTroop + 46, 4639 MainTexture. clMark, MainTexture.clMark);4641 MainTexture.ColorMark, MainTexture.ColorMark); 4640 4642 end 4641 4643 else if (unx.Master >= 0) and (unx.Master = UnFocus) then … … 4644 4646 xTroop + 64 + x, yTroop + 47, 8, $000000); 4645 4647 CFrame(Panel.Canvas, xTroop + 3 + x, yTroop + 2, 4646 xTroop + 63 + x, yTroop + 46, 8, MainTexture. clMark);4648 xTroop + 63 + x, yTroop + 46, 8, MainTexture.ColorMark); 4647 4649 end; 4648 4650 NoMapPanel.SetOutput(Panel); … … 4739 4741 RFrame(Panel.Canvas, Left - 1, Top - self.ClientHeight + 4740 4742 (PanelHeight - 1), Left + width, Top + height - self.ClientHeight + 4741 PanelHeight, MainTexture. clBevelShade, MainTexture.clBevelLight)4743 PanelHeight, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight) 4742 4744 end; { if TroopLoc>=0 } 4743 4745 end; … … 4755 4757 RFrame(Panel.Canvas, Left - 1, Top - self.ClientHeight + 4756 4758 (PanelHeight - 1), Left + width, Top + height - self.ClientHeight + 4757 PanelHeight, MainTexture. clBevelShade, MainTexture.clBevelLight);4759 PanelHeight, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 4758 4760 end; 4759 4761 end; … … 4769 4771 RFrame(Panel.Canvas, Left - 1, Top - self.ClientHeight + 4770 4772 (PanelHeight - 1), Left + width, Top + height - self.ClientHeight + 4771 PanelHeight, MainTexture. clBevelShade, MainTexture.clBevelLight);4773 PanelHeight, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 4772 4774 end; 4773 4775 end; … … 4786 4788 MoveTo(0, TopBarHeight - 1); 4787 4789 LineTo(ClientWidth, TopBarHeight - 1); 4788 Pen.Color := MainTexture. clBevelShade;4790 Pen.Color := MainTexture.ColorBevelShade; 4789 4791 MoveTo(0, TopBarHeight - 2); 4790 4792 LineTo(ClientWidth, TopBarHeight - 2); 4791 4793 MoveTo(0, TopBarHeight - 3); 4792 4794 LineTo(ClientWidth, TopBarHeight - 3); 4793 Pen.Color := MainTexture. clBevelLight;4795 Pen.Color := MainTexture.ColorBevelLight; 4794 4796 ScreenTools.Frame(TopBar.Canvas, 40, -1, xTreasurySection - 1, 4795 TopBarHeight - 7, MainTexture. clBevelShade, MainTexture.clBevelLight);4797 TopBarHeight - 7, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 4796 4798 ScreenTools.Frame(TopBar.Canvas, xResearchSection + 332, -1, ClientWidth, 4797 TopBarHeight - 7, MainTexture. clBevelShade, MainTexture.clBevelLight);4799 TopBarHeight - 7, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 4798 4800 end; 4799 4801 if GameMode <> cMovie then … … 5230 5232 Frame(Panel.Canvas, xMini + 2 + G.lx - MapWidth div (2 * xxt), 5231 5233 yMini + 2, xMini + 1 + G.lx + MapWidth div (2 * xxt), 5232 yMini + 2 + G.ly - 1, MainTexture. clMark, MainTexture.clMark)5234 yMini + 2 + G.ly - 1, MainTexture.ColorMark, MainTexture.ColorMark) 5233 5235 else 5234 5236 Frame(Panel.Canvas, xMini + 2 + G.lx - MapWidth div (2 * xxt), 5235 5237 yMini + 2 + yw, xMini + 2 + G.lx + MapWidth div (2 * xxt) - 1, 5236 yMini + 2 + yw + MapHeight div yyt - 2, MainTexture. clMark,5237 MainTexture. clMark);5238 yMini + 2 + yw + MapHeight div yyt - 2, MainTexture.ColorMark, 5239 MainTexture.ColorMark); 5238 5240 end; 5239 5241 RectInvalidate(xMini + 2, TopBarHeight + MapHeight - overlap + yMini + 2, … … 7498 7500 Frame(Buffer.Canvas, x - xMini - 2 - MapWidth div (xxt * 2), 0, 7499 7501 x - xMini - 2 + MapWidth div (xxt * 2) - 1, G.ly - 1, 7500 MainTexture. clMark, MainTexture.clMark)7502 MainTexture.ColorMark, MainTexture.ColorMark) 7501 7503 else 7502 7504 Frame(Buffer.Canvas, x - xMini - 2 - MapWidth div (xxt * 2), yw, 7503 7505 x - xMini - 2 + MapWidth div (xxt * 2) - 1, yw + MapHeight div yyt - 7504 2, MainTexture. clMark, MainTexture.clMark);7506 2, MainTexture.ColorMark, MainTexture.ColorMark); 7505 7507 DpiBitCanvas(Panel.Canvas, xMini + 2, yMini + 2, G.lx * 2, G.ly, 7506 7508 Buffer.Canvas, 0, 0); … … 8036 8038 8037 8039 end. 8040
Note:
See TracChangeset
for help on using the changeset viewer.