- Container behavior for Weapons, Def. Weapons and Armor is now the same as for items (#53)

- Fixed some Bugs

Co-authored-by: Ender <harald@drueppels.de>
Co-authored-by: Byroks <byroks@gmail.com>
Reviewed-on: #53
Reviewed-by: Byroks <byroks@gmail.com>
Co-authored-by: oskaloq <os_ka_loq@gmx.de>
Co-committed-by: oskaloq <os_ka_loq@gmx.de>
This commit was merged in pull request #53.
This commit is contained in:
2024-01-31 18:31:32 +01:00
committed by Byroks
co-authored by Ender Byroks
parent 454982906f
commit 9f1334da4f
7 changed files with 339 additions and 201 deletions
+10
View File
@@ -90,6 +90,16 @@ Hooks.once("init", async () => {
return label.toLowerCase().includes(contains.toLowerCase());
});
Handlebars.registerHelper("count", (object: any) => {
var length = 0;
for( var key in object ) {
if( object.hasOwnProperty(key) ) {
++length;
}
}
return length;
});
// Default Sheet für Items definieren und das Standardsheet deaktivieren
Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("midgard5", M5ItemSheet, { makeDefault: true });
+18 -9
View File
@@ -11,38 +11,41 @@
.flexcolumn {
flex-wrap: wrap;
flex-direction: column;
}
.flexcolumn-1 {
flex: 100%;
flex-basis: 100%;
flex-wrap: wrap;
}
.flexcolumn-2 {
flex: 50%;
flex-basis: 50%;
flex-wrap: wrap;
}
.flexcolumn-3 {
flex: 33%;
flex-basis: 33%;
flex-wrap: wrap;
}
.flexcolumn-4 {
flex: 25%;
flex-basis: 25%;
flex-wrap: wrap;
}
.flexcolumn-5 {
flex: 20%;
flex-basis: 20%;
flex-wrap: wrap;
}
.flexpart {
gap: 0;
padding: 0;
margin: 5px;
margin: 2px;
background-color: beige;
border-collapse: separate;
border-radius: 10px;
border: 2px solid black;
}
@@ -65,10 +68,15 @@
h3 {
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
margin-top: 0.5rem;
margin-bottom: 0;
text-align: left;
font-weight: bold;
background-color: dimgray;
color: white;
background-color: #eeede0;
color: black;
border-collapse: separate;
border: 2px solid black;
border-radius: 10px;
}
.profile-img {
@@ -246,7 +254,8 @@
padding: 1px;
//align-items: stretch;
input {
input,
.max-value {
flex: 0 0 2rem;
text-align: center;
height: 100%;