Update the Simple Worldbuilding system for compatibility with 0.5.6

This commit is contained in:
Andrew 2020-05-12 18:08:48 -07:00
parent d405a18f53
commit d66a64b939
5 changed files with 12 additions and 11 deletions

View file

@ -11,7 +11,8 @@ export class SimpleActorSheet extends ActorSheet {
template: "systems/worldbuilding/templates/actor-sheet.html",
width: 600,
height: 600,
tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}]
tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}],
dragDrop: [{dragSelector: ".item-list .item", dropSelector: null}]
});
}

View file

@ -72,26 +72,26 @@
.worldbuilding .editor-content {
height: 100%;
}
.worldbuilding .items-list {
.worldbuilding .item-list {
list-style: none;
margin: 7px 0;
padding: 0;
overflow-y: auto;
}
.worldbuilding .items-list .item {
.worldbuilding .item-list .item {
height: 30px;
line-height: 24px;
padding: 3px 0;
border-bottom: 1px solid #BBB;
}
.worldbuilding .items-list .item img {
.worldbuilding .item-list .item img {
flex: 0 0 24px;
margin-right: 5px;
}
.worldbuilding .items-list .item-name {
.worldbuilding .item-list .item-name {
margin: 0;
}
.worldbuilding .items-list .item-controls {
.worldbuilding .item-list .item-controls {
flex: 0 0 36px;
}
.worldbuilding .attributes-header {

View file

@ -80,7 +80,7 @@
}
/* Items List */
.items-list {
.item-list {
list-style: none;
margin: 7px 0;
padding: 0;

View file

@ -2,9 +2,9 @@
"name": "worldbuilding",
"title": "Simple World-Building",
"description": "A minimalist game system with very simple Actor and Item models to support free-form system agnostic gameplay.",
"version": 0.35,
"minimumCoreVersion": "0.5.2",
"compatibleCoreVersion": "0.5.5",
"version": 0.36,
"minimumCoreVersion": "0.5.6",
"compatibleCoreVersion": "0.5.7",
"templateVersion": 2,
"author": "Atropos",
"esmodules": ["module/simple.js"],

View file

@ -35,7 +35,7 @@
{{!-- Owned Items Tab --}}
<div class="tab items" data-group="primary" data-tab="items">
<ol class="items-list">
<ol class="item-list">
{{#each actor.items as |item id|}}
<li class="item flexrow" data-item-id="{{item._id}}">
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24"/>