Compare commits

..

No commits in common. "main" and "0.0.2a" have entirely different histories.
main ... 0.0.2a

6 changed files with 37 additions and 79 deletions

View File

@ -1,3 +1,2 @@
# Ravenous RPG system for Foundry Virtual Tabletop # Ravenous RPG system for Foundry Virtual Tabletop
--------------------- ---------------------
test

View File

@ -1,6 +1,6 @@
# List of tasks at hand # List of tasks at hand
* Designer une feuille de perso * Designer une feuille de perso
* Reverse engineer la facon d'utiliser le meta langage de FVTT ou lire la doc, si on est faible * Reverse engineer la facon d'utiliser le meta language de FVTT ou lire la doc, si on est faible
* Implementer la feuille en html * Implementer la feuille en html
* Implementer les jets de des * Implementer les jets de des
* Implementer les items * Implementer les items

View File

@ -12,7 +12,7 @@
height: 100%; height: 100%;
} }
.vtt_sys_ravenous .sheet-header { .vtt_sys_ravenous .sheet-header {
flex: 0 0 auto; flex: 0 0 100px;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -20,35 +20,26 @@
justify-content: flex-start; justify-content: flex-start;
margin-bottom: 10px; margin-bottom: 10px;
} }
.vtt_sys_ravenous .sheet-header .header-container { .vtt_sys_ravenous .sheet-header .profile-img {
display: grid; flex: 0 0 100px;
grid-template: "a a a" auto "b c d" auto / fit-content(100%) auto auto; height: 100px;
}
.vtt_sys_ravenous .sheet-header .header-container .pc-name {
width: 160px;
margin-right: 10px; margin-right: 10px;
} }
.vtt_sys_ravenous .sheet-header .header-fields {
.vtt_sys_ravenous .sheet-header .header-container .caracs { flex: 1;
display: grid; height: 100px;
grid-area: b;
grid-template: "a a a a" "b b c c" "d d e e" "f f g g" "h h i i" / 30px 50px 30px 50px;
} }
.vtt_sys_ravenous .sheet-header h1.charname {
.vtt_sys_ravenous .sheet-header .header-container .caracs .caracs-header { height: 50px;
grid-area: a; padding: 0px;
align-self: center; margin: 5px 0;
justify-self: center; border-bottom: 0;
text-decoration: underline;
} }
.vtt_sys_ravenous .sheet-header .header-container .caracs input { .vtt_sys_ravenous .sheet-header h1.charname input {
width: 35px; width: 100%;
height: 100%;
margin: 0;
} }
.vtt_sys_ravenous .sheet-header .header-container .caracs label {
}
.vtt_sys_ravenous .resource { .vtt_sys_ravenous .resource {
width: 50%; width: 50%;
height: 40px; height: 40px;

View File

@ -2,7 +2,7 @@
"name": "vtt_sys_ravenous", "name": "vtt_sys_ravenous",
"title": "Ravenous Game System", "title": "Ravenous Game System",
"description": "With ravenous hunger.", "description": "With ravenous hunger.",
"version": "0.0.5h", "version": "0.0.1a",
"minimumCoreVersion": "0.8.9", "minimumCoreVersion": "0.8.9",
"compatibleCoreVersion": "9", "compatibleCoreVersion": "9",
"author": "Cocobug Inc.", "author": "Cocobug Inc.",
@ -20,8 +20,8 @@
"gridUnits": "m", "gridUnits": "m",
"primaryTokenAttribute": "health", "primaryTokenAttribute": "health",
"secondaryTokenAttribute": "power", "secondaryTokenAttribute": "power",
"url": "https://proxy.dandaedre.com/gitea/Dandaedre/vtt_sys_ravenous", "url": "https://github.com/Cocobug/vtt_sys_ravenous/",
"manifest": "https://proxy.dandaedre.com/gitea/Dandaedre/vtt_sys_ravenous/raw/branch/main/system.json", "manifest": "https://raw.githubusercontent.com/Cocobug/vtt_sys_ravenous/0.0.1a/system.json",
"download": "https://proxy.dandaedre.com/gitea/Dandaedre/vtt_sys_ravenous/archive/main.zip", "download": "https://github.com/Cocobug/vtt_sys_ravenous/archive/refs/tags/0.0.1a.zip",
"license": "LICENSE.txt" "license": "LICENSE.txt"
} }

