Changeset 86 for trunk/Game.pas
- Timestamp:
- Jun 7, 2024, 12:47:11 PM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Game.pas
r85 r86 1 unit UGame; 2 3 {$mode delphi}{$H+} 1 unit Game; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, Dialogs, fgl, Graphics, Types, Forms, Math, DateUtils,6 Classes, SysUtils, Dialogs, Generics.Collections, Graphics, Types, Forms, Math, DateUtils, 9 7 Controls, RegistryEx; 10 8 … … 26 24 end; 27 25 28 TTiles = class(T FPGObjectList<TTile>)26 TTiles = class(TObjectList<TTile>) 29 27 end; 30 28 … … 50 48 { THistoryMoves } 51 49 52 THistoryMoves = class(T FPGObjectList<THistoryMove>)50 THistoryMoves = class(TObjectList<THistoryMove>) 53 51 procedure SaveToRegistry(Reg: TRegistryEx; RegContext: TRegistryContext); 54 52 procedure LoadFromRegistry(Reg: TRegistryEx; RegContext: TRegistryContext); … … 166 164 end; 167 165 168 TGames = class(T FPGObjectList<TGame>)166 TGames = class(TObjectList<TGame>) 169 167 end; 170 168 … … 196 194 197 195 uses 198 UCore, MetaCanvas;196 Core, MetaCanvas; 199 197 200 198 procedure Translate; … … 627 625 TopBarHeight := ScaleY(24, 96); 628 626 MetaCanvas.Brush.Style := bsSolid; 629 MetaCanvas.Brush.Color := Core. ThemeManager1.Theme.ColorControl;627 MetaCanvas.Brush.Color := Core.Core.ThemeManager1.Theme.ColorControl; 630 628 MetaCanvas.FillRect(0, 0, MetaCanvas.Width, MetaCanvas.Height); 631 629 632 630 ValueStr := SScore + ': ' + IntToStr(Score); 633 631 MetaCanvas.Brush.Style := bsClear; 634 MetaCanvas.Font.Color := Core. ThemeManager1.Theme.ColorControlText;632 MetaCanvas.Font.Color := Core.Core.ThemeManager1.Theme.ColorControlText; 635 633 MetaCanvas.Font.Height := Trunc(TopBarHeight * 0.7); 636 634 MetaCanvas.TextOut(ScaleY(16, 96), (TopBarHeight - MetaCanvas.TextHeight(ValueStr)) div 2, ValueStr); 637 635 638 636 ValueStr := STopScore + ': ' + IntToStr(TopScore); 639 MetaCanvas.Font.Color := Core. ThemeManager1.Theme.ColorControlText;637 MetaCanvas.Font.Color := Core.Core.ThemeManager1.Theme.ColorControlText; 640 638 MetaCanvas.Font.Height := Trunc(TopBarHeight * 0.7); 641 639 MetaCanvas.TextOut(ScaleY(136, 96), (TopBarHeight - MetaCanvas.TextHeight(ValueStr)) div 2, ValueStr); … … 1232 1230 function TGame.GetTileColor(Value: Integer): TColor; 1233 1231 begin 1234 if Core. ThemeManager1.Theme.Name = 'Dark' then begin1232 if Core.Core.ThemeManager1.Theme.Name = 'Dark' then begin 1235 1233 case Value of 1236 1234 0: Result := $222629;
Note:
See TracChangeset
for help on using the changeset viewer.