Added an extras template for Kakazu Ridge.

master
Pacman Ghost 4 years ago
parent d24c854387
commit 6b0d492121
  1. 48
      vasl_templates/webapp/data/default-template-pack/extras/kakazu-ridge-cave-complexes.j2
  2. 5
      vasl_templates/webapp/static/css/tabs-extras.css
  3. 2
      vasl_templates/webapp/static/extras.js

@ -0,0 +1,48 @@
<html> <!-- vasl-templates:id {{SNIPPET_ID}} -->
<!-- vasl-templates:name Kakazu Ridge -->
<!-- vasl-templates:description Generates a box to hold units hidden away in a Cave Complex. -->
<head>
<style>
{{CSS:common}}
/* {{CAVE_COMPLEX:Kakazu West::Kakazu Saddle::Kakazu Center::Kakazu Front::Kakazu Reverse::Kakazu East::Kakazu Village::(other)|Cave Complex}} */
.box {
width: {{WIDTH:270px/5|Width}} ;
height: {{HEIGHT:150px/5|Height}} ;
border: 1px solid #ffdb00 ;
color: #404040 ;
}
.header { background: #fff200 ; padding: 2px 5px ; }
.hexes { font-size: 90% ; font-style: italic ; color: #606060 ; }
</style>
</head>
<div class="box">
<div class="header">
{% if CAVE_COMPLEX == "Kakazu West" %}
{{CAVE_COMPLEX}} (15)
<div class="hexes"> E10, F10-12, G10-14, H10-14, I11-12 <div>
{% elif CAVE_COMPLEX == "Kakazu Saddle" %}
{{CAVE_COMPLEX}} (12)
<div class="hexes"> J11-12, K11-14, L10-14, M9-13, N8-12 </div>
{% elif CAVE_COMPLEX == "Kakazu Center" %}
{{CAVE_COMPLEX}} (20)
<div class="hexes"> N13, O9-13, P8-12, Q8-13, R7-9 </div>
{% elif CAVE_COMPLEX == "Kakazu Front" %}
{{CAVE_COMPLEX}} (20)
<div class="hexes"> R10-11, S8-12, T8-12, U9-12, V8-12, W9-12, X9-11 </div>
{% elif CAVE_COMPLEX == "Kakazu Reverse" %}
{{CAVE_COMPLEX}} (15)
<div class="hexes"> R12-13, S13-15, T13-15, U13-15, V13 </div>
{% elif CAVE_COMPLEX == "Kakazu East" %}
{{CAVE_COMPLEX}} (15)
<div class="hexes"> W13, X12-13, Y11-14, Z11-14, AA11-14, BB13 </div>
{% elif CAVE_COMPLEX == "Kakazu Village" %}
{{CAVE_COMPLEX}} (12)
<div class="hexes"> L15-17, M14-18, N14-18, O15-19, P15-19, Q16-20, R16-19, S17-19 </div>
{% else %}
Cave Complex
{%endif%}
</div>
</div>

@ -26,3 +26,8 @@
#tabs-extras .right-panel .footer td { vertical-align: top ; }
#tabs-extras .right-panel .footer td.key, td.val { padding: 0.2em 0.5em; border: 1px dotted #ccc ; }
#tabs-extras .right-panel .footer td.key { background: #f8f8f8 ; font-weight: bold ; }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#tabs-extras .right-panel [name="extras/kakazu-ridge-cave-complexes"] .select2 { width: 10em !important ; }
#tabs-extras .right-panel [name="extras/victory-points"] .select2 { width: 9em !important ; }

@ -71,7 +71,7 @@ function _show_extra_template( template_id )
if ( template_info.description )
buf.push( "<div class='description'>", template_info.description, "</div>" ) ;
if ( template_info.params.length > 0 ) {
buf.push( "<table>" ) ;
buf.push( "<table name='" + template_info.template_id + "'>" ) ;
for ( var i=0 ; i < template_info.params.length ; ++i ) {
buf.push( "<tr>" ) ;
var display_name = template_info.params[i].caption || template_info.params[i].name ;

Loading…
Cancel
Save