Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
changeset 201:946d37003f97 default-army-name
Re #153: Default name for armies
Been messing a round with the code a bit
author | snowblizz |
---|---|
date | Sun, 05 Sep 2010 20:53:10 +0000 |
parents | b1f9b84111ed |
children | 6faadbbb7900 |
files | FrmNewArmy.cs IBBoard.WarFoundry.GUI.WinForms.csproj Properties/Resources.Designer.cs translations/it.translation translations/sv.translation |
diffstat | 5 files changed, 87 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmNewArmy.cs Sat Jul 31 15:03:05 2010 +0000 +++ b/FrmNewArmy.cs Sun Sep 05 20:53:10 2010 +0000 @@ -32,6 +32,7 @@ private ComboBox gameSystems; private System.Windows.Forms.TextBox txtArmyName; + private string defaultArmyTypeName; private GameSystem system; private Race race; private string armyName; @@ -328,6 +329,12 @@ bool raceSelected = lstRaces.SelectedItem != null; txtArmyName.Enabled = raceSelected; armySize.Enabled = raceSelected; + race = (Race)lstRaces.SelectedItem; + defaultArmyTypeName = (string)WarFoundryLoader.GetDefault().GetRace(GetSelectedGameSystem(), race.ID).ArmyDefaultName; + System.Diagnostics.Debug.WriteLine(race +"FrmNewArmy"); + //defaultArmyName = (string) SelectedRace.Name; + //defaultArmyName = (string) race.Name; + txtArmyName.Text = defaultArmyTypeName; } private void gameSystems_SelectedValueChanged(object sender, EventArgs e)
--- a/IBBoard.WarFoundry.GUI.WinForms.csproj Sat Jul 31 15:03:05 2010 +0000 +++ b/IBBoard.WarFoundry.GUI.WinForms.csproj Sun Sep 05 20:53:10 2010 +0000 @@ -1,7 +1,7 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <ProjectType>Local</ProjectType> - <ProductVersion>8.0.50727</ProductVersion> + <ProductVersion>9.0.30729</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{72C59D77-E2A4-401C-91F2-12728056D9A9}</ProjectGuid> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> @@ -24,6 +24,23 @@ </FileUpgradeFlags> <UpgradeBackupLocation> </UpgradeBackupLocation> + <OldToolsVersion>2.0</OldToolsVersion> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <PublishUrl>publish\</PublishUrl> + <Install>true</Install> + <InstallFrom>Disk</InstallFrom> + <UpdateEnabled>false</UpdateEnabled> + <UpdateMode>Foreground</UpdateMode> + <UpdateInterval>7</UpdateInterval> + <UpdateIntervalUnits>Days</UpdateIntervalUnits> + <UpdatePeriodically>false</UpdatePeriodically> + <UpdateRequired>false</UpdateRequired> + <MapFileExtensions>true</MapFileExtensions> + <ApplicationRevision>0</ApplicationRevision> + <ApplicationVersion>1.0.0.%2a</ApplicationVersion> + <IsWebBootstrapper>false</IsWebBootstrapper> + <UseApplicationTrust>false</UseApplicationTrust> + <BootstrapperEnabled>true</BootstrapperEnabled> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <OutputPath>bin\Debug\</OutputPath> @@ -74,6 +91,18 @@ <UseVSHostingProcess>true</UseVSHostingProcess> </PropertyGroup> <ItemGroup> + <Reference Include="IBBoard, Version=1.0.3802.27003, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\IBBoard\bin\Release\IBBoard.dll</HintPath> + </Reference> + <Reference Include="IBBoard.WarFoundry.API, Version=0.0.1.41688, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>bin\Debug\IBBoard.WarFoundry.API.dll</HintPath> + </Reference> + <Reference Include="IBBoardWF, Version=1.0.0.27120, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\IBBoard.Windows.Forms\obj\Release\IBBoardWF.dll</HintPath> + </Reference> <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821" /> <Reference Include="System"> <Name>System</Name> @@ -90,16 +119,6 @@ <Reference Include="System.Xml"> <Name>System.XML</Name> </Reference> - <ProjectReference Include="..\IBBoard.Windows.Forms\IBBoard.Windows.Forms.csproj"> - <Name>IBBoard.Windows.Forms</Name> - <Project>{E3790268-2082-4975-B1A3-C70B37842CE8}</Project> - <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> - </ProjectReference> - <ProjectReference Include="..\IBBoard\IBBoard.csproj"> - <Name>IBBoard</Name> - <Project>{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}</Project> - <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> - </ProjectReference> </ItemGroup> <ItemGroup> <Content Include="App.ico" /> @@ -247,10 +266,36 @@ </None> </ItemGroup> <ItemGroup> - <ProjectReference Include="..\IBBoard.WarFoundry.API\IBBoard.WarFoundry.API.csproj"> - <Project>{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}</Project> - <Name>IBBoard.WarFoundry.API</Name> - </ProjectReference> + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework Client Profile</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 2.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> + <Visible>False</Visible> + <ProductName>Windows Installer 3.1</ProductName> + <Install>true</Install> + </BootstrapperPackage> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <PropertyGroup>
--- a/Properties/Resources.Designer.cs Sat Jul 31 15:03:05 2010 +0000 +++ b/Properties/Resources.Designer.cs Sun Sep 05 20:53:10 2010 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. -// Runtime Version:2.0.50727.3053 +// Runtime Version:2.0.50727.4200 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated.
--- a/translations/it.translation Sat Jul 31 15:03:05 2010 +0000 +++ b/translations/it.translation Sun Sep 05 20:53:10 2010 +0000 @@ -14,12 +14,15 @@ <translation id="miExit">E&sci</translation> <translation id="miUndo">&Annulla</translation> <translation id="miRedo">&Ripristina</translation> + <translation id="miPreferences">&Preferenze</translation> <translation id="miAbout">&About</translation> <translation id="bttnOkay">OK</translation> <translation id="bttnCancel">Cancella</translation> <translation id="bttnNewArmy">Crea lista</translation> <translation id="bttnOpenArmy">Apri lista</translation> <translation id="bttnSaveArmy">Salve lista</translation> + <translation id="bttnUndo">Annulla</translation> + <translation id="bttnRedo">Ripristina</translation> <translation id="ArmyTree">Albero</translation> <translation id="miDeleteUnit">&Cancella unità</translation> <translation id="miEditUnit">&Modifica unità</translation> @@ -35,10 +38,13 @@ <translation id="lblArmyName">Nome lista:</translation> <translation id="lblArmySize">Punteggio:</translation> <translation id="bttnSelectRace">Crea lista</translation> + <translation id="newArmyNoGameSystems">WarFoundry non riesce a trovare nessun dato sul sistema di gioco. +Per favore controlla i log per gli errori e verifica di avere i file di sistema di gioco nella cartella "data".</translation> <translation id="FrmNewUnit">Aggiungi una scelta {0}</translation> <translation id="lblUnitList">Tipo unità:</translation> <translation id="bttnSelectUnit">Crea unità</translation> <translation id="FrmNewUnitEquipment">Nuovo equipaggiamento per {0}</translation> + <translation id="FrmReplaceUnitEquipment">Sostituisci {0} con il nuovo equipaggiamento</translation> <translation id="lblAmount">Quantità:</translation> <translation id="lblItem">Oggetto:</translation> <translation id="rbEquipAll">Per tutti</translation> @@ -51,12 +57,17 @@ <translation id="equipNumberTooSmall">La quantità corrente ({0}) é minore del minimo consentito ({1}) per l'oggetto. Sarà usato il valore minimo.</translation> <translation id="equipNumberTooSmallTitle">Quantità equipaggiamento troppo ridotta</translation> <translation id="FrmEditUnitEquipment">Modifica {0} per {1}</translation> + <translation id="removeRequiredEquipmentText">Questo oggetto è obbligatorio e non può essere rimosso. Deve avere una quantità minima di uno o essere sostituito da una alternativa.</translation> + <translation id="removeRequiredEquipmentTitle">Impossibile rimuovere equipaggiamento obbligatorio</translation> + <translation id="removeEquipmentText">Questo rimuoverà l'equipaggiamento dall'unità. Continuare?</translation> + <translation id="removeEquipmentTitle">Conferma rimozione equipaggiamento</translation> <translation id="FrmAbout">About WarFoundry</translation> <translation id="lblVersion">Versione: {0}</translation> <translation id="lblDevelopers">Sviluppatori:</translation> <translation id="lblThanks">Grazie a:</translation> - <translation id="FrmUnit">{0}</translation> + <translation id="FrmUnit">{0} ({1})</translation> <translation id="lblUnitSize">Dimensione:</translation> + <translation id="StatLineName">Nome Tipo</translation> <translation id="lblEquip">Equipaggiamento:</translation> <translation id="bttnAddWeapon">Aggiungi</translation> <translation id="lblAbilities">Abilità:</translation> @@ -107,4 +118,8 @@ <translation id="requirementUnitTypeAtLeastSingle">{1} {0}</translation> <translation id="requirementUnitTypeAtLeastJoiner">{0}, {1}</translation> <translation id="requirementUnitTypeAtLeast">{0} può essere preso solo se i seguenti sono stati presi: {1}</translation> + <translation id="FrmPreferences">Preferenze</translation> + <translation id="languagePrefSection">Lingua</translation> + <translation id="lblLanguage">Lingua:</translation> + <translation id="languagesGroup">Lingua</translation> </translations> \ No newline at end of file
--- a/translations/sv.translation Sat Jul 31 15:03:05 2010 +0000 +++ b/translations/sv.translation Sun Sep 05 20:53:10 2010 +0000 @@ -38,6 +38,8 @@ <translation id="lblArmyName">Arménamn:</translation> <translation id="lblArmySize">Arméstorlek:</translation> <translation id="bttnSelectRace">Skapa armé</translation> + <translation id="newArmyNoGameSystems">WarFoundry kunde inte hitta data för spel system. +Vänligen kontrollera felmeddelanden i loggen och se till att du har datafielr för spelsystme i "data" mappen.</translation> <translation id="FrmNewUnit">Lägg till en ny {0}</translation> <translation id="lblUnitList">Enheter:</translation> <translation id="bttnSelectUnit">Skapa enhet</translation>