Skip to content

Commit

Permalink
More progress on clock keys, getting roll result templates ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunomiac committed Jan 20, 2024
1 parent f0df004 commit 1cab32a
Show file tree
Hide file tree
Showing 44 changed files with 2,156 additions and 974 deletions.
39 changes: 38 additions & 1 deletion css/style.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -26915,6 +26915,26 @@ template {
opacity: 0;
pointer-events: none;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys {
filter: grayscale(0.5) brightness(0.5);
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys, :root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys * {
pointer-events: none !important;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys a:not(.clock-control-drop-key),
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys select,
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys input, :root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys * a:not(.clock-control-drop-key),
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys * select,
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys * input {
pointer-events: auto !important;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys .clock-control-drop-key {
pointer-events: none !important;
filter: grayscale(1);
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.clock-keeper .window-content form .sheet-root .tab-content .tab.other-scene-keys .clock-control-drop-key .button-icon i {
pointer-events: none !important;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item.gm-tracker .window-content form {
--sheet-mid-height: 100px;
}
Expand Down Expand Up @@ -27479,15 +27499,32 @@ template {
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item .window-content form.cohort_gang.cohort_gang .sheet-root section.sheet-top, :root body.vtt.game.system-eunos-blades .app.window-app.sheet.item .window-content form.cohort_expert.cohort_gang .sheet-root section.sheet-top {
grid-template-areas: "title title tier" "subtitle subtitle tier";
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item .window-content form.project {
pointer-events: none;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item .window-content form.project .sheet-root {
overflow: hidden;
min-height: 250px;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item .window-content form.project .sheet-root .sheet-top {
grid-template-areas: "title title .";
grid-template-areas: "title title ." "subtitle subtitle .";
grid-template-rows: 40px 20px;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item .window-content form.project .sheet-root .sheet-top .sheet-title {
text-align: left;
font-size: 2.5rem;
line-height: 2.5rem;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item .window-content form.project .sheet-root .sheet-top .sheet-subtitle {
text-align: left;
font-size: 1rem;
line-height: 1.25rem;
position: relative;
z-index: 2;
background: transparent;
border: none;
text-indent: 15px;
padding: 0;
}
:root body.vtt.game.system-eunos-blades .app.window-app.sheet.item .window-content form.project .sheet-root .split-panel {
justify-content: stretch;
Expand Down
20 changes: 13 additions & 7 deletions module/classes/BladesChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,19 @@ class BladesChat extends ChatMessage {
// }
});
return loadTemplates([
"systems/eunos-blades/templates/chat/roll-result-action-roll.hbs",
"systems/eunos-blades/templates/chat/roll-result-resistance-roll.hbs",
"systems/eunos-blades/templates/chat/roll-result-fortune-roll.hbs",
"systems/eunos-blades/templates/chat/roll-result-indulgevice-roll.hbs"
"systems/eunos-blades/templates/chat/roll-result/action.hbs",
"systems/eunos-blades/templates/chat/roll-result/action-clock.hbs",
"systems/eunos-blades/templates/chat/roll-result/action-acquireasset.hbs",
"systems/eunos-blades/templates/chat/roll-result/action-reduceheat.hbs",
"systems/eunos-blades/templates/chat/roll-result/action-clock-recover.hbs",
"systems/eunos-blades/templates/chat/roll-result/action-gatherinfo.hbs",
"systems/eunos-blades/templates/chat/roll-result/fortune.hbs",
"systems/eunos-blades/templates/chat/roll-result/fortune-clock.hbs",
"systems/eunos-blades/templates/chat/roll-result/fortune-gatherinfo.hbs",
"systems/eunos-blades/templates/chat/roll-result/fortune-incarceration.hbs",
"systems/eunos-blades/templates/chat/roll-result/fortune-engagement.hbs",
"systems/eunos-blades/templates/chat/roll-result/indulgevice.hbs",
"systems/eunos-blades/templates/chat/roll-result/resistance.hbs"
]);
}
static async ConstructRollOutput(rollInst) {
Expand All @@ -47,9 +56,6 @@ class BladesChat extends ChatMessage {
set rollInst(rollInst) { this._rollInst = rollInst; }
get elem() { return $("#chat-log").find(`.chat-message[data-message-id="${this.id}"]`)[0]; }
get isRollResult() { return this.type === CONST.CHAT_MESSAGE_TYPES.ROLL; }
constructor(data) {
super(data);
}
async reRender(html) {
this.update({ content: html });
}
Expand Down
Loading

0 comments on commit 1cab32a

Please sign in to comment.