Changeset 352 for trunk/Start.pas
- Timestamp:
- Apr 6, 2021, 10:16:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.pas
r344 r352 537 537 begin 538 538 Frame(Canvas, 328, yMain + 112 - 15, ClientWidth, Up2Btn.top + 38, 539 MainTexture. clBevelShade, MainTexture.clBevelLight);539 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 540 540 if AutoDiff > 0 then 541 541 begin … … 543 543 yMain + 112 - 15 { Up1Btn.Top-12 }{ y0Brain-dyBrain } , 544 544 x0Brain + dxBrain + 64, Up2Btn.top + 38 { y0Brain+dyBrain+64 } , 545 MainTexture. clBevelShade, MainTexture.clBevelLight);545 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 546 546 end; 547 547 end 548 548 else if Page <> pgMain then 549 549 Frame(Canvas, 328, Up1Btn.top - 15, ClientWidth, Up2Btn.top + 38, 550 MainTexture. clBevelShade, MainTexture.clBevelLight);550 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 551 551 Frame(Canvas, 0, 0, ClientWidth - 1, ClientHeight - 1, 0, 0); 552 552 553 553 // draw tabs 554 554 Frame(Canvas, 2, 2 + 2 * integer(Tab <> tbMain), TabOffset + (0 + 1) * TabSize - 1, 555 TabHeight, MainTexture. clBevelLight, MainTexture.clBevelShade);555 TabHeight, MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 556 556 Frame(Canvas, 1, 1 + 2 * integer(Tab <> tbMain), TabOffset + (0 + 1) * TabSize, 557 TabHeight, MainTexture. clBevelLight, MainTexture.clBevelShade);558 Canvas.Pixels[1, 1 + 2 * integer(Tab <> tbMain)] := MainTexture. clBevelShade;557 TabHeight, MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 558 Canvas.Pixels[1, 1 + 2 * integer(Tab <> tbMain)] := MainTexture.ColorBevelShade; 559 559 for Tab2 := tbMap to tbPrevious do 560 560 begin 561 561 Frame(Canvas, TabOffset + Integer(Tab2) * TabSize + 2, 2 + 2 * integer(Tab <> Tab2), 562 TabOffset + (Integer(Tab2) + 1) * TabSize - 1, TabHeight, MainTexture. clBevelLight,563 MainTexture. clBevelShade);562 TabOffset + (Integer(Tab2) + 1) * TabSize - 1, TabHeight, MainTexture.ColorBevelLight, 563 MainTexture.ColorBevelShade); 564 564 Frame(Canvas, TabOffset + Integer(Tab2) * TabSize + 1, 1 + 2 * integer(Tab <> Tab2), 565 TabOffset + (Integer(Tab2) + 1) * TabSize, TabHeight, MainTexture. clBevelLight,566 MainTexture. clBevelShade);565 TabOffset + (Integer(Tab2) + 1) * TabSize, TabHeight, MainTexture.ColorBevelLight, 566 MainTexture.ColorBevelShade); 567 567 Canvas.Pixels[TabOffset + Integer(Tab2) * TabSize + 1, 1 + 2 * integer(Tab <> Tab2)] := 568 MainTexture. clBevelShade;568 MainTexture.ColorBevelShade; 569 569 end; 570 570 Canvas.Font.Assign(UniFont[ftNormal]); … … 579 579 $000000, $000000); 580 580 Frame(Canvas, 1, TabHeight + 1, ClientWidth - 2, ClientHeight - 2, 581 MainTexture. clBevelLight, MainTexture.clBevelShade);581 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 582 582 Frame(Canvas, 2, TabHeight + 2, ClientWidth - 3, ClientHeight - 3, 583 MainTexture. clBevelLight, MainTexture.clBevelShade);583 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 584 584 if Tab = tbMain then 585 585 begin 586 586 PaintBackground(self, 3, TabHeight - 1, TabSize - 4 - 3 + TabOffset + 3, 4); 587 Canvas.Pixels[2, TabHeight] := MainTexture. clBevelLight;587 Canvas.Pixels[2, TabHeight] := MainTexture.ColorBevelLight; 588 588 end 589 589 else … … 592 592 TabSize - 4, 4); 593 593 Canvas.Pixels[TabOffset + Integer(Tab) * TabSize + 2, TabHeight] := 594 MainTexture. clBevelLight;594 MainTexture.ColorBevelLight; 595 595 end; 596 596 Canvas.Pixels[TabOffset + (Integer(Tab) + 1) * TabSize - 1, TabHeight + 1] := 597 MainTexture. clBevelShade;597 MainTexture.ColorBevelShade; 598 598 if Tab < tbPrevious then 599 599 Frame(Canvas, TabOffset + (Integer(Tab) + 1) * TabSize + 1, 3, 600 TabOffset + (Integer(Tab) + 1) * TabSize + 2, TabHeight, MainTexture. clBevelShade,601 MainTexture. clBevelShade); // Tab shadow600 TabOffset + (Integer(Tab) + 1) * TabSize + 2, TabHeight, MainTexture.ColorBevelShade, 601 MainTexture.ColorBevelShade); // Tab shadow 602 602 603 603 // Paint menu logo … … 685 685 HGrSystem2.Data.Canvas, Ornament.Left, Ornament.Top, SRCPAINT); 686 686 end; 687 PaintLogo(Canvas, 69 + 11 * 27, yLogo, MainTexture. clBevelLight,688 MainTexture. clBevelShade);687 PaintLogo(Canvas, 69 + 11 * 27, yLogo, MainTexture.ColorBevelLight, 688 MainTexture.ColorBevelShade); 689 689 690 690 for i := 0 to nPlOffered - 1 do … … 706 706 RFrame(Canvas, PlayerSlots[i].DiffUpBtn.left - 1, PlayerSlots[i].DiffUpBtn.top - 1, 707 707 PlayerSlots[i].DiffUpBtn.left + 12, PlayerSlots[i].DiffUpBtn.top + 24, 708 MainTexture. clBevelShade, MainTexture.clBevelLight);708 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 709 709 with Canvas do 710 710 begin … … 718 718 RFrame(Canvas, PlayerSlots[I].MultiBtn.left - 1, PlayerSlots[I].MultiBtn.top - 1, 719 719 PlayerSlots[I].MultiBtn.left + 12, PlayerSlots[I].MultiBtn.top + 12, 720 MainTexture. clBevelShade, MainTexture.clBevelLight);720 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 721 721 BitBltCanvas(Canvas, xBrain[i] - 31, yBrain[i], 13, 12, 722 722 HGrSystem.Data.Canvas, 88, 47); … … 733 733 else 734 734 begin 735 DLine(Canvas, 24, 198, yMain + 140 + 19, MainTexture. clBevelLight,736 MainTexture. clBevelShade);735 DLine(Canvas, 24, 198, yMain + 140 + 19, MainTexture.ColorBevelLight, 736 MainTexture.ColorBevelShade); 737 737 RisedTextOut(Canvas, 24 { x0Brain+32-BiColorTextWidth(Canvas,s) div 2 } , 738 738 yMain + 140 { y0Mini-77 } , Phrases.Lookup('STARTCONTROLS', 15)); … … 746 746 747 747 DLine(Canvas, 24, xDefault - 6, yMain + 164 + 19, 748 MainTexture. clBevelLight, MainTexture.clBevelShade);748 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 749 749 RisedTextOut(Canvas, 24 { x0Brain+32-BiColorTextWidth(Canvas,s) div 2 } , 750 750 yMain + 164 { y0Mini-77 } , Phrases.Lookup('STARTCONTROLS', 16)); … … 755 755 FrameImage(Canvas, BrainDefault.Picture, xDefault, yDefault, 64, 64, 756 756 0, 0, true); 757 DLine(Canvas, 56, 272, y0Mini + 61 + 19, MainTexture. clBevelLight,758 MainTexture. clBevelShade);757 DLine(Canvas, 56, 272, y0Mini + 61 + 19, MainTexture.ColorBevelLight, 758 MainTexture.ColorBevelShade); 759 759 760 760 RisedTextOut(Canvas, 56, y0Mini + 61, … … 771 771 HGrSystem2.Data.Canvas, Ornament.Left, Ornament.Top, SRCPAINT); 772 772 end; 773 PaintLogo(Canvas, 69, yLogo, MainTexture. clBevelLight,774 MainTexture. clBevelShade);773 PaintLogo(Canvas, 69, yLogo, MainTexture.ColorBevelLight, 774 MainTexture.ColorBevelShade); 775 775 end; 776 776 end … … 788 788 end 789 789 else 790 DLine(Canvas, 344, 514, y0Mini + 61 + 19, MainTexture. clBevelLight,791 MainTexture. clBevelShade);790 DLine(Canvas, 344, 514, y0Mini + 61 + 19, MainTexture.ColorBevelLight, 791 MainTexture.ColorBevelShade); 792 792 RisedTextOut(Canvas, 344, y0Mini + 61, Phrases.Lookup('STARTCONTROLS', 8)); 793 793 s := TurnToString(LoadTurn); … … 805 805 else if Page = pgEditMap then 806 806 begin 807 // DLine(Canvas,344,514,y0Mini+61+19,MainTexture. clBevelLight,MainTexture.clBevelShade);807 // DLine(Canvas,344,514,y0Mini+61+19,MainTexture.ColorBevelLight,MainTexture.ColorBevelShade); 808 808 s := Format(Phrases2.Lookup('MAPPROP'), 809 809 [(nMapLandTiles * 100 + 556) div 1112, … … 818 818 if Up2Btn.Visible then 819 819 RFrame(Canvas, Up2Btn.left - 1, Up2Btn.top - 1, Up2Btn.left + 12, 820 Up2Btn.top + 24, MainTexture. clBevelShade, MainTexture.clBevelLight);820 Up2Btn.top + 24, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 821 821 if Up1Btn.Visible then 822 822 RFrame(Canvas, Up1Btn.left - 1, Up1Btn.top - 1, Up1Btn.left + 12, 823 Up1Btn.top + 24, MainTexture. clBevelShade, MainTexture.clBevelLight);823 Up1Btn.top + 24, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 824 824 if AutoDiffUpBtn.Visible then 825 825 RFrame(Canvas, AutoDiffUpBtn.left - 1, AutoDiffUpBtn.top - 1, 826 AutoDiffUpBtn.left + 12, AutoDiffUpBtn.top + 24, MainTexture. clBevelShade,827 MainTexture. clBevelLight);826 AutoDiffUpBtn.left + 12, AutoDiffUpBtn.top + 24, MainTexture.ColorBevelShade, 827 MainTexture.ColorBevelLight); 828 828 if AutoEnemyUpBtn.Visible then 829 829 RFrame(Canvas, AutoEnemyUpBtn.left - 1, AutoEnemyUpBtn.top - 1, 830 830 AutoEnemyUpBtn.left + 12, AutoEnemyUpBtn.top + 24, 831 MainTexture. clBevelShade, MainTexture.clBevelLight);831 MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 832 832 if CustomizeBtn.Visible then 833 833 RFrame(Canvas, CustomizeBtn.left - 1, CustomizeBtn.top - 1, 834 CustomizeBtn.left + 12, CustomizeBtn.top + 12, MainTexture. clBevelShade,835 MainTexture. clBevelLight);834 CustomizeBtn.left + 12, CustomizeBtn.top + 12, MainTexture.ColorBevelShade, 835 MainTexture.ColorBevelLight); 836 836 if List.Visible then 837 837 EditFrame(Canvas, List.BoundsRect, MainTexture); … … 848 848 yMini := y0Mini - MiniMap.Size.Y div 2; 849 849 Frame(Canvas, xMini, yMini, xMini + 3 + MiniMap.Size.X * 2, 850 yMini + 3 + MiniMap.Size.Y, MainTexture. clBevelLight,851 MainTexture. clBevelShade);850 yMini + 3 + MiniMap.Size.Y, MainTexture.ColorBevelLight, 851 MainTexture.ColorBevelShade); 852 852 Frame(Canvas, xMini + 1, yMini + 1, xMini + 2 + MiniMap.Size.X * 2, 853 yMini + 2 + MiniMap.Size.Y, MainTexture. clBevelShade,854 MainTexture. clBevelLight);853 yMini + 2 + MiniMap.Size.Y, MainTexture.ColorBevelShade, 854 MainTexture.ColorBevelLight); 855 855 856 856 s := ''; … … 878 878 procedure TStartDlg.FormShow(Sender: TObject); 879 879 begin 880 SetMainTextureByAge(-1);881 List.Font.Color := MainTexture. clMark;880 MainTexture.Age := -1; 881 List.Font.Color := MainTexture.ColorMark; 882 882 883 883 Fill(EmptyPicture.Canvas, Bounds(0, 0, 64, 64), 884 Point(( wMaintexture - 64) div 2, (hMaintexture- 64) div 2));884 Point((Maintexture.Width - 64) div 2, (Maintexture.Height - 64) div 2)); 885 885 886 886 DarkenImage(EmptyPicture, 28);
Note:
See TracChangeset
for help on using the changeset viewer.