Added Movemenmt and action tab

This commit is contained in:
Ender
2024-05-20 23:26:42 +02:00
parent aef48dd46b
commit 976cd83a04
4 changed files with 154 additions and 44 deletions
+6
View File
@@ -95,6 +95,12 @@ Hooks.on("getChatLogEntryContext", function (html, options) {
);
});
Hooks.on("createCombatant", async function () {
const test="Dritter Test";
console.log("Test: ", test);
await (game as Game).combat.setFlag('world', 'Test', test);
});
Hooks.on("updateCombat", function (combat: Combat, updateData: { round: number; turn: number }, updateOptions: { advanceTime: number; direction: number }) {
if (combat.round % 2 === 0 && combat.turn !== null) {
const tokenId = combat.current.tokenId;
+16 -5
View File
@@ -6,6 +6,7 @@
.flexbox {
display: flex;
flex-direction: row;
align-items: stretch;
flex-wrap: wrap;
}
@@ -15,28 +16,33 @@
}
.flexcolumn-1 {
flex-basis: 100%;
flex-basis: 99%;
flex-wrap: wrap;
flex-direction: column;
}
.flexcolumn-2 {
flex-basis: 50%;
flex-basis: 49%;
flex-wrap: wrap;
flex-direction: column;
}
.flexcolumn-3 {
flex-basis: 33%;
flex-basis: 32%;
flex-wrap: wrap;
flex-direction: column;
}
.flexcolumn-4 {
flex-basis: 25%;
flex-basis: 24%;
flex-wrap: wrap;
flex-direction: column;
}
.flexcolumn-5 {
flex-basis: 20%;
flex-basis: 19%;
flex-wrap: wrap;
flex-direction: column;
}
.flexpart {
@@ -80,6 +86,11 @@
border-radius: 10px;
}
.fixed-value {
width: 3rem;
text-align: center;
}
.profile-img {
display: block;
margin-left: auto;