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 diff
     1.1 --- a/FrmNewArmy.cs	Sat Jul 31 15:03:05 2010 +0000
     1.2 +++ b/FrmNewArmy.cs	Sun Sep 05 20:53:10 2010 +0000
     1.3 @@ -32,6 +32,7 @@
     1.4  		private ComboBox gameSystems;
     1.5  		private System.Windows.Forms.TextBox txtArmyName;
     1.6  
     1.7 +        private string defaultArmyTypeName;
     1.8  		private GameSystem system;
     1.9  		private Race race;
    1.10  		private string armyName;
    1.11 @@ -328,6 +329,12 @@
    1.12  			bool raceSelected = lstRaces.SelectedItem != null;
    1.13  			txtArmyName.Enabled = raceSelected;
    1.14  			armySize.Enabled = raceSelected;
    1.15 +            race = (Race)lstRaces.SelectedItem;
    1.16 +            defaultArmyTypeName = (string)WarFoundryLoader.GetDefault().GetRace(GetSelectedGameSystem(), race.ID).ArmyDefaultName;
    1.17 +            System.Diagnostics.Debug.WriteLine(race +"FrmNewArmy");
    1.18 +            //defaultArmyName = (string) SelectedRace.Name;
    1.19 +            //defaultArmyName = (string) race.Name;
    1.20 +            txtArmyName.Text = defaultArmyTypeName;
    1.21  		}
    1.22  
    1.23  		private void gameSystems_SelectedValueChanged(object sender, EventArgs e)
     2.1 --- a/IBBoard.WarFoundry.GUI.WinForms.csproj	Sat Jul 31 15:03:05 2010 +0000
     2.2 +++ b/IBBoard.WarFoundry.GUI.WinForms.csproj	Sun Sep 05 20:53:10 2010 +0000
     2.3 @@ -1,7 +1,7 @@
     2.4 -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     2.5 +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
     2.6    <PropertyGroup>
     2.7      <ProjectType>Local</ProjectType>
     2.8 -    <ProductVersion>8.0.50727</ProductVersion>
     2.9 +    <ProductVersion>9.0.30729</ProductVersion>
    2.10      <SchemaVersion>2.0</SchemaVersion>
    2.11      <ProjectGuid>{72C59D77-E2A4-401C-91F2-12728056D9A9}</ProjectGuid>
    2.12      <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    2.13 @@ -24,6 +24,23 @@
    2.14      </FileUpgradeFlags>
    2.15      <UpgradeBackupLocation>
    2.16      </UpgradeBackupLocation>
    2.17 +    <OldToolsVersion>2.0</OldToolsVersion>
    2.18 +    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    2.19 +    <PublishUrl>publish\</PublishUrl>
    2.20 +    <Install>true</Install>
    2.21 +    <InstallFrom>Disk</InstallFrom>
    2.22 +    <UpdateEnabled>false</UpdateEnabled>
    2.23 +    <UpdateMode>Foreground</UpdateMode>
    2.24 +    <UpdateInterval>7</UpdateInterval>
    2.25 +    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    2.26 +    <UpdatePeriodically>false</UpdatePeriodically>
    2.27 +    <UpdateRequired>false</UpdateRequired>
    2.28 +    <MapFileExtensions>true</MapFileExtensions>
    2.29 +    <ApplicationRevision>0</ApplicationRevision>
    2.30 +    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    2.31 +    <IsWebBootstrapper>false</IsWebBootstrapper>
    2.32 +    <UseApplicationTrust>false</UseApplicationTrust>
    2.33 +    <BootstrapperEnabled>true</BootstrapperEnabled>
    2.34    </PropertyGroup>
    2.35    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    2.36      <OutputPath>bin\Debug\</OutputPath>
    2.37 @@ -74,6 +91,18 @@
    2.38      <UseVSHostingProcess>true</UseVSHostingProcess>
    2.39    </PropertyGroup>
    2.40    <ItemGroup>
    2.41 +    <Reference Include="IBBoard, Version=1.0.3802.27003, Culture=neutral, processorArchitecture=MSIL">
    2.42 +      <SpecificVersion>False</SpecificVersion>
    2.43 +      <HintPath>..\IBBoard\bin\Release\IBBoard.dll</HintPath>
    2.44 +    </Reference>
    2.45 +    <Reference Include="IBBoard.WarFoundry.API, Version=0.0.1.41688, Culture=neutral, processorArchitecture=MSIL">
    2.46 +      <SpecificVersion>False</SpecificVersion>
    2.47 +      <HintPath>bin\Debug\IBBoard.WarFoundry.API.dll</HintPath>
    2.48 +    </Reference>
    2.49 +    <Reference Include="IBBoardWF, Version=1.0.0.27120, Culture=neutral, processorArchitecture=MSIL">
    2.50 +      <SpecificVersion>False</SpecificVersion>
    2.51 +      <HintPath>..\IBBoard.Windows.Forms\obj\Release\IBBoardWF.dll</HintPath>
    2.52 +    </Reference>
    2.53      <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821" />
    2.54      <Reference Include="System">
    2.55        <Name>System</Name>
    2.56 @@ -90,16 +119,6 @@
    2.57      <Reference Include="System.Xml">
    2.58        <Name>System.XML</Name>
    2.59      </Reference>
    2.60 -    <ProjectReference Include="..\IBBoard.Windows.Forms\IBBoard.Windows.Forms.csproj">
    2.61 -      <Name>IBBoard.Windows.Forms</Name>
    2.62 -      <Project>{E3790268-2082-4975-B1A3-C70B37842CE8}</Project>
    2.63 -      <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
    2.64 -    </ProjectReference>
    2.65 -    <ProjectReference Include="..\IBBoard\IBBoard.csproj">
    2.66 -      <Name>IBBoard</Name>
    2.67 -      <Project>{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}</Project>
    2.68 -      <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
    2.69 -    </ProjectReference>
    2.70    </ItemGroup>
    2.71    <ItemGroup>
    2.72      <Content Include="App.ico" />
    2.73 @@ -247,10 +266,36 @@
    2.74      </None>
    2.75    </ItemGroup>
    2.76    <ItemGroup>
    2.77 -    <ProjectReference Include="..\IBBoard.WarFoundry.API\IBBoard.WarFoundry.API.csproj">
    2.78 -      <Project>{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}</Project>
    2.79 -      <Name>IBBoard.WarFoundry.API</Name>
    2.80 -    </ProjectReference>
    2.81 +    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    2.82 +      <Visible>False</Visible>
    2.83 +      <ProductName>.NET Framework Client Profile</ProductName>
    2.84 +      <Install>false</Install>
    2.85 +    </BootstrapperPackage>
    2.86 +    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
    2.87 +      <Visible>False</Visible>
    2.88 +      <ProductName>.NET Framework 2.0 %28x86%29</ProductName>
    2.89 +      <Install>false</Install>
    2.90 +    </BootstrapperPackage>
    2.91 +    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
    2.92 +      <Visible>False</Visible>
    2.93 +      <ProductName>.NET Framework 3.0 %28x86%29</ProductName>
    2.94 +      <Install>false</Install>
    2.95 +    </BootstrapperPackage>
    2.96 +    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
    2.97 +      <Visible>False</Visible>
    2.98 +      <ProductName>.NET Framework 3.5</ProductName>
    2.99 +      <Install>false</Install>
   2.100 +    </BootstrapperPackage>
   2.101 +    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
   2.102 +      <Visible>False</Visible>
   2.103 +      <ProductName>.NET Framework 3.5 SP1</ProductName>
   2.104 +      <Install>true</Install>
   2.105 +    </BootstrapperPackage>
   2.106 +    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
   2.107 +      <Visible>False</Visible>
   2.108 +      <ProductName>Windows Installer 3.1</ProductName>
   2.109 +      <Install>true</Install>
   2.110 +    </BootstrapperPackage>
   2.111    </ItemGroup>
   2.112    <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
   2.113    <PropertyGroup>
     3.1 --- a/Properties/Resources.Designer.cs	Sat Jul 31 15:03:05 2010 +0000
     3.2 +++ b/Properties/Resources.Designer.cs	Sun Sep 05 20:53:10 2010 +0000
     3.3 @@ -1,7 +1,7 @@
     3.4  //------------------------------------------------------------------------------
     3.5  // <auto-generated>
     3.6  //     This code was generated by a tool.
     3.7 -//     Runtime Version:2.0.50727.3053
     3.8 +//     Runtime Version:2.0.50727.4200
     3.9  //
    3.10  //     Changes to this file may cause incorrect behavior and will be lost if
    3.11  //     the code is regenerated.
     4.1 --- a/translations/it.translation	Sat Jul 31 15:03:05 2010 +0000
     4.2 +++ b/translations/it.translation	Sun Sep 05 20:53:10 2010 +0000
     4.3 @@ -14,12 +14,15 @@
     4.4  	<translation id="miExit">E&amp;sci</translation>
     4.5  	<translation id="miUndo">&amp;Annulla</translation>
     4.6  	<translation id="miRedo">&amp;Ripristina</translation>
     4.7 +	<translation id="miPreferences">&amp;Preferenze</translation>
     4.8  	<translation id="miAbout">&amp;About</translation>
     4.9  	<translation id="bttnOkay">OK</translation>
    4.10  	<translation id="bttnCancel">Cancella</translation>
    4.11  	<translation id="bttnNewArmy">Crea lista</translation>
    4.12  	<translation id="bttnOpenArmy">Apri lista</translation>
    4.13  	<translation id="bttnSaveArmy">Salve lista</translation>
    4.14 +	<translation id="bttnUndo">Annulla</translation>
    4.15 +	<translation id="bttnRedo">Ripristina</translation>
    4.16  	<translation id="ArmyTree">Albero</translation>
    4.17  	<translation id="miDeleteUnit">&amp;Cancella unità</translation>
    4.18  	<translation id="miEditUnit">&amp;Modifica unità</translation>
    4.19 @@ -35,10 +38,13 @@
    4.20  	<translation id="lblArmyName">Nome lista:</translation>
    4.21  	<translation id="lblArmySize">Punteggio:</translation>
    4.22  	<translation id="bttnSelectRace">Crea lista</translation>
    4.23 +	<translation id="newArmyNoGameSystems">WarFoundry non riesce a trovare nessun dato sul sistema di gioco.
    4.24 +Per favore controlla i log per gli errori e verifica di avere i file di sistema di gioco nella cartella "data".</translation> 
    4.25  	<translation id="FrmNewUnit">Aggiungi una scelta {0}</translation>
    4.26  	<translation id="lblUnitList">Tipo unità:</translation>
    4.27  	<translation id="bttnSelectUnit">Crea unità</translation>
    4.28  	<translation id="FrmNewUnitEquipment">Nuovo equipaggiamento per {0}</translation>
    4.29 +	<translation id="FrmReplaceUnitEquipment">Sostituisci {0} con il nuovo equipaggiamento</translation>
    4.30  	<translation id="lblAmount">Quantità:</translation>
    4.31  	<translation id="lblItem">Oggetto:</translation>
    4.32  	<translation id="rbEquipAll">Per tutti</translation>
    4.33 @@ -51,12 +57,17 @@
    4.34  	<translation id="equipNumberTooSmall">La quantità corrente ({0}) é minore del minimo consentito ({1}) per l'oggetto. Sarà usato il valore minimo.</translation>
    4.35  	<translation id="equipNumberTooSmallTitle">Quantità equipaggiamento troppo ridotta</translation>
    4.36  	<translation id="FrmEditUnitEquipment">Modifica {0} per {1}</translation>
    4.37 +	<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>
    4.38 +	<translation id="removeRequiredEquipmentTitle">Impossibile rimuovere equipaggiamento obbligatorio</translation>
    4.39 +	<translation id="removeEquipmentText">Questo rimuoverà l'equipaggiamento dall'unità. Continuare?</translation>
    4.40 +	<translation id="removeEquipmentTitle">Conferma rimozione equipaggiamento</translation>
    4.41  	<translation id="FrmAbout">About WarFoundry</translation>
    4.42  	<translation id="lblVersion">Versione: {0}</translation>
    4.43  	<translation id="lblDevelopers">Sviluppatori:</translation>
    4.44  	<translation id="lblThanks">Grazie a:</translation>
    4.45 -	<translation id="FrmUnit">{0}</translation>
    4.46 +	<translation id="FrmUnit">{0} ({1})</translation>
    4.47  	<translation id="lblUnitSize">Dimensione:</translation>
    4.48 +	<translation id="StatLineName">Nome Tipo</translation>
    4.49  	<translation id="lblEquip">Equipaggiamento:</translation>
    4.50  	<translation id="bttnAddWeapon">Aggiungi</translation>
    4.51  	<translation id="lblAbilities">Abilità:</translation>
    4.52 @@ -107,4 +118,8 @@
    4.53  	<translation id="requirementUnitTypeAtLeastSingle">{1} {0}</translation>
    4.54  	<translation id="requirementUnitTypeAtLeastJoiner">{0}, {1}</translation>
    4.55  	<translation id="requirementUnitTypeAtLeast">{0} pu&#242; essere preso solo se i seguenti sono stati presi: {1}</translation>
    4.56 +	<translation id="FrmPreferences">Preferenze</translation>
    4.57 +	<translation id="languagePrefSection">Lingua</translation>
    4.58 +	<translation id="lblLanguage">Lingua:</translation>
    4.59 +	<translation id="languagesGroup">Lingua</translation>
    4.60  </translations>
    4.61 \ No newline at end of file
     5.1 --- a/translations/sv.translation	Sat Jul 31 15:03:05 2010 +0000
     5.2 +++ b/translations/sv.translation	Sun Sep 05 20:53:10 2010 +0000
     5.3 @@ -38,6 +38,8 @@
     5.4  	<translation id="lblArmyName">Arménamn:</translation>
     5.5  	<translation id="lblArmySize">Arméstorlek:</translation>
     5.6  	<translation id="bttnSelectRace">Skapa armé</translation>
     5.7 +	<translation id="newArmyNoGameSystems">WarFoundry kunde inte hitta data för spel system.
     5.8 +Vänligen kontrollera felmeddelanden i loggen och se till att du har datafielr för spelsystme i "data" mappen.</translation>
     5.9  	<translation id="FrmNewUnit">Lägg till en ny {0}</translation>
    5.10  	<translation id="lblUnitList">Enheter:</translation>
    5.11  	<translation id="bttnSelectUnit">Skapa enhet</translation>