- Timestamp:
- Sep 27, 2022, 12:04:27 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r87 r94 40 40 object Translator1: TTranslator 41 41 POFilesFolder = 'Languages' 42 OnTranslate = Translator1Translate 42 43 Left = 496 43 44 Top = 358 -
trunk/Forms/UFormMain.pas
r93 r94 38 38 procedure PaintBox1Resize(Sender: TObject); 39 39 procedure Timer1Timer(Sender: TObject); 40 procedure Translator1Translate(Sender: TObject); 40 41 private 41 42 Initialized: Boolean; … … 62 63 UFormImages, UPixelPointer; 63 64 65 resourcestring 66 SMondayShort = 'MON'; 67 STuesdayShort = 'TUE'; 68 SWednesdayShort = 'WED'; 69 SThrusdayShort = 'THU'; 70 SFridayShort = 'FRI'; 71 SSaturdayShort = 'SAT'; 72 SSundayShort = 'SUN'; 73 64 74 { TFormMain } 65 75 … … 177 187 if Engine.RedrawPending then 178 188 PaintBox1.Repaint; 189 end; 190 191 procedure TFormMain.Translator1Translate(Sender: TObject); 192 begin 193 FormatSettings.ShortDayNames[1] := SSundayShort; 194 FormatSettings.ShortDayNames[2] := SMondayShort; 195 FormatSettings.ShortDayNames[3] := STuesdayShort; 196 FormatSettings.ShortDayNames[4] := SWednesdayShort; 197 FormatSettings.ShortDayNames[5] := SThrusdayShort; 198 FormatSettings.ShortDayNames[6] := SFridayShort; 199 FormatSettings.ShortDayNames[7] := SSaturdayShort; 179 200 end; 180 201 -
trunk/Languages/BigMetro.cs.po
r93 r94 83 83 msgstr "Tokyo" 84 84 85 #: uformmain.sfridayshort 86 msgid "FRI" 87 msgstr "Pá" 88 89 #: uformmain.smondayshort 90 msgid "MON" 91 msgstr "Po" 92 93 #: uformmain.ssaturdayshort 94 msgid "SAT" 95 msgstr "So" 96 97 #: uformmain.ssundayshort 98 msgid "SUN" 99 msgstr "Ne" 100 101 #: uformmain.sthrusdayshort 102 msgid "THU" 103 msgstr "Čt" 104 105 #: uformmain.stuesdayshort 106 msgid "TUE" 107 msgstr "Út" 108 109 #: uformmain.swednesdayshort 110 msgid "WED" 111 msgstr "St" 112 85 113 #: umenu.sautomatic 86 114 msgid "Automatic" -
trunk/Languages/BigMetro.de.po
r93 r94 83 83 msgstr "" 84 84 85 #: uformmain.sfridayshort 86 msgid "FRI" 87 msgstr "" 88 89 #: uformmain.smondayshort 90 msgid "MON" 91 msgstr "" 92 93 #: uformmain.ssaturdayshort 94 msgid "SAT" 95 msgstr "" 96 97 #: uformmain.ssundayshort 98 msgid "SUN" 99 msgstr "" 100 101 #: uformmain.sthrusdayshort 102 msgid "THU" 103 msgstr "" 104 105 #: uformmain.stuesdayshort 106 msgid "TUE" 107 msgstr "" 108 109 #: uformmain.swednesdayshort 110 msgid "WED" 111 msgstr "" 112 85 113 #: umenu.sautomatic 86 114 msgid "Automatic" -
trunk/Languages/BigMetro.fr.po
r93 r94 83 83 msgstr "" 84 84 85 #: uformmain.sfridayshort 86 msgid "FRI" 87 msgstr "" 88 89 #: uformmain.smondayshort 90 msgid "MON" 91 msgstr "" 92 93 #: uformmain.ssaturdayshort 94 msgid "SAT" 95 msgstr "" 96 97 #: uformmain.ssundayshort 98 msgid "SUN" 99 msgstr "" 100 101 #: uformmain.sthrusdayshort 102 msgid "THU" 103 msgstr "" 104 105 #: uformmain.stuesdayshort 106 msgid "TUE" 107 msgstr "" 108 109 #: uformmain.swednesdayshort 110 msgid "WED" 111 msgstr "" 112 85 113 #: umenu.sautomatic 86 114 msgid "Automatic" -
trunk/Languages/BigMetro.pot
r93 r94 71 71 #: uengine.stokyo 72 72 msgid "Tokyo" 73 msgstr "" 74 75 #: uformmain.sfridayshort 76 msgid "FRI" 77 msgstr "" 78 79 #: uformmain.smondayshort 80 msgid "MON" 81 msgstr "" 82 83 #: uformmain.ssaturdayshort 84 msgid "SAT" 85 msgstr "" 86 87 #: uformmain.ssundayshort 88 msgid "SUN" 89 msgstr "" 90 91 #: uformmain.sthrusdayshort 92 msgid "THU" 93 msgstr "" 94 95 #: uformmain.stuesdayshort 96 msgid "TUE" 97 msgstr "" 98 99 #: uformmain.swednesdayshort 100 msgid "WED" 73 101 msgstr "" 74 102 -
trunk/Packages/Common/UPixelPointer.pas
r86 r94 310 310 end; 311 311 312 313 312 end. 314 313 -
trunk/UEngine.pas
r93 r94 187 187 procedure DrawTrains(Canvas: TCanvas); 188 188 procedure DrawGameOver(Canvas: TCanvas; CanvasSize: TPoint); 189 procedure DrawNewTrain(Canvas: TCanvas; CanvasSize: TPoint); 189 190 procedure DrawStationPassengerOverload(Canvas: TCanvas); 190 191 procedure DrawLines(Canvas: TCanvas); … … 1834 1835 ClockSize = 20; 1835 1836 begin 1837 if (Time / OneHour > 6) and (Time / OneHour < 18) then begin 1838 Canvas.Brush.Style := bsSolid; 1839 Canvas.Brush.Color := Colors.Background; 1840 end else begin 1841 Canvas.Brush.Style := bsSolid; 1842 Canvas.Brush.Color := Colors.Text; 1843 end; 1836 1844 Canvas.Pen.Style := psSolid; 1837 1845 Canvas.Pen.Color := Colors.Text; … … 1840 1848 Angle := Time / (12 * OneHour) * 2 * Pi - Pi / 2; 1841 1849 Canvas.EllipseC(ClockCenter.X, ClockCenter.Y, ClockSize, ClockSize); 1850 Canvas.Brush.Style := bsClear; 1851 1852 if (Time / OneHour > 6) and (Time / OneHour < 18) then begin 1853 Canvas.Pen.Color := Colors.Text; 1854 end else begin 1855 Canvas.Pen.Color := Colors.Background; 1856 end; 1842 1857 Canvas.Line(ClockCenter, Point(ClockCenter.X + Round(Cos(Angle) * ClockSize * 0.8), 1843 1858 ClockCenter.Y + Round(Sin(Angle) * ClockSize * 0.8))); 1844 1859 for I := 0 to 12 do begin 1845 1860 Angle := I / 12 * 2 * Pi; 1846 Canvas.Line(ClockCenter.X + Round(Cos(Angle) * ClockSize * 0. 8),1847 ClockCenter.Y + Round(Sin(Angle) * ClockSize * 0. 8),1861 Canvas.Line(ClockCenter.X + Round(Cos(Angle) * ClockSize * 0.7), 1862 ClockCenter.Y + Round(Sin(Angle) * ClockSize * 0.7), 1848 1863 ClockCenter.X + Round(Cos(Angle) * ClockSize * 0.9), 1849 1864 ClockCenter.Y + Round(Sin(Angle) * ClockSize * 0.9)); 1850 1865 end; 1851 Y := ClockCenter.Y + ScaleY(5, 96); 1852 1866 Y := ClockCenter.Y; 1867 1868 Canvas.Pen.Color := Colors.Text; 1853 1869 Canvas.Font.Color := Colors.Text; 1854 1870 Text := FormatDateTime('ddd', Time + 2); 1855 Canvas.TextOut(ClockCenter.X - ClockSize - Canvas.TextWidth(Text) - 10,1871 Canvas.TextOut(ClockCenter.X - ClockSize - Canvas.TextWidth(Text) - ScaleX(10, 96), 1856 1872 Y - Canvas.TextHeight(Text) div 2, Text); 1857 Y := Y + Canvas.TextHeight(Text) 1873 Y := Y + Canvas.TextHeight(Text) + ScaleY(5, 96); 1858 1874 1859 1875 Text := SDay + ' ' + IntToStr(Trunc(Time)); 1860 Canvas.TextOut(ClockCenter.X - ClockSize - Canvas.TextWidth(Text) - 10,1876 Canvas.TextOut(ClockCenter.X - ClockSize - Canvas.TextWidth(Text) - ScaleX(10, 96), 1861 1877 Y - Canvas.TextHeight(Text) div 2, Text); 1862 Y := Y + Canvas.TextHeight(Text) 1878 Y := Y + Canvas.TextHeight(Text) + ScaleY(5, 96); 1863 1879 1864 1880 ImagePause.Canvas := Canvas; 1865 ImagePause.Bounds := Bounds(CanvasSize.X - ScaleX(20 + 10, 96), Y, ScaleX(20, 96), ScaleY(20, 96)); 1881 ImagePause.Bounds := Bounds(CanvasSize.X - ScaleX(20 + 10, 96), Y, 1882 ScaleX(20, 96), ScaleY(20, 96)); 1866 1883 ImagePause.Paint; 1867 1884 Y := Y + ImagePause.Bounds.Height + ScaleY(5, 96); 1868 1885 1869 1886 ImagePlay.Canvas := Canvas; 1870 ImagePlay.Bounds := Bounds(CanvasSize.X - ScaleX(20 + 10, 96) , Y, ScaleX(20, 96), ScaleY(20, 96)); 1887 ImagePlay.Bounds := Bounds(CanvasSize.X - ScaleX(20 + 10, 96) , Y, 1888 ScaleX(20, 96), ScaleY(20, 96)); 1871 1889 ImagePlay.Paint; 1872 1890 Y := Y + ImagePlay.Bounds.Height + ScaleY(5, 96); 1873 1891 1874 1892 ImageFastForward.Canvas := Canvas; 1875 ImageFastForward.Bounds := Bounds(CanvasSize.X - ScaleX(20 + 10, 96) , Y, ScaleX(20, 96), ScaleY(20, 96)); 1893 ImageFastForward.Bounds := Bounds(CanvasSize.X - ScaleX(20 + 10, 96) , Y, 1894 ScaleX(20, 96), ScaleY(20, 96)); 1876 1895 ImageFastForward.Paint; 1877 1896 Y := Y + ImageFastForward.Bounds.Height + ScaleY(5, 96); … … 1989 2008 HighestServedDaysCount := ServedDaysCount; 1990 2009 end; 2010 end; 2011 2012 procedure TEngine.DrawNewTrain(Canvas: TCanvas; CanvasSize: TPoint); 2013 begin 2014 1991 2015 end; 1992 2016
Note:
See TracChangeset
for help on using the changeset viewer.