From e5dd48aeb9274a4d760f16d5d3ba4f6a4dd4843f Mon Sep 17 00:00:00 2001 From: heuzef Date: Mon, 16 Mar 2015 19:15:22 +0100 Subject: [PATCH] MAJ interface --- medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml | 10 +- medias/c0f08ae603e364cb554fe71c9fc94ffd/index.php | 134 +++++++++++++++++-- play/action_phone.php | 151 ++++++++++++++++++++++ play/index.php | 27 +++- 4 files changed, 297 insertions(+), 25 deletions(-) create mode 100644 play/action_phone.php diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml index 0735582..e225bf7 100755 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml +++ b/medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml @@ -9,12 +9,12 @@ 0 0 - 0 + 1 0 - 0 - 0 - 0 - 0 + 1 + 3 + 1 + 2 default ... diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/index.php b/medias/c0f08ae603e364cb554fe71c9fc94ffd/index.php index d6f0954..bba490c 100755 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/index.php +++ b/medias/c0f08ae603e364cb554fe71c9fc94ffd/index.php @@ -1,3 +1,42 @@ +'; + } + function button_modif_hp($nom_parametre, $nom_perso, $texte_bouton) + { + echo '
'; + } + function button_modif_xp($nom_parametre, $nom_perso, $texte_bouton) + { + echo '
'; + } + function button_modif_money($nom_parametre, $nom_perso, $texte_bouton) + { + echo '
'; + } + function trans($nom_parametre, $nom_perso, $couleur) + { + echo '
'; + } + function button_modif_attack($nom_parametre, $nom_perso, $texte_bouton) + { + echo '
'; + } + function button_modif_defense($nom_parametre, $nom_perso, $texte_bouton) + { + echo '
'; + } + function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton) + { + echo '
'; + } + function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton) + { + echo '
'; + } +?> + @@ -30,7 +69,7 @@ if(!empty($_GET["view"]))
level; ?>    nom; ?> -
+        level) @@ -56,26 +95,95 @@ if(!empty($_GET["view"]))  xp; ?>     gift; ?>   
+
-
-
ecos->verte; ?>
+ +
+
+ nom, "-"); ?> +
+
+
+
ecos->verte; ?>
+
+
+
+ nom, "+"); ?> +
-
-
ecos->bleue; ?>
+
+
+
+ nom, "-"); ?> +
+
+
+
ecos->bleue; ?>
+
+
+
+ nom, "+"); ?> +
-
-
ecos->jaune; ?>
+
+
+
+ nom, "-"); ?> +
+
+
+
ecos->jaune; ?>
+
+
+
+ nom, "+"); ?> +
-
-
ecos->rouge; ?>
+
+
+
+ nom, "-"); ?> +
+
+
+
ecos->rouge; ?>
+
+
+
+ nom, "+"); ?> +
-
-
ecos->blanche; ?>
+
+
+
+ nom, "-"); ?> +
+
+
+
ecos->blanche; ?>
+
+
+
+ nom, "+"); ?> +
-
-
ecos->noire; ?>
+
+
+
+ nom, "-"); ?> +
+
+
+
ecos->noire; ?>
+
+
+
+ nom, "+"); ?> +
+
+

diff --git a/play/action_phone.php b/play/action_phone.php new file mode 100644 index 0000000..f7f5723 --- /dev/null +++ b/play/action_phone.php @@ -0,0 +1,151 @@ +entry->level<3) { + $xml->entry->level++; +} + +if (isset($_GET['level_down']) && $xml->entry->level>0) { + $xml->entry->level--; +} + +if (isset($_GET['hp_plus']) && $xml->entry->hp<20) { + $xml->entry->hp++; +} + +if (isset($_GET['hp_moins']) && $xml->entry->hp>0) { + $xml->entry->hp--; +} + +if (isset($_GET['xp_plus']) && $xml->entry->xp<99999) { + $xml->entry->xp++; +} + +if (isset($_GET['xp_moins']) && $xml->entry->xp>0) { + $xml->entry->xp--; +} + +if (isset($_GET['xp_plusplus']) && $xml->entry->xp<99989) { + $xml->entry->xp+=10; +} + +if (isset($_GET['xp_moinsmoins']) && $xml->entry->xp>9) { + $xml->entry->xp-=10; +} + +if (isset($_GET['xp_reset'])) { + $xml->entry->xp=0; +} + + +if (isset($_GET['money_plus']) && $xml->entry->money<99999) { + $xml->entry->money+=1; +} + +if (isset($_GET['money_moins']) && $xml->entry->money>0) { + $xml->entry->money--; +} + +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++; +} +if (isset($_GET['eco_verte_moins']) && $xml->entry->ecos->verte>0) { + $xml->entry->ecos->verte--; +} + +if (isset($_GET['eco_bleue_plus']) && $xml->entry->ecos->bleue<5) { + $xml->entry->ecos->bleue++; +} +if (isset($_GET['eco_bleue_moins']) && $xml->entry->ecos->bleue>0) { + $xml->entry->ecos->bleue--; +} + +if (isset($_GET['eco_jaune_plus']) && $xml->entry->ecos->jaune<5) { + $xml->entry->ecos->jaune++; +} +if (isset($_GET['eco_jaune_moins']) && $xml->entry->ecos->jaune>0) { + $xml->entry->ecos->jaune--; +} + +if (isset($_GET['eco_rouge_plus']) && $xml->entry->ecos->rouge<5) { + $xml->entry->ecos->rouge++; +} +if (isset($_GET['eco_rouge_moins']) && $xml->entry->ecos->rouge>0) { + $xml->entry->ecos->rouge--; +} + +if (isset($_GET['eco_blanche_plus']) && $xml->entry->ecos->blanche<5) { + $xml->entry->ecos->blanche++; +} +if (isset($_GET['eco_blanche_moins']) && $xml->entry->ecos->blanche>0) { + $xml->entry->ecos->blanche--; +} + +if (isset($_GET['eco_noire_plus']) && $xml->entry->ecos->noire<5) { + $xml->entry->ecos->noire++; +} + +if (isset($_GET['eco_noire_moins']) && $xml->entry->ecos->noire>0) { + $xml->entry->ecos->noire--; +} + +if (isset($_GET['trans_default'])) { + $xml->entry->trans="default"; +} + +if (isset($_GET['trans_light'])) { + $xml->entry->trans="light"; +} + +if (isset($_GET['trans_dark'])) { + $xml->entry->trans="dark"; +} + +if (isset($_GET['edit_notes'])) { + $xml->entry->notes = $_POST["notes"]; +} + +if (isset($_GET['gift_plus']) && $xml->entry->gift<99999) { + $xml->entry->gift++; +} + +if (isset($_GET['gift_moins']) && $xml->entry->gift>0) { + $xml->entry->gift--; +} + +if (isset($_GET['gift_reset'])) { + $xml->entry->gift=0; +} + +$xml->asXml('../medias/'.$hash.'/'.$nom_modif.'.xml'); +header("location: ../medias/".$hash."/index.php?view=".$_GET['entry']); +?> diff --git a/play/index.php b/play/index.php index 104d82b..2723075 100755 --- a/play/index.php +++ b/play/index.php @@ -51,18 +51,31 @@
-
+
-
+