forked from GitHub-Mirrors/foundry-sw5e

Things unfinished: - Migration - The update adds new sections to the class sheet to allow some light customisation, this hasn't been included, but could be extended for the sake of dynamic classes with automatic class features and more - The French - The packs have not yet been updated, meaning due to the addition of a progression field to the class item, classes now don't set force or tech points - I updated the function calls in starships, but I didn't update it very thoroughly, it'll need checking - I only did a little testing - There has since been updates to DND5e that hasn't made it to release that patch bugs, those should be implemented Things changed from base 5e: - Short rests and long rests were merged into one function, this needed some rewrites to account for force and tech points, and for printing the correct message Extra Comments: - Unfinished code exists for automatic spell scrolls, this could be extended for single use force or tech powers - Weapon proficiencies probably need revising - Elven accuracy, halfling lucky, and reliable talent are present in the roll logic, this probably needs revising for sw5e - SW5e has a variant rule that permits force powers of any alignment to use either charisma or wisdom, that could be implemented - SW5e's version of gritty realism, [Longer Rests](https://sw5e.com/rules/variantRules/Longer%20Rests) differs from base dnd, this could be implemented - Extra ideas I've had while looking through the code can be found in Todos next to the ideas relevant context
420 lines
No EOL
11 KiB
Text
420 lines
No EOL
11 KiB
Text
.panel {
|
|
background: @actorPanelBgColor;
|
|
}
|
|
|
|
.sw5e.sheet .window-content {
|
|
color: @colorBlack;
|
|
background: linear-gradient(90deg,#afc6d6 0,#d6d6d6 30%,#d6d6d6 70%,#afc6d6);
|
|
input,
|
|
select {
|
|
color: @colorBlack;
|
|
&:hover {
|
|
border-color: @inputBorderHover;
|
|
}
|
|
|
|
&:focus {
|
|
border-color: @inputBorderFocus;
|
|
}
|
|
}
|
|
|
|
button {
|
|
|
|
&:hover,
|
|
&:focus {
|
|
border-color: @inputBorderFocus;
|
|
}
|
|
}
|
|
}
|
|
|
|
.sw5e.sheet.actor {
|
|
color: @colorBlack;
|
|
input, select, textarea {
|
|
&:hover {
|
|
border-color: @inputBorderFocus;
|
|
}
|
|
&:focus {
|
|
border-color: @inputBorderFocus;
|
|
}
|
|
}
|
|
.swalt-sheet {
|
|
section>h1 {
|
|
border-bottom: 2px solid @colorBlue;
|
|
}
|
|
|
|
header {
|
|
|
|
h1.character-name {
|
|
color: @actorNameColor;
|
|
|
|
input[type="text"] {
|
|
color: @actorNameColor;
|
|
}
|
|
}
|
|
|
|
.level-experience {
|
|
|
|
.xpbar {
|
|
border: 1px solid @actorXPBarBorder;
|
|
background-color: @actorXPBarBackground;
|
|
|
|
.bar {
|
|
background-color: @actorXPBarColor;
|
|
}
|
|
}
|
|
}
|
|
|
|
.summary {
|
|
|
|
input,
|
|
.proficiency {
|
|
color: @actorProficiencyTextColor;
|
|
}
|
|
}
|
|
|
|
.attributes {
|
|
|
|
.attribute-value,
|
|
.attribute-value input {
|
|
color: @actorAttributeInputColor;
|
|
}
|
|
|
|
.attribute-value {
|
|
|
|
.value-separator {
|
|
color: @actorSeparatorColor;
|
|
}
|
|
}
|
|
|
|
footer {
|
|
button {
|
|
border: 1px solid @actorAttributeButtonBorder;
|
|
|
|
&:hover {
|
|
color: @actorAttributeButtonBorderHover;
|
|
}
|
|
}
|
|
|
|
&.hit-points,
|
|
&.hit-dice,
|
|
&.initiative {
|
|
button {
|
|
border: 1px solid @actorAttributeButtonBorder;
|
|
color: @colorRed;
|
|
|
|
&:hover {
|
|
border-color: @actorAttributeButtonBorderHover;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
nav.sheet-navigation {
|
|
.item {
|
|
color: @actorNavigationTabsColor;
|
|
|
|
&.active {
|
|
color: @actorNavigationTabsActiveColor;
|
|
border-bottom-color: @actorNavigationTabsActiveColor;
|
|
|
|
&:hover {
|
|
background: @actorNavigationTabsHoverBgColor;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
background: @actorNavigationTabsHoverBgColor;
|
|
}
|
|
}
|
|
}
|
|
|
|
.tab {
|
|
|
|
.filter-list {
|
|
|
|
.filter-item {
|
|
border-bottom: 2px solid @actorFilterBorderColor;
|
|
|
|
&:hover {
|
|
color: @actorFilterHoverColor;
|
|
}
|
|
|
|
&.active {
|
|
color: @actorFilterActiveColor;
|
|
border-bottom-color: @actorFilterActiveColor;
|
|
}
|
|
}
|
|
}
|
|
|
|
.group-list-header {
|
|
background: @actorGroupListHeaderBgColor;
|
|
}
|
|
|
|
.group-list-title {
|
|
border-bottom: 1px solid @actorGroupListTitleBorderColor;
|
|
}
|
|
|
|
.group-list-header,
|
|
.group-list {
|
|
.item-detail {
|
|
border-left: 1px solid @actorGroupListColumnBorderColor;
|
|
}
|
|
}
|
|
|
|
.group-list,
|
|
.group-list ol {
|
|
li.item {
|
|
&:nth-child(even) {
|
|
background-color: @actorGroupListAltRowColor;
|
|
}
|
|
|
|
h4 {
|
|
color: @colorBlack;
|
|
}
|
|
|
|
|
|
.item-name {
|
|
|
|
.item-image {
|
|
|
|
&::before {
|
|
color: @actorItemRollableD20Color;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
&.rollable:hover {
|
|
|
|
.item-image {
|
|
&:hover {
|
|
&::before {
|
|
color: @actorItemRollableD20HoverColor;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.item-control {
|
|
&:hover {
|
|
color: @linkColor !important;
|
|
}
|
|
|
|
&.item-toggle {
|
|
color: @actorItemControlToggleColor;
|
|
|
|
&.active {
|
|
color: @colorBlack;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
.tab.attributes {
|
|
.abilities {
|
|
|
|
.scores {
|
|
li {
|
|
border: 1px solid @actorAbilityBorderColor;
|
|
|
|
h2 {
|
|
&:hover {
|
|
color: @linkColor;
|
|
}
|
|
}
|
|
|
|
.ability-score {
|
|
color: @actorAbilityScoreColor;
|
|
}
|
|
|
|
.ability-modifiers {
|
|
|
|
.ability-mod,
|
|
.ability-save {
|
|
border-color: @actorAbilityBorderColor;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
.skills {
|
|
li {
|
|
&:nth-child(even) {
|
|
background-color: @actorSkillsAltRowColor;
|
|
}
|
|
.proficiency-toggle {
|
|
color: @colorBlack;
|
|
}
|
|
|
|
.skill-name {
|
|
&:hover {
|
|
color: @linkColor;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.traits-resources {
|
|
nav {
|
|
button {
|
|
color: @actorNavigationTabsColor;
|
|
|
|
&.active {
|
|
color: @actorNavigationTabsActiveColor;
|
|
border-bottom-color: @actorNavigationTabsActiveColor;
|
|
|
|
&:hover {
|
|
background: @actorNavigationTabsActiveHoverBgColor;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
background: @actorNavigationTabsHoverBgColor;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
section.traits {
|
|
.trait-selector {
|
|
i.fas {
|
|
color: @linkColor;
|
|
}
|
|
}
|
|
|
|
.languages {
|
|
label {
|
|
&:hover {
|
|
color: @linkColor;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
section.resources {
|
|
.resource-items {
|
|
.resource {
|
|
h1 {
|
|
|
|
input {
|
|
color: @headingColor;
|
|
border-bottom: 2px solid @headerBorderColor;
|
|
}
|
|
}
|
|
|
|
.attribute-value,
|
|
.attribute-value input {
|
|
color: @actorAttributeInputColor;
|
|
}
|
|
|
|
.attribute-value {
|
|
.value-separator {
|
|
color: @actorSeparatorColor;
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
.counters {
|
|
.counter {
|
|
h4 {
|
|
&.rollable {
|
|
&:hover {
|
|
color: @linkColor;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.death-success {
|
|
i {
|
|
color: @colorGreen;
|
|
}
|
|
}
|
|
|
|
.death-fail {
|
|
i {
|
|
color: @colorRed;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.tab.inventory {
|
|
.currency {
|
|
color: @headingColor;
|
|
}
|
|
|
|
.encumbrance-wrapper {
|
|
.encumbrance-label {
|
|
background: @actorEncumbranceLabelBackground;
|
|
color: @actorEncumbranceTextColor;
|
|
border: 1px solid @actorEncumbranceBorderColor;
|
|
}
|
|
|
|
.encumbrance {
|
|
background: @actorEncumbranceBarBgColor;
|
|
.encumbrance-bar {
|
|
background: @actorEncumbranceBarColor;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.tab.force-powerbook,
|
|
.tab.tech-powerbook {
|
|
.powercasting-ability {
|
|
label,
|
|
h3 {
|
|
color: @headingColor;
|
|
|
|
span {
|
|
color: @colorBlack;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.tab.notes {
|
|
section {
|
|
&>input {
|
|
color: @headingColor;
|
|
border-bottom: 2px solid @headerBorderColor;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&.npc {
|
|
.swalt-sheet {
|
|
header {
|
|
div.creature-type:hover {
|
|
border-color: @inputBorderFocus;
|
|
}
|
|
.experience {
|
|
color: @actorProficiencyTextColor;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |