Changeset 52
- Timestamp:
- Dec 20, 2021, 7:47:26 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 14 added
- 12 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNewGame.lfm
r47 r52 1 1 object FormNewGame: TFormNewGame 2 Left = 5793 Height = 5424 Top = 2265 Width = 8462 Left = 479 3 Height = 650 4 Top = 392 5 Width = 1015 6 6 Caption = 'New game' 7 ClientHeight = 5428 ClientWidth = 8469 DesignTimePPI = 1 207 ClientHeight = 650 8 ClientWidth = 1015 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 12 OnShow = FormShow 13 LCLVersion = '2.0. 2.0'13 LCLVersion = '2.0.12.0' 14 14 object ButtonStart: TButton 15 Left = 74016 Height = 3 117 Top = 50018 Width = 9415 Left = 888 16 Height = 37 17 Top = 600 18 Width = 113 19 19 Anchors = [akRight, akBottom] 20 20 Caption = 'Start' … … 24 24 end 25 25 object ButtonCancel: TButton 26 Left = 63027 Height = 3 128 Top = 50029 Width = 9426 Left = 756 27 Height = 37 28 Top = 600 29 Width = 113 30 30 Anchors = [akRight, akBottom] 31 31 Caption = 'Cancel' … … 35 35 end 36 36 object Label1: TLabel 37 Left = 1 038 Height = 2 039 Top = 840 Width = 4937 Left = 12 38 Height = 25 39 Top = 10 40 Width = 59 41 41 Caption = 'Players:' 42 42 ParentColor = False … … 44 44 end 45 45 object ListView1: TListView 46 Left = 1 047 Height = 46048 Top = 3 049 Width = 36846 Left = 12 47 Height = 552 48 Top = 36 49 Width = 442 50 50 Anchors = [akTop, akLeft, akBottom] 51 51 Checkboxes = True … … 53 53 item 54 54 Caption = 'Name' 55 Width = 18855 Width = 226 56 56 end 57 57 item 58 58 Caption = 'Color' 59 Width = 6259 Width = 74 60 60 end 61 61 item 62 62 Caption = 'Controls' 63 Width = 18963 Width = 227 64 64 end> 65 65 OwnerData = True … … 75 75 end 76 76 object ColorButton1: TColorButton 77 Left = 63478 Height = 3 179 Top = 1 1280 Width = 9477 Left = 761 78 Height = 37 79 Top = 134 80 Width = 113 81 81 BorderWidth = 2 82 82 ButtonColorSize = 16 … … 86 86 end 87 87 object Label2: TLabel 88 Left = 50089 Height = 2 090 Top = 1 1691 Width = 5188 Left = 600 89 Height = 25 90 Top = 139 91 Width = 62 92 92 Caption = 'Color 1:' 93 93 ParentColor = False … … 95 95 end 96 96 object GroupBox1: TGroupBox 97 Left = 49098 Height = 2 4399 Top = 2 08100 Width = 34097 Left = 588 98 Height = 292 99 Top = 250 100 Width = 408 101 101 Caption = 'Control keys' 102 ClientHeight = 2 18103 ClientWidth = 336102 ClientHeight = 262 103 ClientWidth = 404 104 104 ParentFont = False 105 105 TabOrder = 3 106 106 object EditUp: TEdit 107 Left = 1 08108 Height = 28107 Left = 130 108 Height = 33 109 109 Top = 2 110 Width = 1 00110 Width = 120 111 111 OnChange = EditUpChange 112 112 OnKeyDown = EditUpKeyDown … … 115 115 end 116 116 object Label3: TLabel 117 Left = 8118 Height = 2 0119 Top = 1 2120 Width = 2 2117 Left = 10 118 Height = 25 119 Top = 14 120 Width = 27 121 121 Caption = 'Up:' 122 122 ParentColor = False … … 124 124 end 125 125 object Label4: TLabel 126 Left = 8127 Height = 2 0128 Top = 52129 Width = 42126 Left = 10 127 Height = 25 128 Top = 62 129 Width = 51 130 130 Caption = 'Down:' 131 131 ParentColor = False … … 133 133 end 134 134 object EditDown: TEdit 135 Left = 1 08136 Height = 28137 Top = 4 0138 Width = 1 00135 Left = 130 136 Height = 33 137 Top = 48 138 Width = 120 139 139 OnChange = EditDownChange 140 140 OnKeyDown = EditDownKeyDown … … 143 143 end 144 144 object Label5: TLabel 145 Left = 8146 Height = 2 0147 Top = 92148 Width = 28145 Left = 10 146 Height = 25 147 Top = 110 148 Width = 33 149 149 Caption = 'Left:' 150 150 ParentColor = False … … 152 152 end 153 153 object EditLeft: TEdit 154 Left = 1 08155 Height = 28156 Top = 82157 Width = 1 00154 Left = 130 155 Height = 33 156 Top = 98 157 Width = 120 158 158 OnChange = EditLeftChange 159 159 OnKeyDown = EditLeftKeyDown … … 162 162 end 163 163 object Label6: TLabel 164 Left = 8165 Height = 2 0166 Top = 1 32167 Width = 38164 Left = 10 165 Height = 25 166 Top = 158 167 Width = 46 168 168 Caption = 'Right:' 169 169 ParentColor = False … … 171 171 end 172 172 object EditRight: TEdit 173 Left = 1 08174 Height = 28175 Top = 1 22176 Width = 1 00173 Left = 130 174 Height = 33 175 Top = 146 176 Width = 120 177 177 OnChange = EditRightChange 178 178 OnKeyDown = EditRightKeyDown … … 181 181 end 182 182 object Label7: TLabel 183 Left = 8184 Height = 2 0185 Top = 172186 Width = 42183 Left = 10 184 Height = 25 185 Top = 206 186 Width = 52 187 187 Caption = 'Shoot:' 188 188 ParentColor = False … … 190 190 end 191 191 object EditShoot: TEdit 192 Left = 1 08193 Height = 28194 Top = 1 62195 Width = 1 00192 Left = 130 193 Height = 33 194 Top = 194 195 Width = 120 196 196 OnChange = EditShootChange 197 197 OnKeyDown = EditShootKeyDown … … 201 201 end 202 202 object EditName: TEdit 203 Left = 720 204 Height = 33 205 Top = 36 206 Width = 264 207 OnChange = EditNameChange 208 ParentFont = False 209 TabOrder = 4 210 end 211 object Label8: TLabel 203 212 Left = 600 204 Height = 28 205 Top = 30 206 Width = 220 207 OnChange = EditNameChange 208 ParentFont = False 209 TabOrder = 4 210 end 211 object Label8: TLabel 212 Left = 500 213 Height = 20 214 Top = 40 215 Width = 43 213 Height = 25 214 Top = 48 215 Width = 51 216 216 Caption = 'Name:' 217 217 ParentColor = False … … 219 219 end 220 220 object Label9: TLabel 221 Left = 500222 Height = 2 0223 Top = 1 45224 Width = 51221 Left = 600 222 Height = 25 223 Top = 174 224 Width = 62 225 225 Caption = 'Color 2:' 226 226 ParentColor = False … … 228 228 end 229 229 object ColorButton2: TColorButton 230 Left = 634231 Height = 3 1232 Top = 1 45233 Width = 94230 Left = 761 231 Height = 37 232 Top = 174 233 Width = 113 234 234 BorderWidth = 2 235 235 ButtonColorSize = 16 … … 239 239 end 240 240 object CheckBoxEnabled: TCheckBox 241 Left = 504242 Height = 2 4243 Top = 80244 Width = 78241 Left = 605 242 Height = 29 243 Top = 96 244 Width = 93 245 245 Caption = 'Enabled' 246 246 OnChange = CheckBoxEnabledChange 247 ParentFont = False 247 248 TabOrder = 5 248 249 end -
trunk/Languages/Tunneler.cs.po
r51 r52 10 10 "Content-Transfer-Encoding: 8bit\n" 11 11 "Language: cs\n" 12 "X-Generator: Poedit 2.2\n"12 "X-Generator: Poedit 3.0\n" 13 13 14 #: tdebugform.caption 15 msgctxt "tdebugform.caption" 14 #: tformdebug.caption 15 #, fuzzy 16 msgctxt "tformdebug.caption" 16 17 msgid "Debug" 17 18 msgstr "LadÄnÃ" 19 20 #: tformgameresult.caption 21 #, fuzzy 22 msgctxt "tformgameresult.caption" 23 msgid "Game result" 24 msgstr "VÃœsledek hry" 25 26 #: tformmain.aabout.caption 27 #, fuzzy 28 msgctxt "tformmain.aabout.caption" 29 msgid "About" 30 msgstr "O aplikaci" 31 32 #: tformmain.aexit.caption 33 #, fuzzy 34 msgctxt "tformmain.aexit.caption" 35 msgid "Exit" 36 msgstr "OdejÃt" 37 38 #: tformmain.afullscreen.caption 39 #, fuzzy 40 msgctxt "tformmain.afullscreen.caption" 41 msgid "Fullscreen mode" 42 msgstr "ReÅŸim celé obrazovky" 43 44 #: tformmain.anewgame.caption 45 #, fuzzy 46 msgctxt "tformmain.anewgame.caption" 47 msgid "New game" 48 msgstr "Nová hra" 49 50 #: tformmain.ashowmap.caption 51 #, fuzzy 52 msgctxt "tformmain.ashowmap.caption" 53 msgid "Show map" 54 msgstr "Ukázat mapu" 55 56 #: tformmain.ashowrawimagedesc.caption 57 #, fuzzy 58 msgctxt "tformmain.ashowrawimagedesc.caption" 59 msgid "Show RawImage Description" 60 msgstr "Ukázat popis RawImage" 61 62 #: tformmain.caption 63 #, fuzzy 64 msgctxt "tformmain.caption" 65 msgid "Tunneler" 66 msgstr "Tunneler" 67 68 #: tformmain.menuitem1.caption 69 #, fuzzy 70 msgctxt "tformmain.menuitem1.caption" 71 msgid "Game" 72 msgstr "Hra" 73 74 #: tformmain.menuitem4.caption 75 #, fuzzy 76 msgctxt "tformmain.menuitem4.caption" 77 msgid "View" 78 msgstr "ZobrazenÃ" 79 80 #: tformmain.menuitem7.caption 81 msgctxt "tformmain.menuitem7.caption" 82 msgid "Help" 83 msgstr "" 84 85 #: tformmap.caption 86 #, fuzzy 87 msgctxt "tformmap.caption" 88 msgid "Map" 89 msgstr "Mapa" 18 90 19 91 #: tformnewgame.buttoncancel.caption … … 34 106 #: tformnewgame.checkboxenabled.caption 35 107 msgid "Enabled" 36 msgstr " "108 msgstr "Povoleno" 37 109 38 110 #: tformnewgame.groupbox1.caption … … 101 173 msgstr "OvládánÃ" 102 174 103 #: tgameresultform.caption104 msgid "Game result"105 msgstr "VÃœsledek hry"106 107 #: tmainform.aabout.caption108 msgctxt "tmainform.aabout.caption"109 msgid "About"110 msgstr "O aplikaci"111 112 #: tmainform.aexit.caption113 msgid "Exit"114 msgstr "OdejÃt"115 116 #: tmainform.afullscreen.caption117 msgid "Fullscreen mode"118 msgstr "ReÅŸim celé obrazovky"119 120 #: tmainform.anewgame.caption121 msgctxt "TMAINFORM.ANEWGAME.CAPTION"122 msgid "New game"123 msgstr "Nová hra"124 125 #: tmainform.ashowmap.caption126 msgid "Show map"127 msgstr "Ukázat mapu"128 129 #: tmainform.ashowrawimagedesc.caption130 msgid "Show RawImage Description"131 msgstr "Ukázat popis RawImage"132 133 #: tmainform.caption134 msgctxt "tmainform.caption"135 msgid "Tunneler"136 msgstr "Tunneler"137 138 #: tmainform.menuitem1.caption139 msgid "Game"140 msgstr "Hra"141 142 #: tmainform.menuitem4.caption143 msgid "View"144 msgstr "ZobrazenÃ"145 146 #: tmapform.caption147 msgid "Map"148 msgstr "Mapa"149 150 175 #: uengine.splayer 151 176 msgctxt "uengine.splayer" … … 153 178 msgstr "HráÄ" 154 179 155 #: umainform.sround 180 #: uformmain.sround 181 #, fuzzy 182 msgctxt "uformmain.sround" 156 183 msgid "%0:s of %1:s" 157 184 msgstr "%0:s z %1:s" -
trunk/Languages/Tunneler.po
r51 r52 2 2 msgstr "Content-Type: text/plain; charset=UTF-8" 3 3 4 #: tdebugform.caption 4 #: tformdebug.caption 5 msgctxt "tformdebug.caption" 5 6 msgid "Debug" 7 msgstr "" 8 9 #: tformgameresult.caption 10 msgctxt "tformgameresult.caption" 11 msgid "Game result" 12 msgstr "" 13 14 #: tformmain.aabout.caption 15 msgctxt "tformmain.aabout.caption" 16 msgid "About" 17 msgstr "" 18 19 #: tformmain.aexit.caption 20 msgctxt "tformmain.aexit.caption" 21 msgid "Exit" 22 msgstr "" 23 24 #: tformmain.afullscreen.caption 25 msgctxt "tformmain.afullscreen.caption" 26 msgid "Fullscreen mode" 27 msgstr "" 28 29 #: tformmain.anewgame.caption 30 msgctxt "tformmain.anewgame.caption" 31 msgid "New game" 32 msgstr "" 33 34 #: tformmain.ashowmap.caption 35 msgctxt "tformmain.ashowmap.caption" 36 msgid "Show map" 37 msgstr "" 38 39 #: tformmain.ashowrawimagedesc.caption 40 msgctxt "tformmain.ashowrawimagedesc.caption" 41 msgid "Show RawImage Description" 42 msgstr "" 43 44 #: tformmain.caption 45 msgctxt "tformmain.caption" 46 msgid "Tunneler" 47 msgstr "" 48 49 #: tformmain.menuitem1.caption 50 msgctxt "tformmain.menuitem1.caption" 51 msgid "Game" 52 msgstr "" 53 54 #: tformmain.menuitem4.caption 55 msgctxt "tformmain.menuitem4.caption" 56 msgid "View" 57 msgstr "" 58 59 #: tformmain.menuitem7.caption 60 msgctxt "tformmain.menuitem7.caption" 61 msgid "Help" 62 msgstr "" 63 64 #: tformmap.caption 65 msgctxt "tformmap.caption" 66 msgid "Map" 6 67 msgstr "" 7 68 … … 90 151 msgstr "" 91 152 92 #: tgameresultform.caption93 msgid "Game result"94 msgstr ""95 96 #: tmainform.aabout.caption97 msgctxt "tmainform.aabout.caption"98 msgid "About"99 msgstr ""100 101 #: tmainform.aexit.caption102 msgid "Exit"103 msgstr ""104 105 #: tmainform.afullscreen.caption106 msgid "Fullscreen mode"107 msgstr ""108 109 #: tmainform.anewgame.caption110 msgctxt "tmainform.anewgame.caption"111 msgid "New game"112 msgstr ""113 114 #: tmainform.ashowmap.caption115 msgid "Show map"116 msgstr ""117 118 #: tmainform.ashowrawimagedesc.caption119 msgid "Show RawImage Description"120 msgstr ""121 122 #: tmainform.caption123 msgctxt "tmainform.caption"124 msgid "Tunneler"125 msgstr ""126 127 #: tmainform.menuitem1.caption128 msgid "Game"129 msgstr ""130 131 #: tmainform.menuitem4.caption132 msgid "View"133 msgstr ""134 135 #: tmapform.caption136 msgid "Map"137 msgstr ""138 139 153 #: uengine.splayer 140 154 msgctxt "uengine.splayer" … … 142 156 msgstr "" 143 157 144 #: umainform.sround 158 #: uformmain.sround 159 msgctxt "uformmain.sround" 145 160 msgid "%0:s of %1:s" 146 161 msgstr "" -
trunk/UEngine.pas
r51 r52 823 823 begin 824 824 with Engine.FBitmapLower do begin 825 //Brush.Color := SurfaceMatterColors[smRock];826 //FillRect(ScreenFrame);827 for Y := ScreenFrame.Top to ScreenFrame.Bottom - 1 do828 for X := ScreenFrame.Left to ScreenFrame.Right - 1 do begin829 ItemsXY[X, Y] := 0;830 end;831 832 825 Fill(CreateIndex(ScreenFrame.Left, ScreenFrame.Top), 833 826 CreateIndex(ScreenFrame.Width, ScreenFrame.Height), 834 827 Engine.World.Matters[Integer(miRock)].Color); 835 836 828 837 829 with Engine.World do … … 861 853 for I := ScreenFrame.Left to ScreenFrame.Right - 1 do 862 854 ItemsXY[I, 0] := $010101 * I; 863 864 for Y := ScreenFrame.Top to ScreenFrame.Bottom - 1 do865 for X := ScreenFrame.Left to ScreenFrame.Right - 1 do begin866 ItemsXY[X, Y] := 0;867 end;868 855 end; 869 856 end; … … 1210 1197 BgColor: Cardinal; 1211 1198 begin 1212 if Assigned(FBitmap) then 1199 if Assigned(FBitmap) then begin 1200 Lock.Acquire; 1201 Bitmap.BeginUpdate; 1213 1202 try 1214 Lock.Acquire;1215 Bitmap.BeginUpdate;1216 1203 {$IFDEF WINDOWS} 1217 1204 Bitmap.PixelFormat := pf32bit; … … 1221 1208 BytePerRow := RawImage.Description.BytesPerLine; 1222 1209 if ClearBackground then begin 1223 BgColor := TMatter(World.Matters[Integer(miBorder)]).Color;1210 BgColor := World.Matters[Integer(miBorder)].Color; 1224 1211 BgColor := SwapBRComponent(BgColor); 1225 1212 FillDWord(RawImage.Data^, Bitmap.Height * BytePerRow div 4, BgColor); … … 1281 1268 end; 1282 1269 finally 1283 FBitmap.EndUpdate;1270 Bitmap.EndUpdate; 1284 1271 Lock.Release; 1272 end; 1285 1273 end; 1286 1274 end; … … 1594 1582 I: Integer; 1595 1583 DrawStart: TDateTime; 1584 OldCount: TBitmapTColorIndex; 1596 1585 begin 1597 1586 if FRedrawPending then begin … … 1600 1589 Lock.Acquire; 1601 1590 try 1602 //if ClearBackground then FBitmapLower.FillAll(clNavy); 1591 // TODO: Without this (re)initialization we get range error 1592 OldCount := FBitmapLower.Count; 1593 FBitmapLower.Count := FBitmapLower.CreateIndex(0, 0); 1594 FBitmapLower.Count := OldCount; 1595 1596 if ClearBackground then FBitmapLower.FillAll(clNavy); 1603 1597 for I := 0 to Players.Count - 1 do 1604 1598 if Players[I].Enabled then begin -
trunk/tunneler.lpi
r51 r52 123 123 </Unit4> 124 124 <Unit5> 125 <Filename Value="Forms/U MainForm.pas"/>126 <IsPartOfProject Value="True"/> 127 <ComponentName Value=" MainForm"/>125 <Filename Value="Forms/UFormMain.pas"/> 126 <IsPartOfProject Value="True"/> 127 <ComponentName Value="FormMain"/> 128 128 <HasResources Value="True"/> 129 129 <ResourceBaseClass Value="Form"/> 130 130 </Unit5> 131 131 <Unit6> 132 <Filename Value="Forms/U MapForm.pas"/>133 <IsPartOfProject Value="True"/> 134 <ComponentName Value=" MapForm"/>132 <Filename Value="Forms/UFormMap.pas"/> 133 <IsPartOfProject Value="True"/> 134 <ComponentName Value="FormMap"/> 135 135 <HasResources Value="True"/> 136 136 <ResourceBaseClass Value="Form"/> 137 137 </Unit6> 138 138 <Unit7> 139 <Filename Value="Forms/U DebugForm.pas"/>140 <IsPartOfProject Value="True"/> 141 <ComponentName Value=" DebugForm"/>139 <Filename Value="Forms/UFormDebug.pas"/> 140 <IsPartOfProject Value="True"/> 141 <ComponentName Value="FormDebug"/> 142 142 <HasResources Value="True"/> 143 143 <ResourceBaseClass Value="Form"/> 144 144 </Unit7> 145 145 <Unit8> 146 <Filename Value="Forms/U GameResultForm.pas"/>147 <IsPartOfProject Value="True"/> 148 <ComponentName Value=" GameResultForm"/>146 <Filename Value="Forms/UFormGameResult.pas"/> 147 <IsPartOfProject Value="True"/> 148 <ComponentName Value="FormGameResult"/> 149 149 <HasResources Value="True"/> 150 150 <ResourceBaseClass Value="Form"/> -
trunk/tunneler.lpr
r51 r52 10 10 Forms, TemplateGenerics, UPlatform, FileUtil, SysUtils, 11 11 Common, 12 UFormNewGame, U MainForm, UMapForm, UGameResultForm, UCore12 UFormNewGame, UFormMain, UFormMap, UFormGameResult, UCore 13 13 { you can add units after this }; 14 14 … … 30 30 Application.Initialize; 31 31 Application.CreateForm(TCore, Core); 32 Application.CreateForm(TMainForm, MainForm); 33 Application.CreateForm(TMapForm, MapForm); 34 Application.CreateForm(TFormNewGame, FormNewGame); 35 Application.CreateForm(TGameResultForm, GameResultForm); 32 Application.CreateForm(TFormMain, FormMain); 33 Application.CreateForm(TFormMap, FormMap); 36 34 {$IFDEF DEBUG} 37 35 {$ENDIF}
Note:
See TracChangeset
for help on using the changeset viewer.