Browse Source

Add columns and pager to WeaponTable and update tool info

Added "Targets" and "Has Splash" columns as well as a pager for better data navigation in the WeaponTable. Enhanced the tool description to clarify its purpose for comparing and sorting data effectively.
main
Jonathan 1 year ago
parent
commit
831512a64b
  1. 2
      IGP/Pages/DataTables/DataTablesPage.razor
  2. 5
      IGP/Pages/DataTables/Parts/WeaponTable.razor

2
IGP/Pages/DataTables/DataTablesPage.razor

@ -30,7 +30,7 @@
What is this tool? What is this tool?
</InfoQuestionComponent> </InfoQuestionComponent>
<InfoAnswerComponent> <InfoAnswerComponent>
Compare data This tool is a data table of all information belonging to a type of data. Such as viewing all weapons, so one can easily sort and see what weapon attack has the highest range, and what faction and unit that attack belongs to.
</InfoAnswerComponent> </InfoAnswerComponent>
</InfoBodyComponent> </InfoBodyComponent>

5
IGP/Pages/DataTables/Parts/WeaponTable.razor

@ -5,15 +5,20 @@
<Columns> <Columns>
<PropertyColumn Property="x => x.Parent.GetName()" Title="Entity"/> <PropertyColumn Property="x => x.Parent.GetName()" Title="Entity"/>
<PropertyColumn Property="x => x.Range" Title="Range"/> <PropertyColumn Property="x => x.Range" Title="Range"/>
<PropertyColumn Property="x => x.Targets" Title="Targets"/>
<PropertyColumn Property="x => x.Damage" Title="Damage"/> <PropertyColumn Property="x => x.Damage" Title="Damage"/>
<PropertyColumn Property="x => x.AttacksPerSecond" Title="Attacks Per Second"/> <PropertyColumn Property="x => x.AttacksPerSecond" Title="Attacks Per Second"/>
<PropertyColumn Property="x => x.DamagePerSecond()" Title="DPS"/> <PropertyColumn Property="x => x.DamagePerSecond()" Title="DPS"/>
<PropertyColumn Property="x => x.HasSplash" Title="Has Splash"/>
<PropertyColumn Property="x => x.DamagePerSecondLight()" Title="DPS (Light)"/> <PropertyColumn Property="x => x.DamagePerSecondLight()" Title="DPS (Light)"/>
<PropertyColumn Property="x => x.DamagePerSecondMedium()" Title="DPS (Medium)"/> <PropertyColumn Property="x => x.DamagePerSecondMedium()" Title="DPS (Medium)"/>
<PropertyColumn Property="x => x.DamagePerSecondHeavy()" Title="DPS (Heavy)"/> <PropertyColumn Property="x => x.DamagePerSecondHeavy()" Title="DPS (Heavy)"/>
<PropertyColumn Property="x => x.Parent.GetFaction()" Title="Faction"/> <PropertyColumn Property="x => x.Parent.GetFaction()" Title="Faction"/>
<PropertyColumn Property="x => x.Parent.GetImmortal()" Title="Immortal"/> <PropertyColumn Property="x => x.Parent.GetImmortal()" Title="Immortal"/>
</Columns> </Columns>
<PagerContent>
<MudDataGridPager T="EntityWeaponModel" />
</PagerContent>
</MudDataGrid> </MudDataGrid>
@code { @code {

Loading…
Cancel
Save