style: common cat class for category table headers
[sheet.git] / starcraft.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'starcraft cheat sheet',
5         version => 'v1.0',
6         stylesheet => [qw'light dark circus mono red terse'],
7         keys => 1,
8 });
9
10 :>
11 <h1>StarCraft cheat sheet</h1>
12
13 <h2>normal mode (default)</h2>
14
15 <ul id="rows">
16
17 <li class="row">
18         <ul class="keys omni">
19         <li class="mv chr27" onclick="setmode()"><b>Esc</b> normal mode
20                 <!-- not as static anymore, but never bothered; just see ^[ -->
21         </ul>
22 </li>
23
24 <:
25 use Shiar_Sheet::Keyboard 2;
26 my $info = do 'starcraft.eng.inc.pl' or die $@;
27 $info->{def} = do 'starcraft.inc.pl';
28 my $keys = Shiar_Sheet::Keyboard->new($info);
29 $keys->map($get{map}) or undef $get{map};
30 $keys->print_rows($get{rows} || '1 =P1 Z1', [0]);
31 :>
32 </ul>
33
34 <hr>
35
36 <div class="help">
37         <div class="left">
38                 <dl class="legend legend-types">
39                 <dt class="ci">ability
40                         <dd>Unit action available after upgrade.
41                 <dt class="pm">action
42                         <dd>Default unit action.
43                 <dt class="po">
44                         <dd>
45                 <dt class="co">unit
46                         <dd>Unit available at all times.
47                 <dt class="cp">dep unit
48                         <dd>Unit with dependencies.
49                 <dt class="mi">
50                         <dd>
51                 <dt class="mo">build
52                         <dd>Unit producing construction.
53                 <dt class="mv">upgrade
54                         <dd>Building or research providing unit upgrade.
55                 <dt class="me">other
56                         <dd>Miscellaneous facility.
57                 </dl>
58         </div>
59
60         <div class="right">
61                 <dl class="legend legend-options">
62                 <dt>key<:= $sign{arg} :>
63                         <dd>Commands with a dot need a char argument afterwards.
64                 <dt>key<:= $sign{args} :>
65                         <dd>Commands with two dots require variable arguments afterwards.
66                 </dl>
67
68                 <ul class="legend legend-set">
69                 <li>keyboard <strong>map</strong> is
70                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
71                 <li><strong>keys</strong> are
72                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
73                                 !exists $get{keys} && ' by default' :>
74                 <li>default <strong>style</strong> is
75                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
76                 </ul>
77         </div>
78 </div>
79