From 32882cc4a73bc8c3b677b3f9e1863ae7d5c978a4 Mon Sep 17 00:00:00 2001 From: heuzef Date: Sun, 1 Feb 2015 23:42:21 +0100 Subject: [PATCH] modification interface --- css/ecomonde.css | 11 +++ medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml | 21 ----- medias/default/player.xml | 2 + play/action.php | 15 +++ play/gamers.php | 102 ++++++++++----------- play/index.php | 8 ++ 6 files changed, 86 insertions(+), 73 deletions(-) delete mode 100644 medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml diff --git a/css/ecomonde.css b/css/ecomonde.css index 5a1f932..690b0d6 100755 --- a/css/ecomonde.css +++ b/css/ecomonde.css @@ -228,6 +228,17 @@ font-weight: bold; font-size: 18px; text-align:center; + color: #FFD700; + background: #000; +} + +.skill { + float: left; + width: 26px; + height: 24px; + font-weight: bold; + font-size: 18px; + text-align:center; background: #000; color: white; } diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml deleted file mode 100644 index 6a66400..0000000 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/player.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - player - 0 - 10 - 0 - 0 - - 5 - 5 - 5 - 5 - 5 - 5 - - default - ... - 0 - - diff --git a/medias/default/player.xml b/medias/default/player.xml index d3184cc..f597ce7 100755 --- a/medias/default/player.xml +++ b/medias/default/player.xml @@ -6,6 +6,8 @@ 10 0 0 + 0 + 0 0 0 diff --git a/play/action.php b/play/action.php index e51b3df..5d08593 100755 --- a/play/action.php +++ b/play/action.php @@ -60,6 +60,21 @@ if (isset($_GET['money_reset'])) { $xml->entry->money=0; } +if (isset($_GET['attack_up'])) { + $xml->entry->attack++; +} + +if (isset($_GET['attack_down'])) { + $xml->entry->attack--; +} +if (isset($_GET['defense_up'])) { + $xml->entry->defense++; +} + +if (isset($_GET['defense_down'])) { + $xml->entry->defense--; +} + if (isset($_GET['eco_verte_plus']) && $xml->entry->ecos->verte<5) { $xml->entry->ecos->verte++; } diff --git a/play/gamers.php b/play/gamers.php index 7c4d2bc..7b55381 100755 --- a/play/gamers.php +++ b/play/gamers.php @@ -23,7 +23,11 @@ foreach($xml->entry as $entry) { nom; ?>
- nom, "#8128B5"); ?>nom, "#ADDFFF"); ?>nom, "#AAA"); ?> + level !=0) { + trans("trans_dark", $entry->nom, "#8128B5"); ?>nom, "#ADDFFF"); ?>nom, "#AAA"); + } + ?>
@@ -59,48 +63,68 @@ foreach($xml->entry as $entry) {
- nom, ''); ?>nom, "-"); ?>nom, "+"); ?> + nom, "0"); ?>nom, "-"); ?>nom, "+"); ?>
- nom, "-"); ?>nom, "+"); ?> + nom, ''); ?>nom, ''); ?>
- nom, ''); ?>nom, "--"); ?>nom, "-"); ?>nom, "+"); ?>nom, "++"); ?> + nom, ''); ?>nom, "--"); ?>nom, "-"); ?>nom, "+"); ?>nom, "++"); ?>
-
-
- nom, "-"); ?> -
-
-

Lorem ipsum dolor sit amet

-
-
- nom, "+"); ?> -
+
-
- nom, "-"); ?> -
-
-

Lorem ipsum dolor sit amet

-
-
- nom, "+"); ?> -
-
+
+

Attaque

+ nom, ""); ?> + attack+$entry->level); ?> + nom, ""); ?> +
+
+

Défense

+ nom, ""); ?> + defense+$entry->level); ?> + nom, ""); ?> +
+ +
+ nom, "-"); ?> +
+
+
+
ecos->blanche; ?>
+
+
+
+ nom, "+"); ?> +
+

+
+ nom, "-"); ?> +
+
+
+
ecos->noire; ?>
+
+
+
+ nom, "+"); ?> +
+ +
+
nom, "-"); ?>
-
ecos->verte; ?>
+
ecos->verte; ?>
@@ -145,32 +169,6 @@ foreach($xml->entry as $entry) { nom, "+"); ?>
- -
-
- nom, "-"); ?> -
-
-
-
ecos->blanche; ?>
-
-
-
- nom, "+"); ?> -
- -
- nom, "-"); ?> -
-
-
-
ecos->noire; ?>
-
-
-
- nom, "+"); ?> -
-

 gift; ?>

- nom, ""); ?>nom, "-"); ?>nom, "+"); ?> + nom, "0"); ?>nom, "-"); ?>nom, "+"); ?>