Merge pull request #10067 from Lockbox313/blackvoid

[Black Void] Adding the sheet toggle to npc page
This commit is contained in:
Nic Bradley
2022-01-25 09:21:48 -08:00
committed by GitHub
4 changed files with 30 additions and 18 deletions
@@ -2043,6 +2043,13 @@ div.sheet-npc .sheet-collapse,
div.sheet-npc .sheet-settings {
grid-column: 1/-1 !important;
}
div.sheet-npc .sheet-npc-toggle {
position: relative !important;
top: 20px;
right: 1px;
opacity: 0%;
z-index: 99 !important;
}
/* REPEATING SECTIONS
============================= */
@@ -1055,6 +1055,10 @@
</div>
</div>
<div class="npc">
<div class="grid button">
<input class="sheet-npc-toggle" name="attr_sheet_type" type="checkbox" value="npc"/>
<div class="option"> <span class="pictos">U</span></div>
</div>
<div class="grid npc-display">
<h1 class="npc-title">
<input name="attr_npc_name_toggle" type="hidden" value="1"/>
@@ -1,9 +1,8 @@
.npc
.grid.button
input(name="attr_sheet_type", class="sheet-npc-toggle", type="checkbox" value="npc")
.option
input.sheet-npc-toggle(name='attr_sheet_type' type='checkbox' value='npc')
.option
span.pictos U
.grid.npc-display
h1.npc-title
@@ -26,26 +25,26 @@
each attribute in npcAttributes
.sheet-npc-attribute(data-i18n=`npc ${attribute.name}`)
if (attribute.type === "number")
+numberInput(attribute.name)
if (attribute.type === "text")
+textInput(attribute.name)
.grid.column.npc-weapons
.grid.npc-weapons-header
h2.text-left(data-i18n='weapons')
each field in npcWeaponFields
.text-center(data-i18n=field.name)
.grid.npc-weapons
.repeating-container
+repeatingNPCAttacks('weapons')
.grid.column.2autocolumn.npc-repeating
@@ -454,12 +454,14 @@ div.sheet-npc {
.sheet-settings {
grid-column: 1 / -1 !important;
}
}
.sheet-npc-toggle{
position: relative!important;
top: 20px;
right: 1px;
opacity: 0%;
z-index: 99!important;
}
.sheet-npc-toggle{
position: relative!important;
top: 20px;
right: 1px;
opacity: 0%;
z-index: 99!important;
}
}