Booby Trap labels are now associated with a player nationality.

master
Pacman Ghost 1 year ago
parent 6f070eb17a
commit 51a5bcee90
  1. 11
      vasl_templates/webapp/data/default-template-pack/extras/booby-traps.j2
  2. 2
      vasl_templates/webapp/static/extras.js

@ -3,13 +3,20 @@
<!-- vasl-templates:name Booby Traps -->
<!-- vasl-templates:description Data chart for Booby Traps. -->
<!-- player = {{PLAYER_DROPLIST:|Player}}
<!-- boards = {{BOARDS*:/8|Board(s)}} -->
<head>
<meta charset="utf-8">
<style>
.header {
background: {{PLAYER_COLORS[PLAYER_DROPLIST][0]}} ;
border-bottom: 1px solid {{PLAYER_COLORS[PLAYER_DROPLIST][2]}} ;
padding: 2px 5px ;
font-size: 105% ; font-weight: bold ;
}
.header .level { font-size: 90% ; font-style: italic ; }
{{CSS:common}}
td.header { background: #f0f0f0 ; border-bottom: 1px solid #c0c0c0 ; padding: 2px 5px ; font-size: 105% ; font-weight: bold ; }
</style>
</head>
@ -17,7 +24,7 @@ td.header { background: #f0f0f0 ; border-bottom: 1px solid #c0c0c0 ; padding: 2p
<tr>
<td class="header">
Booby Traps (Level {{LEVEL:A::B::C/3|Level}})
<img src="{{PLAYER_FLAGS[PLAYER_DROPLIST]}}?prefh={{PLAYER_FLAG_SIZE_LARGE}}" width="{{PLAYER_FLAG_SIZE_LARGE}}" height="{{PLAYER_FLAG_SIZE_LARGE}}">&nbsp;Booby Traps <span class="level">(Level {{LEVEL:A::B::C/3|Level}})</span>
<tr>
<td style="padding:2px 5px;">

@ -115,7 +115,7 @@ function _show_extra_template( template_id )
buf.push( "<option>", param.options[j], "</option>" ) ;
buf.push( "</select>" ) ;
} else if ( param.type === "player-droplist" ) {
buf.push( "<select name='_PLAYER_DROPLIST_' style='width:11.5em;'>" ) ;
buf.push( "<select class='param' name='PLAYER_DROPLIST' style='width:11.5em;'>" ) ;
add_player_nats( buf ) ;
buf.push( "</select>" ) ;
} else if ( param.type === "player-color-droplist" ) {

Loading…
Cancel
Save