View File

@ -2,16 +2,6 @@
"Actor": { "Actor": {
"types": ["character"], "types": ["character"],
"character": { "character": {
"caracteristics": {
"str": 0,
"agi": 0,
"per": 0,
"chr": 0,
"int": 0,
"wpr": 0,
"psy": 0,
"chn": 0
},
"biography": "", "biography": "",
"health": { "health": {
"value": 10, "value": 10,
@ -23,9 +13,7 @@
"min": 0, "min": 0,
"max": 5 "max": 5
}, },
"attributes": { "attributes": {},
"torque": 1
},
"groups": {} "groups": {}
} }
}, },

View File

@ -2,29 +2,21 @@
{{!-- Sheet Header --}} {{!-- Sheet Header --}}
<header class="sheet-header"> <header class="sheet-header">
<div class="header-container"> <img class="profile-img" src="{{data.img}}" data-edit="img" title="{{data.name}}" height="100" width="100" />
<div><input name="name" class="pc-name" type="text" placeholder="Name" value="{{data.name}}"></div> <div class="header-fields">
<div class="caracs"> <h1 class="charname">
<div class="caracs-header"><h3>Caracteristiques</h3></div> <input name="name" type="text" value="{{data.name}}" placeholder="Name" />
<div><label for="strenght">Str</label></div> </h1>
<div><input name="data.caracteristics.str" id="strenght" type="number" value="{{systemData.caracteristics.str}}"></div> <div class="resource">
<div><label for="intelligence">Int</label></div> <input type="number" name="data.health.value" value="{{systemData.health.value}}"/>
<div><input name="data.caracteristics.int" id="intelligence" type="number" value="{{systemData.caracteristics.int}}"></div> <span> / </span>
<div><label for="agility">Agi</label></div> <input type="number" name="data.health.max" value="{{systemData.health.max}}"/>
<div><input name="data.caracteristics.agi" id="agility" type="number" value="{{systemData.caracteristics.agi}}"></div> </div>
<div><label for="willpower">WP</label></div> <div class="resource">
<div><input name="data.caracteristics.wpr" id="willpower" type="number" value="{{systemData.caracteristics.wpr}}"></div> <input type="number" name="data.power.value" value="{{systemData.power.value}}"/>
<div><label for="psy">Psy</label></div> <span> / </span>
<div><input name="data.caracteristics.psy" id="psy" type="number" value="{{systemData.caracteristics.psy}}"></div> <input type="number" name="data.power.max" value="{{systemData.power.max}}"/>
<div><label for="charisma">Chr</label></div>
<div><input name="data.caracteristics.chr" id="charisma" type="number" value="{{systemData.caracteristics.chr}}"></div>
<div><label for="perception">Per</label></div>
<div><input name="data.caracteristics.per" id="perception" type="number" value="{{systemData.caracteristics.per}}"></div>
<div><label for="chance">Luk</label></div>
<div><input name="data.caracteristics.chn" id="chance" type="number" value="{{systemData.caracteristics.chn}}"></div>
</div> </div>
<div>Zone PV</div>
<div>Zone Armure</div>
</div> </div>
</header> </header>
@ -33,7 +25,6 @@
<a class="item" data-tab="description">Description</a> <a class="item" data-tab="description">Description</a>
<a class="item" data-tab="items">Items</a> <a class="item" data-tab="items">Items</a>
<a class="item" data-tab="attributes">Attributes</a> <a class="item" data-tab="attributes">Attributes</a>
<a class="item" data-tab="torque">Torque</a>
</nav> </nav>
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
@ -120,16 +111,5 @@
</div> </div>
</div> </div>
</div> </div>
{{!-- Torque Tab --}}
<div class="tab attributes" data-group="primary" data-tab="torque">
<header class="attributes-header flexrow">
<span class="attribute-key">{{localize "SIMPLE.AttributeKey"}}</span>
<span class="attribute-value">{{localize "SIMPLE.AttributeValue"}}</span>
<span class="attribute-label">{{localize "SIMPLE.AttributeLabel"}}</span>
<span class="attribute-dtype">{{localize "SIMPLE.AttributeDtype"}}</span>
<a class="attribute-control" data-action="create" data-group="{{group}}"><i class="fas fa-plus"></i></a>
</header>
</div>
</section> </section>
</form> </form>