From aa46fe94d1aeaa0839fad9e10d0a04fe01a26ac6 Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Fri, 21 Aug 2020 22:27:40 +0200 Subject: [PATCH] fix: Info tab visible again. Skill roll shows skill again. Fixed a lot of warnings. --- src/module/handlebars.ts | 24 +-- src/module/sheets/TwodsixActorSheet.ts | 24 +-- src/module/sheets/TwodsixItemSheet.ts | 4 +- static/styles/twodsix.css | 103 +++++++---- static/template.json | 25 +-- static/templates/actors/actor-sheet.html | 166 ++++++++++-------- static/templates/actors/parts/actor-info.html | 40 +++-- .../templates/actors/parts/actor-items.html | 44 +++-- .../templates/actors/parts/actor-skills.html | 83 +++++---- static/templates/items/item-sheet.html | 18 +- 10 files changed, 294 insertions(+), 237 deletions(-) diff --git a/src/module/handlebars.ts b/src/module/handlebars.ts index 19201d6c9..48d7cf0a2 100644 --- a/src/module/handlebars.ts +++ b/src/module/handlebars.ts @@ -1,9 +1,7 @@ -import { SIGKILL } from "constants"; - export default function registerHandlebarsHelpers():void { // If you need to add Handlebars helpers, here are a few useful examples: - Handlebars.registerHelper('concat', function() { + Handlebars.registerHelper('concat', function () { let outStr = ''; for (const arg in arguments) { if (typeof arguments[arg] != 'object') { @@ -13,33 +11,35 @@ export default function registerHandlebarsHelpers():void { return outStr; }); - Handlebars.registerHelper('toLowerCase', function(str) { + Handlebars.registerHelper('toLowerCase', function (str) { return str.toLowerCase(); }); - Handlebars.registerHelper('checkPsi', function(characteristic) { + Handlebars.registerHelper('checkPsi', function (characteristic) { if (!game.user.isGM && characteristic.shortlabel === 'PSI' && characteristic.value === 0) { return false; } return true; }); - Handlebars.registerHelper('checkTrainedSkill', function(skill) { + Handlebars.registerHelper('checkTrainedSkill', function (skill) { return skill.trained }); - Handlebars.registerHelper('shouldShowSkill', function(skill, hideUntrainedSkills) { + Handlebars.registerHelper('shouldShowSkill', function (skill, hideUntrainedSkills) { return skill.trained || hideUntrainedSkills }); - Handlebars.registerHelper('getSkillValueWithJoat', function(skill, joat) { + Handlebars.registerHelper('getSkillValueWithJoat', getSkillValueWithJoat); + + function getSkillValueWithJoat(skill, joat) { if (skill.trained) return skill.value return skill.value + joat.value - }); + } - Handlebars.registerHelper('getTotalSkillValue', function(skill, joat, mod){ - return skill.value + joat.value + skill.mod -}); + Handlebars.registerHelper('getTotalSkillValue', function (skill, joat, mod) { + return getSkillValueWithJoat(skill, joat) + mod + }); Handlebars.registerHelper({ diff --git a/src/module/sheets/TwodsixActorSheet.ts b/src/module/sheets/TwodsixActorSheet.ts index 26954b843..d3bbb34c9 100644 --- a/src/module/sheets/TwodsixActorSheet.ts +++ b/src/module/sheets/TwodsixActorSheet.ts @@ -72,22 +72,22 @@ export class TwodsixActorSheet extends ActorSheet { })); // Delete Inventory Item - html.find('.item-delete').on('click',(ev => { + html.find('.item-delete').on('click', (ev => { const li = $(ev.currentTarget).parents(".item"); this.actor.deleteOwnedItem(li.data("itemId")); li.slideUp(200, () => this.render(false)); })); // Rollable abilities. - html.find('.rollable').on('click',(this._onRoll.bind(this))); + html.find('.rollable').on('click', (this._onRoll.bind(this))); // Upgrade/downgrade skills. - html.find('.upgrade-skill').on('click',this._onUpgrade.bind(this)); - html.find('.downgrade-skill').on('click',this._onDowngrade.bind(this)); - html.find('.upgrade-joat').on('click',this._onUpgradeJoat.bind(this)); - html.find('.downgrade-joat').on('click',this._onDowngradeJoat.bind(this)); + html.find('.upgrade-skill').on('click', this._onUpgrade.bind(this)); + html.find('.downgrade-skill').on('click', this._onDowngrade.bind(this)); + html.find('.upgrade-joat').on('click', this._onUpgradeJoat.bind(this)); + html.find('.downgrade-joat').on('click', this._onDowngradeJoat.bind(this)); - html.find('.toggle-skills').on('click',ev => { + html.find('.toggle-skills').on('click', ev => { ev.preventDefault(); this.options.hideUntrainedSkills = !this.options.hideUntrainedSkills; this.actor.sheet.render(true) @@ -136,7 +136,7 @@ export class TwodsixActorSheet extends ActorSheet { * @param {Event} event The originating click event * @private */ - _onRoll(event: { preventDefault: () => void; currentTarget: any; }):void { + _onRoll(event:{ preventDefault:() => void; currentTarget:any; }):void { event.preventDefault(); const element = event.currentTarget; const dataset = element.dataset; @@ -151,7 +151,7 @@ export class TwodsixActorSheet extends ActorSheet { } } - _onUpgradeJoat(event: { preventDefault: () => void; currentTarget: any; }):void { + _onUpgradeJoat(event:{ preventDefault:() => void; currentTarget:any; }):void { event.preventDefault(); const element = event.currentTarget; const actorData = this.actor.data; @@ -162,7 +162,7 @@ export class TwodsixActorSheet extends ActorSheet { } } - _onDowngradeJoat(event: { preventDefault: () => void; currentTarget: any; }):void { + _onDowngradeJoat(event:{ preventDefault:() => void; currentTarget:any; }):void { event.preventDefault(); const element = event.currentTarget; const actorData = this.actor.data; @@ -178,7 +178,7 @@ export class TwodsixActorSheet extends ActorSheet { * @param {Event} event The originating click event * @private */ - _onUpgrade(event: { preventDefault: () => void; currentTarget: any; }):void { + _onUpgrade(event:{ preventDefault:() => void; currentTarget:any; }):void { event.preventDefault(); const element = event.currentTarget; const skillName = element.getAttribute('data-label'); @@ -198,7 +198,7 @@ export class TwodsixActorSheet extends ActorSheet { * @param {Event} event The originating click event * @private */ - _onDowngrade(event: { preventDefault: () => void; currentTarget: any; }):void { + _onDowngrade(event:{ preventDefault:() => void; currentTarget:any; }):void { event.preventDefault(); const element = event.currentTarget; const skillName = element.getAttribute('data-label'); diff --git a/src/module/sheets/TwodsixItemSheet.ts b/src/module/sheets/TwodsixItemSheet.ts index c4f920c4d..044260e8d 100644 --- a/src/module/sheets/TwodsixItemSheet.ts +++ b/src/module/sheets/TwodsixItemSheet.ts @@ -10,8 +10,8 @@ export class TwodsixItemSheet extends ItemSheet { classes: ["twodsix", "sheet", "item"], width: 520, height: 377, - submitOnClose:true, - submitOnChange:true, + submitOnClose: true, + submitOnChange: true, tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}] }); } diff --git a/static/styles/twodsix.css b/static/styles/twodsix.css index 81db0f9c0..5e34d3881 100644 --- a/static/styles/twodsix.css +++ b/static/styles/twodsix.css @@ -37,14 +37,16 @@ textarea:focus { .window-content { background-attachment: fixed !important; - background-image: url(../assets/bg2.jpg)!important; + background-image: url(../assets/bg2.jpg) !important; background-repeat: repeat-x !important; font-family: Consolas, monospace; color: #00E5FF !important; } + .app .window-app .twodsix .sheet .actor .window-content { overflow: hidden !important; } + .character-name h2 { margin-bottom: -0.5em; border: none; @@ -81,7 +83,9 @@ input[type="text"]:focus, input[type="number"] input[type="password"]:focus, inp box-shadow: 0 0 10px #207ab7; } -input::-webkit-inner-spin-button {display:none} +input::-webkit-inner-spin-button { + display: none +} .content-container { display: grid; @@ -123,6 +127,7 @@ img.character-info-mask { vertical-align: middle; height: 3em; } + .character-name { position: relative; top: 1em; @@ -149,13 +154,29 @@ img.character-info-mask { z-index: 6; } -.bgi-age input {width: 1.5em;} -.bgi-gender input {width: 4em;} -.bgi-species input {width: 9.1em;} -.bgi-homeworld input {width: 8em;} +.bgi-age input { + width: 1.5em; +} + +.bgi-gender input { + width: 4em; +} + +.bgi-species input { + width: 9.1em; +} + +.bgi-homeWorld input { + width: 8em; +} + +span.bgi-age { + margin-right: 4em; +} -span.bgi-age {margin-right: 4em;} -.character-bgi span {margin-right: 4em;} +.character-bgi span { + margin-right: 4em; +} .character-characteristics { width: 21em; @@ -237,7 +258,7 @@ span.stat-damage { } span.stat-damage input, span.special-damage input { - color: #612e2e!important; + color: #612e2e !important; } span.special-name { @@ -276,10 +297,10 @@ svg:hover { } .tabs .item.active { - text-shadow: 0 0 2em #29aae1; - text-decoration: none; - background-color: #29aae1; - color: #0d0d0d; + text-shadow: 0 0 2em #29aae1; + text-decoration: none; + background-color: #29aae1; + color: #0d0d0d; } .character-tabs .tabs { @@ -372,7 +393,7 @@ svg:hover { margin-top: -2em; } -.skills div>div:nth-of-type(odd) { +.skills div > div:nth-of-type(odd) { background: #0d0d0d; } @@ -434,6 +455,7 @@ span.mini-dice { text-align: right; margin-left: 1em; } + .skill-total { text-align: center; } @@ -444,7 +466,6 @@ span.mini-dice { } - .resource-label { padding-top: 0.2em; } @@ -469,7 +490,9 @@ span.mini-dice { grid-template-areas: ". . ." "Biography Biography Biography"; } -.Biography { grid-area: Biography; } +.Biography { + grid-area: Biography; +} /*-------------------------------------------------*/ @@ -517,6 +540,7 @@ select { width: 1.5em; margin-left: 0em; } + /*--- Item Page ---*/ .item-page textarea { width: 100%; @@ -562,17 +586,16 @@ select { color: #29aae1; } -.item div>div:nth-of-type(odd) { +.item div > div:nth-of-type(odd) { background: #0d0d0d; } -a.item-control:hover{ +a.item-control:hover { color: #00e5ff; text-shadow: 0 0 5px #29aae1; } - .item-page input[type="text"], input[type="number"] input[type="password"], input[type="datetime-local"] { background: rgba(0, 0, 0, 0.21); margin: 0; @@ -595,13 +618,21 @@ a.item-control:hover{ margin-bottom: 0.4em; } -.item-tl {margin-top: 0.5em;} +.item-tl { + margin-top: 0.5em; +} -.item-qty {margin-top: 0.5em;} +.item-qty { + margin-top: 0.5em; +} -.item-weight {margin-top: 0.5em;} +.item-weight { + margin-top: 0.5em; +} -.item-descr {margin-top: 0.5em;} +.item-descr { + margin-top: 0.5em; +} .item-descr .editor { height: calc(100px); @@ -642,7 +673,7 @@ a.item-control:hover{ } .dice-tooltip .dice-rolls .roll.d6 { - background-image: url(../assets/chatlog/d6.svg)!important; + background-image: url(../assets/chatlog/d6.svg) !important; } .dice-tooltip .dice-rolls .roll.max { @@ -660,7 +691,7 @@ a.item-control:hover{ line-height: 24px; float: left; margin-right: 1px; - background-image: url(../assets/chatlog/d6.svg)!important; + background-image: url(../assets/chatlog/d6.svg) !important; background-repeat: no-repeat; background-size: 24px 24px; font-size: 16px; @@ -764,7 +795,9 @@ form .notes, form .hint { border-color: #00e5ff; } -option {background-color: #000;} +option { + background-color: #000; +} .window-app .window-header { flex: 0 0 30px; @@ -779,7 +812,7 @@ option {background-color: #000;} .app { max-height: 100%; - background-image: url(../assets/bg2.jpg)!important; + background-image: url(../assets/bg2.jpg) !important; background-repeat: repeat-x !important; border-radius: 5px; box-shadow: 0 0 20px #000; @@ -820,7 +853,9 @@ option {background-color: #000;} color: #95b6ca; } -#sidebar-tabs > .item:hover {color: #00e5ff; } +#sidebar-tabs > .item:hover { + color: #00e5ff; +} .sidebar-tab .directory-list .directory-item.context, .sidebar-tab .directory-list .directory-item.active { border-color: #29aae1; @@ -895,6 +930,7 @@ option {background-color: #000;} #hotbar .macro:hover { box-shadow: 0 0 10px #29aae1 inset; } + #hotbar .macro.active:hover { border: 1px solid #00e5ff; } @@ -902,7 +938,7 @@ option {background-color: #000;} /* EDITOR */ .editor { - height: calc(100px); + height: calc(75px); background: rgba(0, 0, 0, 0.51); color: #207ab7; @@ -917,7 +953,9 @@ option {background-color: #000;} fill: #29aae1; } -.tox .tox-tbtn:hover svg{fill:#00e5ff !important} +.tox .tox-tbtn:hover svg { + fill: #00e5ff !important +} .tox .tox-toolbar, .tox .tox-toolbar__overflow, .tox .tox-toolbar__primary { @@ -952,4 +990,9 @@ option {background-color: #000;} background: rgba(215, 246, 253, 0.35); } +.ol-no-indent { + list-style: none; + padding-left: 0; +} + /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vdHdvZHNpeC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxnQ0FBZ0M7QUFDbEM7O0FBRUEsa0NBQWtDOztBQUVsQztJQUNJLHVDQUF1QztJQUN2Qyx3REFBd0Q7SUFDeEQsc0NBQXNDO0lBQ3RDLGdDQUFnQztJQUNoQyx5QkFBeUI7QUFDN0I7O0FBRUE7SUFDSSxxQkFBcUI7SUFDckIsWUFBWTtBQUNoQjs7QUFFQTtJQUNJLGdCQUFnQjtJQUNoQixnQ0FBZ0M7QUFDcEM7O0FBRUE7SUFDSSx1QkFBdUI7SUFDdkIsZUFBZTtBQUNuQjs7O0FBR0E7SUFDSSwrQkFBK0I7SUFDL0IsU0FBUztJQUN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QtY2hpbGQ6aG92ZXIge1xyXG4gICAgbWFyZ2luLXJpZ2h0OiAwO1xyXG4gICAgY29sb3I6ICMwMGU1ZmY7XHJcbiAgICBib3JkZXItY29sb3I6ICMwMGU1ZmY7XHJcbn1cclxuXHJcbm9wdGlvbiB7YmFja2dyb3VuZC1jb2xvcjogIzAwMDt9XHJcbiJdLCJzb3VyY2VSb290IjoiIn0=*/ diff --git a/static/template.json b/static/template.json index 51f9192af..847762a3b 100644 --- a/static/template.json +++ b/static/template.json @@ -5,7 +5,7 @@ ], "traveller": { "name": "name", - "homeworld": "", + "homeWorld": "", "species": "", "age": { "value": 18, @@ -16,6 +16,11 @@ "value": 0, "min": 0 }, + "contacts": "", + "allies": "", + "enemies": "", + "description": "", + "bio": "", "characteristics": { "strength": { "value": 0, @@ -67,7 +72,7 @@ "mod": 0 } }, - "jackofalltrades": { + "jackOfAllTrades": { "label": "Jack of All Trades", "value": 0, "max": 9 @@ -902,11 +907,7 @@ "mod": 0, "characteristic": "strength" } - }, - "contacts": "", - "allies": "", - "enemies": "", - "bio":"Background Information" + } } }, "Item": { @@ -919,12 +920,12 @@ "templates": { "gearTemplate": { "name": "", - "techlevel": 0, + "techLevel": 0, "description": "Item Information", "quantity": 1, "weight": 0, "traits": [], - "equiped": { + "equipped": { "weight": 0 } }, @@ -934,9 +935,9 @@ "weaponTemplate": { "range": 0, "damage": 0, - "damagebonus": 0, - "magazinesize": 0, - "magazinecost": 0, + "damageBonus": 0, + "magazineSize": 0, + "magazineCost": 0, "type": "weapon" }, "armorTemplate": { diff --git a/static/templates/actors/actor-sheet.html b/static/templates/actors/actor-sheet.html index 2ced9d46c..b154d0b27 100644 --- a/static/templates/actors/actor-sheet.html +++ b/static/templates/actors/actor-sheet.html @@ -1,91 +1,105 @@
-
-
-
- -
+
+
? +
+ +
Character image
+
+

+
+ Age: + Gender: + Species: + Home world: +
+ +
+
+ STR roll attribute + + +
-

-
- Age: - Gender: - Species: - Homeworld: +
+ DEX roll attribute + + +
- -
-
- STR - - - -
-
- DEX - - - -
-
- END - - - -
-
- INT - - - -
-
- EDU - - - -
-
- SOC - - - -
-
- PSI - - - -
+
+ END roll attribute + + + +
+
+ INT roll attribute + + + +
+
+ EDU roll attribute + + + +
+
+ SOC roll attribute + + + +
+
+ PSI roll attribute + + +
+
- {{!-- Sheet Body --}} -
+ {{!-- Sheet Body --}} +
- {{!-- Sheet Tab Navigation --}} -
- -
+ {{!-- Sheet Tab Navigation --}} +
+ +
- {{!-- Skills Tab --}} -
+ {{!-- Skills Tab --}} +
{{> "systems/twodsix/templates/actors/parts/actor-skills.html"}} -
+
- {{!-- Owned Items Tab --}} -
+ {{!-- Owned Items Tab --}} +
{{> "systems/twodsix/templates/actors/parts/actor-items.html"}} -
+
- {{!-- Biography Tab --}} -
+ {{!-- Biography Tab --}} +
{{> "systems/twodsix/templates/actors/parts/actor-info.html"}} -
+
-
-
+
+
diff --git a/static/templates/actors/parts/actor-info.html b/static/templates/actors/parts/actor-info.html index c5a6c621f..bb0f52747 100644 --- a/static/templates/actors/parts/actor-info.html +++ b/static/templates/actors/parts/actor-info.html @@ -1,23 +1,27 @@ -
-
-
- Contacts: - {{{editor content=data.contacts target="data.contacts" button=true owner=owner editable=editable}}} +
+
+ Description: + {{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}} +
+ +
+ Bio: + {{{editor content=data.bio target="data.bio" button=true owner=owner editable=editable}}} +
-
-
- Allies: - {{{editor content=data.allies target="data.allies" button=true owner=owner editable=editable}}} +
+ Contacts: + {{{editor content=data.contacts target="data.contacts" button=true owner=owner editable=editable}}} -
-
- Enemies: - {{{editor content=data.enemies target="data.enemies" button=true owner=owner editable=editable}}} +
+
+ Allies: + {{{editor content=data.allies target="data.allies" button=true owner=owner editable=editable}}} + +
+
+ Enemies: + {{{editor content=data.enemies target="data.enemies" button=true owner=owner editable=editable}}} -
-
- Description: - {{{editor content=data.bio target="data.bio" button=true owner=owner editable=editable}}} -
diff --git a/static/templates/actors/parts/actor-items.html b/static/templates/actors/parts/actor-items.html index ff5bc9ff2..0351eb5ec 100644 --- a/static/templates/actors/parts/actor-items.html +++ b/static/templates/actors/parts/actor-items.html @@ -1,33 +1,31 @@
-
Name
-
TL
-
Qty
-
Weight
-
Type
-
- -
+
Name
+
TL
+
Qty
+
Weight
+
Type
+
+ +
- {{#each actor.gear as |item id|}} -
-
  • -
    +{{#each actor.gear as |item id|}} +
    +
      +
    1. +

      {{item.name}}

      -

      {{data.techlevel}}

      +

      {{data.techLevel}}

      {{data.quantity}}

      {{data.weight}}

      {{item.type}}

      -
      - - -
      +
      + +
      -
    2. -
    - {{/each}} - - +
    +
  • -
    \ No newline at end of file +
    +{{/each}} diff --git a/static/templates/actors/parts/actor-skills.html b/static/templates/actors/parts/actor-skills.html index f6c2471db..ae37f3284 100644 --- a/static/templates/actors/parts/actor-skills.html +++ b/static/templates/actors/parts/actor-skills.html @@ -1,68 +1,65 @@ -
    - +
    +
    - + {{data.jackofalltrades.value}}
    - -
    +
    -
    Skill Name
    -
    Level
    -
    Modifier
    -
    Total
    -
    Roll
    -
    - {{#each data.skills as |skill key|}} + Skill Name + Level + Modifier + Total + Roll + + {{#each data.skills as |skill key|}} + + {{#if (shouldShowSkill skill @root.options.hideUntrainedSkills)}} - {{#if (shouldShowSkill skill @root.options.hideUntrainedSkills)}} +
    -
    + - - - + - - {{numberFormat (getSkillValueWithJoat skill @root.data.jackofalltrades) decimals=0 sign=true}} + + {{numberFormat (getSkillValueWithJoat skill @root.data.jackofalltrades) decimals=0 sign=true}} {{data.jackofalltrades.value}} - - - {{numberFormat (getTotalSkillValue skill @root.data.jackofalltrades) decimals=0 sign=true}} + - - + {{numberFormat (getTotalSkillValue skill @root.data.jackofalltrades skill.mod) decimals=0 sign=true}} + roll skill -
    - {{/if}} - {{/each}}
    + {{/if}} + {{/each}} +
    diff --git a/static/templates/items/item-sheet.html b/static/templates/items/item-sheet.html index f88828549..52da77a90 100644 --- a/static/templates/items/item-sheet.html +++ b/static/templates/items/item-sheet.html @@ -13,28 +13,28 @@ {{/select}}
    -
    -