Changeset 167
- Timestamp:
- Jun 15, 2019, 12:03:12 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Language.txt
r20 r167 942 942 Hurry\Production 943 943 Maximize\Production 944 945 #SETTINGS 946 Full screen -
trunk/Locale.lfm
r124 r167 1 1 object LocaleDlg: TLocaleDlg 2 Left = 7 543 Height = 4 562 Left = 766 3 Height = 448 4 4 Top = 240 5 5 Width = 483 6 6 BorderStyle = bsNone 7 7 Caption = 'LocaleDlg' 8 ClientHeight = 4 568 ClientHeight = 448 9 9 ClientWidth = 483 10 10 DesignTimePPI = 144 … … 14 14 OnPaint = FormPaint 15 15 OnShow = FormShow 16 LCLVersion = ' 1.8.2.0'16 LCLVersion = '2.0.2.0' 17 17 object List: TListBox 18 18 Tag = 15360 19 19 Left = 24 20 Height = 3 6020 Height = 336 21 21 Top = 16 22 22 Width = 424 … … 35 35 TabOrder = 0 36 36 TabStop = False 37 TopIndex = -1 37 38 end 38 39 object OKBtn: TButtonA … … 54 55 OnClick = CancelBtnClick 55 56 end 57 object ButtonFullscreen: TButtonC 58 Left = 24 59 Height = 18 60 Top = 368 61 Width = 18 62 Down = False 63 Permanent = False 64 OnClick = ButtonFullscreenClick 65 ButtonIndex = 0 66 end 56 67 end -
trunk/Locale.pas
r123 r167 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ScreenTools, Messg, ButtonA, Registry, fgl, Directories, DrawDlg ;9 ScreenTools, Messg, ButtonA, Registry, fgl, Directories, DrawDlg, ButtonC; 10 10 11 11 type … … 27 27 28 28 TLocaleDlg = class(TDrawDlg) 29 ButtonFullscreen: TButtonC; 29 30 List: TListBox; 30 31 OKBtn: TButtonA; 31 32 CancelBtn: TButtonA; 33 procedure ButtonFullscreenClick(Sender: TObject); 32 34 procedure CancelBtnClick(Sender: TObject); 33 35 procedure FormCreate(Sender: TObject); … … 101 103 OkBtn.Graphic := GrExt[HGrSystem].Data; 102 104 CancelBtn.Graphic := GrExt[HGrSystem].Data; 105 106 ButtonFullscreen.Graphic := GrExt[HGrSystem].Data; 107 if FullScreen then ButtonFullscreen.ButtonIndex := 3 108 else ButtonFullscreen.ButtonIndex := 2; 103 109 end; 104 110 … … 106 112 begin 107 113 ModalResult := mrOk; 114 end; 115 116 procedure TLocaleDlg.ButtonFullscreenClick(Sender: TObject); 117 begin 118 FullScreen := not FullScreen; 119 ButtonFullscreen.ButtonIndex := ButtonFullscreen.ButtonIndex xor 1; 108 120 end; 109 121 … … 114 126 115 127 procedure TLocaleDlg.FormPaint(Sender: TObject); 128 var 129 S: string; 130 W: Integer; 116 131 begin 117 132 PaintBackground(self, 3, 3, ClientWidth - 6, ClientHeight - 6); … … 124 139 BtnFrame(Canvas, OKBtn.BoundsRect, MainTexture); 125 140 BtnFrame(Canvas, CancelBtn.BoundsRect, MainTexture); 141 142 RFrame(Canvas, ButtonFullscreen.Left - 1, ButtonFullscreen.Top - 1, 143 ButtonFullscreen.Left + 12, ButtonFullscreen.Top + 12, MainTexture.clBevelShade, 144 MainTexture.clBevelLight); 145 146 s := Phrases.Lookup('SETTINGS', 0); 147 LoweredTextOut(Canvas, -2, MainTexture, ButtonFullscreen.Left + 32, 148 ButtonFullscreen.Top - 4, s); 126 149 end; 127 150 -
trunk/Localization/cs/Language.txt
r64 r167 942 942 Uspíšit\produkci 943 943 Maximální\produkce 944 945 #SETTINGS 946 Celá obrazovka -
trunk/Localization/de/Language.txt
r64 r167 960 960 beschleunigte\Produktion 961 961 maximale\Produktion 962 963 #SETTINGS 964 Full screen -
trunk/Localization/it/Language.txt
r77 r167 932 932 Favorisci\produzione 933 933 Massimizza\produzione 934 935 #SETTINGS 936 Full screen -
trunk/Localization/ru/Language.txt
r77 r167 968 968 Максимум\Производства 969 969 970 #SETTINGS 971 Full screen -
trunk/Localization/zh-Hans/language.txt
r123 r167 960 960 Éú²ú×î´ó»¯ 961 961 962 #SETTINGS 963 Full screen -
trunk/Localization/zh-Hant/language.txt
r123 r167 960 960 ¥Í²£³Ì¤j¤Æ 961 961 962 #SETTINGS 963 Full screen -
trunk/Packages/CevoComponents/ScreenTools.pas
r163 r167 207 207 MainTexture: TTexture; 208 208 Templates, Colors, Paper, BigImp, LogoBuffer: TBitmap; 209 FullScreen, GenerateNames, InitOrnamentDone, Phrases2FallenBackToEnglish: boolean;209 FullScreen, GenerateNames, InitOrnamentDone, Phrases2FallenBackToEnglish: Boolean; 210 210 211 211 UniFont: array [TFontType] of TFont; … … 1643 1643 WriteString('Locale', LocaleCode); 1644 1644 WriteInteger('Gamma', Gamma); 1645 if FullScreen then WriteInteger('ScreenMode', 1) 1646 else WriteInteger('ScreenMode', 0); 1645 1647 finally 1646 1648 Free;
Note:
See TracChangeset
for help on using the changeset viewer.