Changeset 33
- Timestamp:
- Mar 5, 2014, 12:01:04 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 26 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Languages/xtactics.cs.po
r31 r33 36 36 msgstr "Restartovat" 37 37 38 #: tcore.asettings.caption 39 msgctxt "tcore.asettings.caption" 40 msgid "Settings" 41 msgstr "Nastavení" 42 38 43 #: tformmain.caption 39 44 msgid "xTactics" … … 46 51 #: tformmain.menuitem5.caption 47 52 msgid "-" 48 msgstr "." 49 50 #: tformmain.toolbar1.caption 51 msgid "ToolBar1" 52 msgstr "" 53 msgstr "-" 54 55 #: tformmain.menuitem8.caption 56 #| msgid "Settings" 57 msgctxt "tformmain.menuitem8.caption" 58 msgid "Tools" 59 msgstr "Nástroje" 53 60 54 61 #: tformmove.buttoncancel.caption … … 114 121 #: tformnew.label3.caption 115 122 msgid "%" 116 msgstr " "123 msgstr "%" 117 124 118 125 #: tformnew.listview1.columns[0].caption … … 147 154 148 155 #: tformplayer.combobox1.text 156 msgctxt "tformplayer.combobox1.text" 149 157 msgid "Human" 150 158 msgstr "Člověk" … … 161 169 msgid "Color:" 162 170 msgstr "Barva:" 171 172 #: tformsettings.buttoncancel.caption 173 msgctxt "tformsettings.buttoncancel.caption" 174 msgid "Cancel" 175 msgstr "Zrušit" 176 177 #: tformsettings.buttonok.caption 178 msgctxt "tformsettings.buttonok.caption" 179 msgid "Ok" 180 msgstr "Ok" 181 182 #: tformsettings.caption 183 msgctxt "tformsettings.caption" 184 msgid "Settings" 185 msgstr "Nastavení" 186 187 #: tformsettings.label1.caption 188 msgid "Language:" 189 msgstr "Jazyk:" 163 190 164 191 #: ucore.splayerwins … … 171 198 msgstr "tah" 172 199 200 #: ugame.scomputer 201 msgid "Computer" 202 msgstr "Počítač" 203 204 #: ugame.shuman 205 msgctxt "ugame.shuman" 206 msgid "Human" 207 msgstr "Člověk" 208 173 209 #: ugame.sminimumplayers 174 210 msgid "You need at least two players" 175 211 msgstr "Potřebujete alespoň dva hráče" 176 -
trunk/Languages/xtactics.po
r31 r33 27 27 msgstr "" 28 28 29 #: tcore.asettings.caption 30 msgctxt "tcore.asettings.caption" 31 msgid "Settings" 32 msgstr "" 33 29 34 #: tformmain.caption 30 35 msgid "xTactics" … … 39 44 msgstr "" 40 45 41 #: tformmain.toolbar1.caption 42 msgid "ToolBar1" 46 #: tformmain.menuitem8.caption 47 msgctxt "tformmain.menuitem8.caption" 48 msgid "Tools" 43 49 msgstr "" 44 50 … … 138 144 139 145 #: tformplayer.combobox1.text 146 msgctxt "tformplayer.combobox1.text" 140 147 msgid "Human" 141 148 msgstr "" … … 151 158 #: tformplayer.label3.caption 152 159 msgid "Color:" 160 msgstr "" 161 162 #: tformsettings.buttoncancel.caption 163 msgctxt "TFORMSETTINGS.BUTTONCANCEL.CAPTION" 164 msgid "Cancel" 165 msgstr "" 166 167 #: tformsettings.buttonok.caption 168 msgctxt "TFORMSETTINGS.BUTTONOK.CAPTION" 169 msgid "Ok" 170 msgstr "" 171 172 #: tformsettings.caption 173 msgctxt "tformsettings.caption" 174 msgid "Settings" 175 msgstr "" 176 177 #: tformsettings.label1.caption 178 msgid "Language:" 153 179 msgstr "" 154 180 … … 162 188 msgstr "" 163 189 190 #: ugame.scomputer 191 msgid "Computer" 192 msgstr "" 193 194 #: ugame.shuman 195 msgctxt "ugame.shuman" 196 msgid "Human" 197 msgstr "" 198 164 199 #: ugame.sminimumplayers 165 200 msgid "You need at least two players" -
trunk/UCore.lfm
r30 r33 36 36 ShortCut = 16466 37 37 end 38 object ASettings: TAction 39 Caption = 'Settings' 40 OnExecute = ASettingsExecute 41 end 38 42 end 39 43 object ImageList1: TImageList … … 41 45 top = 152 42 46 end 47 object CoolTranslator1: TCoolTranslator 48 POFilesFolder = 'Languages' 49 OnTranslate = CoolTranslator1Translate 50 left = 214 51 top = 252 52 end 43 53 end -
trunk/UCore.lrt
r22 r33 4 4 TCORE.AGAMEENDTURN.CAPTION=End turn 5 5 TCORE.AGAMERESTART.CAPTION=Restart 6 TCORE.ASETTINGS.CAPTION=Settings -
trunk/UCore.pas
r32 r33 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, ActnList, Controls, Dialogs, Forms, UGame; 8 Classes, SysUtils, FileUtil, ActnList, Controls, Dialogs, Forms, UGame, 9 UCoolTranslator; 9 10 10 11 type … … 13 14 14 15 TCore = class(TDataModule) 16 ASettings: TAction; 15 17 ActionList1: TActionList; 16 18 AExit: TAction; … … 19 21 AGameNew: TAction; 20 22 AGameRestart: TAction; 23 CoolTranslator1: TCoolTranslator; 21 24 ImageList1: TImageList; 22 25 procedure AExitExecute(Sender: TObject); … … 25 28 procedure AGameNewExecute(Sender: TObject); 26 29 procedure AGameRestartExecute(Sender: TObject); 30 procedure ASettingsExecute(Sender: TObject); 31 procedure CoolTranslator1Translate(Sender: TObject); 27 32 procedure DataModuleCreate(Sender: TObject); 28 33 procedure DataModuleDestroy(Sender: TObject); … … 49 54 50 55 uses 51 UFormMove, UFormMain, UFormNew ;56 UFormMove, UFormMain, UFormNew, UFormSettings; 52 57 53 58 resourcestring … … 125 130 end; 126 131 132 procedure TCore.ASettingsExecute(Sender: TObject); 133 begin 134 FormSettings.Load; 135 if FormSettings.ShowModal = mrOk then 136 FormSettings.Save; 137 end; 138 139 procedure TCore.CoolTranslator1Translate(Sender: TObject); 140 begin 141 UGame.InitStrings; 142 end; 143 127 144 procedure TCore.DataModuleCreate(Sender: TObject); 128 145 begin -
trunk/UFormMain.lfm
r30 r33 53 53 ButtonHeight = 32 54 54 ButtonWidth = 32 55 Caption = 'ToolBar1'56 55 Images = Core.ImageList1 57 56 ParentShowHint = False … … 78 77 Top = 2 79 78 Action = Core.AGameRestart 79 end 80 object ToolButton5: TToolButton 81 Left = 221 82 Top = 2 83 Action = Core.ASettings 80 84 end 81 85 end … … 105 109 end 106 110 end 111 object MenuItem8: TMenuItem 112 Caption = 'Tools' 113 object MenuItem9: TMenuItem 114 Action = Core.ASettings 115 end 116 end 107 117 end 108 118 object Timer1: TTimer -
trunk/UFormMain.lrt
r28 r33 1 1 TFORMMAIN.CAPTION=xTactics 2 TFORMMAIN.TOOLBAR1.CAPTION=ToolBar13 2 TFORMMAIN.MENUITEM1.CAPTION=Game 4 3 TFORMMAIN.MENUITEM5.CAPTION=- 4 TFORMMAIN.MENUITEM8.CAPTION=Tools -
trunk/UFormMain.pas
r32 r33 25 25 MenuItem6: TMenuItem; 26 26 MenuItem7: TMenuItem; 27 MenuItem8: TMenuItem; 28 MenuItem9: TMenuItem; 27 29 PaintBox1: TPaintBox; 28 30 StatusBar1: TStatusBar; … … 33 35 ToolButton3: TToolButton; 34 36 ToolButton4: TToolButton; 37 ToolButton5: TToolButton; 35 38 procedure FormActivate(Sender: TObject); 36 39 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); -
trunk/UGame.pas
r32 r33 186 186 end; 187 187 188 var 189 PlayerModeText: array[TPlayerMode] of string; 190 188 191 const 189 PlayerModeText: array[TPlayerMode] of string = ('Human', 'Computer');190 192 clOrange = $009Aff; 191 193 PlayerColors: array[0..7] of TColor = (clBlue, clRed, clGreen, clOrange, 192 194 clPurple, clMaroon, clAqua, clFuchsia); 193 195 196 procedure InitStrings; 197 194 198 195 199 implementation … … 197 201 resourcestring 198 202 SMinimumPlayers = 'You need at least two players'; 203 SHuman = 'Human'; 204 SComputer = 'Computer'; 205 206 procedure InitStrings; 207 begin 208 PlayerModeText[pmHuman] := SHuman; 209 PlayerModeText[pmComputer] := SComputer; 210 end; 199 211 200 212 function FloatPoint(AX, AY: Double): TFloatPoint; -
trunk/xtactics.lpi
r32 r33 72 72 </local> 73 73 </RunParams> 74 <RequiredPackages Count=" 1">74 <RequiredPackages Count="2"> 75 75 <Item1> 76 <PackageName Value="CoolTranslator"/> 77 <DefaultFilename Value="Packages/CoolTranslator/CoolTranslator.lpk" Prefer="True"/> 78 </Item1> 79 <Item2> 76 80 <PackageName Value="LCL"/> 77 </Item 1>81 </Item2> 78 82 </RequiredPackages> 79 <Units Count=" 7">83 <Units Count="8"> 80 84 <Unit0> 81 85 <Filename Value="xtactics.lpr"/> … … 124 128 <IsPartOfProject Value="True"/> 125 129 <ComponentName Value="FormPlayer"/> 130 <HasResources Value="True"/> 126 131 <ResourceBaseClass Value="Form"/> 127 132 <UnitName Value="UFormPlayer"/> 128 133 </Unit6> 134 <Unit7> 135 <Filename Value="Forms/UFormSettings.pas"/> 136 <IsPartOfProject Value="True"/> 137 <ComponentName Value="FormSettings"/> 138 <HasResources Value="True"/> 139 <ResourceBaseClass Value="Form"/> 140 <UnitName Value="UFormSettings"/> 141 </Unit7> 129 142 </Units> 130 143 </ProjectOptions> -
trunk/xtactics.lpr
r32 r33 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UFormMain, UGame, UFormNew, UFormMove, UCore, UFormPlayer 10 Forms, UFormMain, UGame, UFormNew, UFormMove, UCore, CoolTranslator, 11 UFormPlayer 11 12 { you can add units after this }, 12 SysUtils ;13 SysUtils, UFormSettings; 13 14 14 15 {$R *.res} … … 34 35 Application.CreateForm(TFormMove, FormMove); 35 36 Application.CreateForm(TFormPlayer, FormPlayer); 37 Application.CreateForm(TFormSettings, FormSettings); 36 38 Application.Run; 37 39 end.
Note:
See TracChangeset
for help on using the changeset viewer.