From e3082036b52debaf4b6813f833fde24b39b53aa8 Mon Sep 17 00:00:00 2001 From: Thalar Date: Mon, 13 Jul 2020 17:49:37 +0200 Subject: [PATCH] [NOC] Update combat helper (#6936) --- NOC/NOC.css | 199 ++++++++++++++--------------- NOC/NOC.html | 348 ++++++++++++++++++++++++--------------------------- 2 files changed, 267 insertions(+), 280 deletions(-) diff --git a/NOC/NOC.css b/NOC/NOC.css index 5962902812..0f24d84dad 100644 --- a/NOC/NOC.css +++ b/NOC/NOC.css @@ -175,8 +175,6 @@ /* -= FICHE PNJ =- */ - - .sheet-section-PNJ { background-image:url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/NOC/images/fondmain.jpg"); background-repeat: repeat-y; @@ -190,10 +188,6 @@ max-width:605px; } -.sheet-section-PNJ span { - font-size:14px; -} - .sheet-rollPJ, .sheet-input-jetdps-PJ, .sheet-CHinitiative-PJ, @@ -691,7 +685,7 @@ span.sheet-afficheflag { background-repeat: no-repeat; border: 0px solid black; box-shadow:none; - z-index:999; + z-index:998; position:relative; } @@ -718,6 +712,11 @@ span.sheet-afficheflag { font-size:20px; } +.charsheet .repcontrol_del { + z-index:999; + position:relative; +} + .charsheet .repcontrol_add:hover, .charsheet .repcontrol_edit:hover { background: #326097; @@ -2631,23 +2630,16 @@ span.sheet-afficheflag { margin-left: 10px; margin-top: 75px; } + .sheet-CHdivcombobox { - width: 250px; + width: 480px; height: 140px; position: absolute; z-index: 5; margin-left: -5px; - margin-top: 105px; - vertical-align: middle; -} -.sheet-CHdivcheckbox { - width: 250px; - height: 150px; - position: absolute; - z-index: 5; - margin-left: 225px; - margin-top: 105px; + margin-top: 115px; vertical-align: middle; + padding-left:10px; } .sheet-CHdivbonusmalus { @@ -2655,8 +2647,8 @@ span.sheet-afficheflag { height: 75px; position: absolute; z-index: 5; - margin-left: 240px; - margin-top: 15px; + margin-left: 280px; + margin-top: 10px; } .sheet-CHtotalBM { @@ -2664,20 +2656,10 @@ span.sheet-afficheflag { height: 60px; position: absolute; z-index: 5; - margin-top: 230px; + margin-top: 5px; text-align: center; } -.sheet-CHdescription { - text-align: right; - vertical-align: middle; - color: #514842; - display:inline-block; - vertical-align: middle; - font-size: 14px; - font-family: "Courier New", Courier, monospace; - font-weight: bold; -} .sheet-CHdescriptionBM { width: 170px; @@ -2685,23 +2667,55 @@ span.sheet-afficheflag { color: #514842; display:inline-block; vertical-align: middle; + font-weight: bold; + font-size: 14px; } -.sheet-CHdescriptioncombobox { - text-align: right; - margin-left: 15px; +.sheet-CHspan, +.sheet-CHspan2 { + color: #514842; + vertical-align: middle; + font-size: 14px; + font-family: "Courier New", Courier, monospace; + font-weight: bold; + text-align: left; + margin-left: 2px; + border: 0 solid black; + background:transparent; + max-height:22px; +} +.sheet-CHspan { + display: none; } -.sheet-CHdescriptioncheckbox { - text-align: right; - width: 170px; +.sheet-CHcombo, +.sheet-CHcombo2 { + color: #514842; + vertical-align: middle; + font-size: 14px; + width: auto; + margin-left: 0px; + margin-bottom: 0px; + font-family: "Courier New",Courier,monospace; + font-weight: bold; + border: 0 solid black; + background:transparent; + max-height:22px; + + padding:0px; } - +.sheet-CHcombo { + display:none; +} + .sheet-CHdescriptionroll { + color: #514842; + font-weight: bold; text-align: right; - font-size: 15px; + font-size: 22px; margin-left: 10px; - /* font-family: 'Special Elite'; */ + font-family:caveat; + margin-right:5px; } .sheet-CHdescriptionbonusmalus { @@ -2709,49 +2723,16 @@ span.sheet-afficheflag { } .sheet-CHdescriptionbonusmalustitle { + color: #514842; + vertical-align: middle; + font-family: "Courier New",Courier,monospace; + font-weight: bold; display: inline; font-size: 20px; + display:none; + margin-left:30px; } - -.sheet-CHportee { - width: 145px; - margin-left: 5px; - margin-bottom: 5px; - border: 2px ridge; - border-color: #685C52 #685C52 #616B6F #616B6F; - font-family: "Courier New",Courier,monospace; - font-weight: bold; -} - -.sheet-CHNombreopposants { - width: 50px; - margin-left: 5px; - margin-bottom: 5px; - border: 2px ridge; - border-color: #685C52 #685C52 #616B6F #616B6F; - font-family: "Courier New",Courier,monospace; - font-weight: bold; -} - -.sheet-CHcouvert { - width: 80px; - margin-left: 5px; - margin-bottom: 5px; - border: 2px ridge; - border-color: #685C52 #685C52 #616B6F #616B6F; - font-family: "Courier New",Courier,monospace; - font-weight: bold; -} - -.sheet-CHconditions { - width: 135px; - margin-left: 5px; - margin-bottom: 5px; - border: 2px ridge; - border-color: #685C52 #685C52 #616B6F #616B6F; - font-family: "Courier New",Courier,monospace; - font-weight: bold; -} + .sheet-CHinitiative, .sheet-CHesquive, @@ -2760,32 +2741,49 @@ span.sheet-afficheflag { vertical-align: middle; } -.sheet-CHbonusmalus { - width: 35px; - height: 35px; +.sheet-CHbonusmalus, +.sheet-CHbonusmalusdsbl { + height: auto; min-height:35; font-size: 20px; text-align: center; - margin-left: 5px; border: 2px ridge; border-color: #685C52 #685C52 #616B6F #616B6F; font-family: "Courier New",Courier,monospace; font-weight: bold; } +.sheet-CHbonusmalus { + margin-left: 50px; + max-width: 55px; +} + .sheet-CHbonusmalusdsbl { color: grey; - display:inline; + display:none; + max-width: 40px; } - -.sheet-CHcheckbox { - margin-left: 5px; - width: 65px; - border: 2px ridge; - border-color: #685C52 #685C52 #616B6F #616B6F; - font-family: "Courier New",Courier,monospace; - font-weight: bold; + +.sheet-CHactioncombatcontact:checked ~ .sheet-CHcontact { + display : inline-block; } +.sheet-CHactioncombatcontact:checked ~ .sheet-CHtotalBM * input.sheet-CHcontact { + display : inline-block; +} +.sheet-CHactioncombatdistance:checked ~ .sheet-CHdistance { + display : inline-block; +} +.sheet-CHactioncombatcontact:checked ~ .sheet-CHtotalBM * input.sheet-CHdistance { + display : inline-block; +} +.sheet-CHactioncombatdef:checked ~ .sheet-CHdef { + display : inline-block; +} +.sheet-CHactioncombatdef:checked ~ .sheet-CHtotalBM * input.sheet-CHdef { + display : inline-block; +} + + /* NOTES */ .sheet-section-notes { @@ -3107,7 +3105,8 @@ span.sheet-afficheflag { .sheet-rolltemplate-noc-relance .inlinerollresult, .sheet-rolltemplate-noc-relancedegat .inlinerollresult, .sheet-rolltemplate-noc-noirceur .inlinerollresult, -.sheet-rolltemplate-noc-fiel .inlinerollresult { +.sheet-rolltemplate-noc-fiel .inlinerollresult, +.sheet-rolltemplate-noc-espoir .inlinerollresult { background-color: transparent; border: none; } @@ -3127,7 +3126,8 @@ span.sheet-afficheflag { .sheet-rolltemplate-noc-relance .sheet-result .inlinerollresult, .sheet-rolltemplate-noc-relancedegat .sheet-result .inlinerollresult, .sheet-rolltemplate-noc-noirceur .sheet-result .inlinerollresult, -.sheet-rolltemplate-noc-fiel .sheet-result .inlinerollresult { +.sheet-rolltemplate-noc-fiel .sheet-result .inlinerollresult +.sheet-rolltemplate-noc-espoir .sheet-result .inlinerollresult { background-color: transparent; color: #FFFFFF; border: none; @@ -3137,7 +3137,8 @@ span.sheet-afficheflag { .sheet-rolltemplate-noc-attaque .inlinerollresult.fullcrit, .sheet-rolltemplate-noc-relance .inlinerollresult.fullcrit, .sheet-rolltemplate-noc-relancedegat .inlinerollresult.fullcrit, -.sheet-rolltemplate-noc-attaque .inlinerollquantique.fullcrit { +.sheet-rolltemplate-noc-attaque .inlinerollquantique.fullcrit, +.sheet-rolltemplate-noc-espoir .inlinerollquantique.fullcrit { color: #3FB315; border: none; } @@ -3146,7 +3147,8 @@ span.sheet-afficheflag { .sheet-rolltemplate-noc-attaque .inlinerollresult.fullfail, .sheet-rolltemplate-noc-relance .inlinerollresult.fullfail, .sheet-rolltemplate-noc-relancedegat .inlinerollresult.fullfail, -.sheet-rolltemplate-noc-attaque .inlinerollquantique.fullfail { +.sheet-rolltemplate-noc-attaque .inlinerollresult.fullfail, +.sheet-rolltemplate-noc-espoir .inlinerollresult.fullfail { color: red; border: none; } @@ -3154,7 +3156,8 @@ span.sheet-afficheflag { .sheet-rolltemplate-noc-comp .inlinerollresult.importantroll, .sheet-rolltemplate-noc-attaque .inlinerollresult.importantroll, .sheet-rolltemplate-noc-relance .inlinerollresult.importantroll, -.sheet-rolltemplate-noc-relancedegat .inlinerollresult.importantroll { +.sheet-rolltemplate-noc-relancedegat .inlinerollresult.importantroll, +.sheet-rolltemplate-noc-espoir .inlinerollresult.importantroll { color: #3FB315; border: none; } diff --git a/NOC/NOC.html b/NOC/NOC.html index 10c7b00955..8111489acb 100644 --- a/NOC/NOC.html +++ b/NOC/NOC.html @@ -79,19 +79,13 @@ {{action}}
- {{#rollTotal() result 1}} - 1 succès - {{/rollTotal() result 1}} - {{#rollTotal() result 2}} - 2 succès - {{/rollTotal() result 2}} - {{#rollTotal() result 3}} - 3 succès - {{/rollTotal() result 3}} - {{#rollLess() result 1}} - Echec - {{/rollLess() result 1}} + {{result}} succès
+
+ {{#rollWasFumble() result}} + !! Fiel détecté !! + {{/rollWasFumble() result}} +
@@ -141,19 +135,17 @@
{{#mod_num1}} - Malus domaines ({{mod_num1}})
+ Malus domaines ({{mod_num1}})
{{/mod_num1}} {{#mod_num2}} - Malus talents ({{mod_num2}}) + Malus talents ({{mod_num2}}) {{/mod_num2}} + {{#diff}} + Difficulté ({{diff}}) + {{/diff}}
- {{#rollGreater() result 0}} - {{result}} succès - {{/rollGreater() result 0}} - {{#rollLess() result 1}} - Echec
({{result}})
- {{/rollLess() result 1}} + {{result}} succès {{#rollWasCrit() result}} {{relanceJet}} {{/rollWasCrit() result}} @@ -189,22 +181,17 @@
{{#mod_num1}} - Malus domaines ({{mod_num1}})
+ Malus domaines ({{mod_num1}})
{{/mod_num1}} {{#mod_num2}} - Malus talents ({{mod_num2}}) + Malus talents ({{mod_num2}}) {{/mod_num2}} {{#mod_num3}} - Malus/Bonus ({{mod_num3}}) + Difficulté ({{mod_num3}}) {{/mod_num3}}
- {{#rollGreater() result 0}} - {{result}} succès - {{/rollGreater() result 0}} - {{#rollLess() result 1}} - Echec
({{result}})
- {{/rollLess() result 1}} + {{result}} succès {{#rollWasCrit() result}} {{relanceJet}} {{/rollWasCrit() result}} @@ -457,13 +444,13 @@ - + - -
+ +
-
+
@@ -550,13 +537,13 @@
- + - -
+ +
+ Ajouter Bonus/Malus
- Initiative - Esquive - Parade - Relance D10 + Initiative + Esquive + Parade + Relance D10
-
- Portée - -
-
- Opposants - -
-
- Couvert - -
-
- Conditions - -
-
-
-
- Aversaire utilise son couvert - -
-
- Attaque préparée - -
-
- L'adversaire s'est jeté au sol - -
-
-
- Total bonus/malus en attaque
- Contact - Tir -
-
+ Vous + + + +
+ ...dans des conditions +
+ ...et l'adversaire + , + , + est aidé par + +
+
+ Le seuil de difficulté est de + + + + + +
IDENTITE
@@ -1292,7 +1267,7 @@
-
+
@@ -1304,10 +1279,10 @@
- + -
+
+ Ajouter Bonus/Malus
- Initiative - Esquive - Parade - Relance D10 + Initiative + Esquive + Parade + Relance D10
-
- Portée - + + + + + + + +
+ ...dans des conditions -
-
- Opposants - + + + , + , + est aidé par + -
-
- Couvert - -
-
- Conditions - -
+
+
+ Le seuil de difficulté est de + + +
-
-
- Adversaire utilise son couvert - -
-
- Attaque préparée - -
-
- Adversaire s'est jeté au sol - -
-
-
- Total bonus/malus en attaque
- Contact - Tir -
@@ -1467,10 +1429,10 @@ - + -
+