This commit is contained in:
TheGiddyLimit
2024-01-01 19:34:49 +00:00
parent 332769043f
commit 8117ebddc5
1748 changed files with 2544409 additions and 1 deletions

View File

@@ -0,0 +1,42 @@
export class EncounterBuilderRenderableCollectionPlayersSimple extends RenderableCollectionGenericRows {
constructor (
{
comp,
rdState,
},
) {
super(comp, "playersSimple", rdState.$wrpRowsSimple);
}
_$getWrpRow () {
return $(`<div class="ve-flex-v-center mb-2 ecgen-player__wrp-row"></div>`);
}
_populateRow ({comp, $wrpRow, entity}) {
const $selCount = ComponentUiUtil.$getSelEnum(
comp,
"count",
{
values: [...new Array(12)].map((_, i) => i + 1),
},
).addClass("form-control--minimal no-shrink");
const $selLevel = ComponentUiUtil.$getSelEnum(
comp,
"level",
{
values: [...new Array(20)].map((_, i) => i + 1),
},
).addClass("form-control--minimal no-shrink bl-0");
const $btnRemove = this._utils.$getBtnDelete({entity, title: "Remove Player Group"})
.addClass("ecgen-player__btn-inline h-ipt-xs no-shrink bl-0 bbl-0 btl-0")
.attr("tabindex", "-1");
$$($wrpRow)`
<div class="w-20">${$selCount}</div>
<div class="w-20">${$selLevel}</div>
<div class="ve-flex-v-center">${$btnRemove}</div>
`;
}
}