From b0430639c8bb809dc46252ad240bb883a0937527 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 13 Sep 2008 09:23:34 -0700 Subject: [PATCH] BUGFIX: added missing icons for rules made some very simple icons for displaying the rules Signed-off-by: Arun Persaud --- css/{standard010.css => standard011.css} | 3 + include/game.php | 37 +- include/output.php | 2 +- pics/button/1st-own-card.png | Bin 0 -> 1177 bytes pics/button/5th-card.png | Bin 0 -> 1220 bytes pics/button/9-cards.png | Bin 0 -> 1157 bytes pics/button/no-schweinchen.png | Bin 0 -> 3226 bytes pics/button/no-ten-of-hearts.png | Bin 0 -> 2963 bytes pics/button/rules.svg | 343 ++++++++++++++++++ pics/button/second-schweinchen-after-call.png | Bin 0 -> 1873 bytes pics/button/second-schweinchen.png | Bin 0 -> 1858 bytes pics/button/second-ten-of-hearts.png | Bin 0 -> 1643 bytes pics/button/ten-of-hearts.png | Bin 0 -> 1123 bytes pics/button/two-schweinchen.png | Bin 0 -> 1311 bytes 14 files changed, 382 insertions(+), 3 deletions(-) rename css/{standard010.css => standard011.css} (99%) create mode 100644 pics/button/1st-own-card.png create mode 100644 pics/button/5th-card.png create mode 100644 pics/button/9-cards.png create mode 100644 pics/button/no-schweinchen.png create mode 100644 pics/button/no-ten-of-hearts.png create mode 100644 pics/button/rules.svg create mode 100644 pics/button/second-schweinchen-after-call.png create mode 100644 pics/button/second-schweinchen.png create mode 100644 pics/button/second-ten-of-hearts.png create mode 100644 pics/button/ten-of-hearts.png create mode 100644 pics/button/two-schweinchen.png diff --git a/css/standard010.css b/css/standard011.css similarity index 99% rename from css/standard010.css rename to css/standard011.css index 5e36e22..90abd69 100644 --- a/css/standard010.css +++ b/css/standard011.css @@ -430,6 +430,9 @@ div.session div.sessionscore div{ div.session div.sessionscore:hover div{ display:block; } +div.session img.rulesicon { + height: 1em; +} .scoretable{ height:20em; diff --git a/include/game.php b/include/game.php index 8feda71..b509de3 100644 --- a/include/game.php +++ b/include/game.php @@ -126,8 +126,41 @@ if(myisset('call') && $_REQUEST['call'] == '0' && can_call(0,$me)) if($session) { echo "
\n"; - echo "
Rules (+icons for rules) \n"; - echo "
\n"; + echo "
Rules: "; + switch($RULES['dullen']) + { + case 'none': + echo "\"not\n"; break; + case 'firstwins': + echo "\"ten\n"; break; + case 'secondwins': + echo "\"second\n"; break; + } + switch($RULES['schweinchen']) + { + case 'none': + echo "\"no\n"; break; + case 'both': + echo "\"two\n"; break; + case 'second': + echo "\"second\n"; break; + case 'secondaftercall': + echo "\"second\n"; break; + } + switch($RULES['call']) + { + case '1st-own-card': + echo "\"1st-own-card\"\n"; break; + case '5th-card': + echo "\"5th-card\"\n"; break; + case '9-cards': + echo "\"9-cards\"\n"; break; + } + echo "
\n"; echo " 10ofhearts : {$RULES['dullen']}
\n"; echo " schweinchen: {$RULES['schweinchen']}
\n"; echo " call: {$RULES['call']}
\n"; diff --git a/include/output.php b/include/output.php index 0c75173..db9e2f1 100644 --- a/include/output.php +++ b/include/output.php @@ -270,7 +270,7 @@ function output_header() e-Doko - +