X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/0272c8638bb34d479a27f30f43a6db5e372b79b3..3febe16dc279b2160d565b015f7ea97814f40f19:/starcraft.plp?ds=sidebyside
diff --git a/starcraft.plp b/starcraft.plp
index 8279df3..dba4a7d 100644
--- a/starcraft.plp
+++ b/starcraft.plp
@@ -1,41 +1,13 @@
-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # you know what you doing
-no warnings 'uninitialized'; # save some useless checks for more legible code
-
-use Shiar_Sheet::KeySigns qw(%sign);
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = "text/html; charset=$sign{charset}";
+<(common.inc.plp)><:
-:>
-
+Html({
+ title => 'starcraft cheat sheet',
+ version => 'v1.0',
+ stylesheet => [qw'light dark circus mono red terse'],
+ keys => 1,
+});
-
-starcraft cheat sheet
-
-
-
-<:
- my %styles = map {$_ => $_} qw(dark circus mono red terse);
- our $style = exists $get{style} && $styles{$get{style}} || 'light';
- printf(qq{\n},
- $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_
- ) for keys %styles;
-
- our $showkeys = exists $get{keys} && $get{keys} ne '0';
- print "\n" unless $showkeys;
- print "\n"
- if $showkeys and $get{keys} eq 'ghost';
:>
-
-
-
-
StarCraft cheat sheet
normal mode (default)
@@ -50,8 +22,10 @@ $header{content_type} = "text/html; charset=$sign{charset}";
<:
-use Shiar_Sheet::Keyboard;
-my $keys = Shiar_Sheet::Keyboard->new({do 'starcraft.inc.pl'});
+use Shiar_Sheet::Keyboard 2;
+my $info = do 'starcraft.eng.inc.pl' or die $@;
+$info->{def} = do 'starcraft.inc.pl';
+my $keys = Shiar_Sheet::Keyboard->new($info);
$keys->map($get{map}) or undef $get{map};
$keys->print_rows($get{rows} || '1 =P1 Z1', [0]);
:>
@@ -94,9 +68,6 @@ $keys->print_rows($get{rows} || '1 =P1 Z1', [0]);
- keyboard map is
<:= $get{map} ? 'set to ' : '' :><:= $keys->{map} :>
-
- ascii mode is
- <:= defined $sign{-ascii} && 'forced ' :><:=
- $sign{-ascii} ? 'on' : 'off' :>
- keys are
<:= $showkeys ? 'always shown' : 'hidden if unassigned' :><:=
!exists $get{keys} && ' by default' :>
@@ -106,12 +77,3 @@ $keys->print_rows($get{rows} || '1 =P1 Z1', [0]);
-
-
-