Show caught on version in admin pokemon viewer.

This commit is contained in:
Greg Edwards
2022-08-05 04:45:55 -04:00
parent 6637c72aa6
commit ebcd3f9952
3 changed files with 57 additions and 40 deletions

View File

@@ -101,6 +101,11 @@
<td class="pfFormValue"><asp:Literal ID="litAbility" runat="server" />
</td>
</tr>
<tr class="pfFormPair">
<th class="pfFormKey">Version</th>
<td class="pfFormValue"><asp:Literal ID="litVersion" runat="server" />
</td>
</tr>
</table>
</div>

View File

@@ -137,6 +137,7 @@ namespace PkmnFoundations.Web.gts
}
litNature.Text = pkmn.Nature.ToString(); // todo: i18n
litAbility.Text = pkmn.Ability == null ? "" : pkmn.Ability.Name.ToString();
litVersion.Text = pkmn.Version.ToString();
litHpCurr.Text = pkmn.HP.ToString();
litHp.Text = pkmn.Stats[Stats.Hp].ToString();
litHpProgress.Text = WebFormat.RenderProgress(pkmn.HP, pkmn.Stats[Stats.Hp]);

View File

@@ -7,11 +7,13 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace PkmnFoundations.Web.gts {
public partial class Pokemon {
namespace PkmnFoundations.Web.gts
{
public partial class Pokemon
{
/// <summary>
/// phSummary control.
/// </summary>
@@ -20,7 +22,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder phSummary;
/// <summary>
/// litNickname control.
/// </summary>
@@ -29,7 +31,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litNickname;
/// <summary>
/// imgPokemon control.
/// </summary>
@@ -38,7 +40,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Image imgPokemon;
/// <summary>
/// phShiny control.
/// </summary>
@@ -47,7 +49,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder phShiny;
/// <summary>
/// phPkrs control.
/// </summary>
@@ -56,7 +58,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder phPkrs;
/// <summary>
/// phPkrsCured control.
/// </summary>
@@ -65,7 +67,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.PlaceHolder phPkrsCured;
/// <summary>
/// litMarks control.
/// </summary>
@@ -74,7 +76,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litMarks;
/// <summary>
/// imgPokeball control.
/// </summary>
@@ -83,7 +85,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Image imgPokeball;
/// <summary>
/// litLevel control.
/// </summary>
@@ -92,7 +94,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litLevel;
/// <summary>
/// litGender control.
/// </summary>
@@ -101,7 +103,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litGender;
/// <summary>
/// litTrainerMemo control.
/// </summary>
@@ -110,7 +112,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litTrainerMemo;
/// <summary>
/// litCharacteristic control.
/// </summary>
@@ -119,7 +121,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litCharacteristic;
/// <summary>
/// litSpecies control.
/// </summary>
@@ -128,7 +130,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litSpecies;
/// <summary>
/// litPokedex control.
/// </summary>
@@ -137,7 +139,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litPokedex;
/// <summary>
/// litType1 control.
/// </summary>
@@ -146,7 +148,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litType1;
/// <summary>
/// litType2 control.
/// </summary>
@@ -155,7 +157,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litType2;
/// <summary>
/// litOtName control.
/// </summary>
@@ -164,7 +166,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litOtName;
/// <summary>
/// litTrainerId control.
/// </summary>
@@ -173,7 +175,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litTrainerId;
/// <summary>
/// litExperience control.
/// </summary>
@@ -182,7 +184,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litExperience;
/// <summary>
/// litExperienceNext control.
/// </summary>
@@ -191,7 +193,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litExperienceNext;
/// <summary>
/// litExpProgress control.
/// </summary>
@@ -200,7 +202,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litExpProgress;
/// <summary>
/// imgHeldItem control.
/// </summary>
@@ -209,7 +211,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Image imgHeldItem;
/// <summary>
/// litHeldItem control.
/// </summary>
@@ -218,7 +220,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litHeldItem;
/// <summary>
/// litNature control.
/// </summary>
@@ -227,7 +229,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litNature;
/// <summary>
/// litAbility control.
/// </summary>
@@ -236,7 +238,16 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litAbility;
/// <summary>
/// litVersion control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litVersion;
/// <summary>
/// litHpCurr control.
/// </summary>
@@ -245,7 +256,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litHpCurr;
/// <summary>
/// litHp control.
/// </summary>
@@ -254,7 +265,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litHp;
/// <summary>
/// litHpProgress control.
/// </summary>
@@ -263,7 +274,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litHpProgress;
/// <summary>
/// litAtk control.
/// </summary>
@@ -272,7 +283,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litAtk;
/// <summary>
/// litDef control.
/// </summary>
@@ -281,7 +292,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litDef;
/// <summary>
/// litSAtk control.
/// </summary>
@@ -290,7 +301,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litSAtk;
/// <summary>
/// litSDef control.
/// </summary>
@@ -299,7 +310,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litSDef;
/// <summary>
/// litSpeed control.
/// </summary>
@@ -308,7 +319,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litSpeed;
/// <summary>
/// rptMoves control.
/// </summary>
@@ -317,7 +328,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Repeater rptMoves;
/// <summary>
/// rptRibbons control.
/// </summary>
@@ -326,7 +337,7 @@ namespace PkmnFoundations.Web.gts {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Repeater rptRibbons;
/// <summary>
/// rptUnknownRibbons control.
/// </summary>