mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
shells in more rows
This commit is contained in:
3 files changed
+7
-3
No files matched your search
@@ -213,7 +213,6 @@ function Group({ group, characteristics }: GroupProps) {
|
||||
|
||||
if (items.length === 0) return null;
|
||||
|
||||
const isShellGroup = group.name === "shell";
|
||||
const title = (
|
||||
strings.tanks.characteristics.titles as Record<string, string>
|
||||
)[group.name];
|
||||
@@ -222,12 +221,12 @@ function Group({ group, characteristics }: GroupProps) {
|
||||
<Table.Body>
|
||||
<Table.Row>
|
||||
<Table.GroupTitle
|
||||
colSpan={isShellGroup ? undefined : characteristics.length + 1}
|
||||
colSpan={group.shells ? undefined : characteristics.length + 1}
|
||||
>
|
||||
{title}
|
||||
</Table.GroupTitle>
|
||||
|
||||
{isShellGroup &&
|
||||
{group.shells &&
|
||||
members.map((member, index) => (
|
||||
<Table.GroupCell key={member.key} className={styles["shell-cell"]}>
|
||||
<ShellSwitcher member={member} index={index} />
|
||||
|
||||
@@ -334,6 +334,7 @@ export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
|
||||
{
|
||||
name: "gun",
|
||||
shells: true,
|
||||
// render: CharacteristicsGroupRender.Statistical,
|
||||
order: [
|
||||
{
|
||||
@@ -394,6 +395,7 @@ export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
|
||||
{
|
||||
name: "clip",
|
||||
shells: true,
|
||||
// render: CharacteristicsGroupRender.Statistical,
|
||||
order: [
|
||||
{ name: "clipping_potential", localize: true, units: "hp" },
|
||||
@@ -420,6 +422,7 @@ export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
|
||||
{
|
||||
name: "shell",
|
||||
shells: true,
|
||||
// render: CharacteristicsGroupRender.Statistical,
|
||||
order: [
|
||||
{ name: "penetration", units: "mm" },
|
||||
|
||||
@@ -130,5 +130,7 @@ export type CharacteristicsGroup = {
|
||||
name: string;
|
||||
// Groups that only some tanks have are no use as a sort key
|
||||
sortable?: boolean;
|
||||
// Shows each tank's shell switcher in the group's title row
|
||||
shells?: boolean;
|
||||
order: (CharacteristicRenderConfig | LabelRenderConfig | ToyRenderConfig)[];
|
||||
};
|
||||
Reference in new issue
Block a user