Skip to content

Commit

Permalink
Merge pull request #13620 from Wagii/CBA-char-init
Browse files Browse the repository at this point in the history
[Cloudbreaker Alliance] feature adding init tracker button
  • Loading branch information
kfroll20 authored Dec 19, 2024
2 parents 3e3e9c4 + 355b9a4 commit 0206bdc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cloudbreaker_Alliance/cloudbreaker_alliance.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ button.btn.repcontrol_add {
background-color: var(--input-color);
background-image: var(--button-color);
color: var(--input-text);
}

button.sheet-invisible-button {
background-image: none;
border: 0;
}

select {
Expand Down Expand Up @@ -1467,13 +1471,15 @@ div.sheet-tab.sheet-options div.sheet-sectionContainer span {
}

/*** Rolltemplates ***/
.sheet-rolltemplate-basic .sheet-template-container,
.sheet-rolltemplate-generic .sheet-template-container,
.sheet-rolltemplate-attack .sheet-template-container {
display: flex;
flex-flow: column wrap;
justify-content: center;
}

.sheet-rolltemplate-basic .sheet-template-container .sheet-template-header h1,
.sheet-rolltemplate-generic .sheet-template-container .sheet-template-header h1,
.sheet-rolltemplate-attack .sheet-template-container .sheet-template-header h1 {
padding: 4px;
Expand All @@ -1483,12 +1489,14 @@ div.sheet-tab.sheet-options div.sheet-sectionContainer span {
text-align: center;
}

.sheet-rolltemplate-basic.sheet-rolltemplate-darkmode .sheet-template-container .sheet-template-header h1,
.sheet-rolltemplate-generic.sheet-rolltemplate-darkmode .sheet-template-container .sheet-template-header h1,
.sheet-rolltemplate-attack.sheet-rolltemplate-darkmode .sheet-template-container .sheet-template-header h1 {
background-color: #7e7e7e;
color: #1f1f1f;
}

.sheet-rolltemplate-basic .sheet-template-container .sheet-template-contents,
.sheet-rolltemplate-generic .sheet-template-container .sheet-template-contents,
.sheet-rolltemplate-attack .sheet-template-container .sheet-template-contents {
display: flex;
Expand All @@ -1501,12 +1509,14 @@ div.sheet-tab.sheet-options div.sheet-sectionContainer span {
border-radius: 0 0 8px 8px;
}

.sheet-rolltemplate-basic.sheet-rolltemplate-darkmode .sheet-template-container .sheet-template-contents,
.sheet-rolltemplate-generic.sheet-rolltemplate-darkmode .sheet-template-container .sheet-template-contents,
.sheet-rolltemplate-attack.sheet-rolltemplate-darkmode .sheet-template-container .sheet-template-contents {
background-color: #1f1f1f;
border: 4px solid #7e7e7e;
}

.sheet-rolltemplate-basic .sheet-template-container .sheet-template-contents .sheet-template-row,
.sheet-rolltemplate-generic .sheet-template-container .sheet-template-contents .sheet-template-row,
.sheet-rolltemplate-attack .sheet-template-container .sheet-template-contents .sheet-template-row {
font-weight: bold;
Expand Down
17 changes: 17 additions & 0 deletions Cloudbreaker_Alliance/cloudbreaker_alliance.html
Original file line number Diff line number Diff line change
Expand Up @@ -3339,6 +3339,7 @@ <h1 data-i18n="combat-title">
<div class="sheet-sectionContainer">
<!-- Turn speed -->
<div>
<button class="sheet-invisible-button" name="act_rollTurnSpeed" type="roll" value="&{template:basic} {{charName=@{character_name}}} {{rollName=Turn speed}} {{rollValues=[[@{turn_speed} &{tracker}]]}}"></button>
<input name="attr_turn_speed" type="number" value="4"/>
</div>
<!-- Movement -->
Expand Down Expand Up @@ -5763,6 +5764,22 @@ <h1 data-i18n="options-title">
</div>
</div>
</div>
<rolltemplate class="sheet-rolltemplate-basic">
<div class="sheet-template-container">
<div class="sheet-template-header">
<h1>
{{charName}}
<br/>
{{rollName}}
</h1>
</div>
<div class="sheet-template-contents">
<div class="sheet-template-row">
Total = {{rollValues}}
</div>
</div>
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-generic">
<div class="sheet-template-container">
<div class="sheet-template-header">
Expand Down

0 comments on commit 0206bdc

Please sign in to comment.