From 0b0639dcfd981c9a906a6a52c8a0929d99cb2d94 Mon Sep 17 00:00:00 2001 From: dudleycu Date: Wed, 25 Aug 2021 06:32:45 +0900 Subject: [PATCH 1/3] food buff menu --- src/TestPanel.js | 59 +++++++++++++++++++----------- src/style.css | 95 +++++++++++++++++++++++++++++++++++++----------- 2 files changed, 110 insertions(+), 44 deletions(-) diff --git a/src/TestPanel.js b/src/TestPanel.js index e2e701f..0d5f5fe 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -63,7 +63,7 @@ function PageControl(p) { function Class(p) { const CLASSES = p.GetData("class") const class_obj = CLASSES[p.name] - return CLASSES!=="no data"?class_obj?<>{class_obj.name}:<>:<>Nico + return CLASSES!=="no data"?class_obj?<>{class_obj.name}:<>:<>- } function EditableClass(p){ @@ -308,6 +308,7 @@ const [effectPage,setEffectPage] = useState(1) const [weaponPage,setWeaponPage] = useState(1) const [statPage,setStatPage] = useState(1) +const [foodMenuWindowOpen,setFoodMenuWindowOpen] = useState(false) const [classSelectWindowOpen,setClassSelectWindowOpen] = useState(false) const [classSkillTreeWindowOpen,setClassSkillTreeWindowOpen] = useState(false) const [treePage,setTreePage] = useState(1) @@ -369,24 +370,24 @@ useEffect(()=>{

Basic Information

-
Author
-
Build Name
-
{setClassSelectWindowOpen(true)}}>Class
-
{setClassSkillTreeWindowOpen(true)}}>Sub-Class
+
Author
+
Build Name
+
{setClassSelectWindowOpen(true)}}>Class
+
{setClassSkillTreeWindowOpen(true)}}>Sub-Class
-
Battle Power
{p.bp}
 
-
HP
{p.hp}
 
-
PP
{p.pp}
 
-
Attack
{p.statDisplayAtk}
 
-
Defense
{p.def}
 
- -
Weapon Up
-
 +{(p.weaponUp1*100).toFixed(1)}%
- +{(p.weaponUp3*100).toFixed(1)}%
-
 +{(p.weaponUp2*100).toFixed(1)}%
- -
Ailment Resist.
+
Battle Power
{p.bp}
 
+
HP
{p.hp}
 
+
PP
{p.pp}
 
+
Attack
{p.statDisplayAtk}
 
+
Defense
{p.def}
 
+ +
Weapon Up
+
+{(p.weaponUp1*100).toFixed(1)}%
+ +{(p.weaponUp3*100).toFixed(1)}%
+
+{(p.weaponUp2*100).toFixed(1)}%
+ +
Ailment Resist.
{(p.burnResist*100).toFixed(1)}%
{(p.shockResist*100).toFixed(1)}%
@@ -399,7 +400,7 @@ useEffect(()=>{ {(p.poisonResist*100).toFixed(1)}%
-
Damage Resist.
{(p.damageResist*100).toFixed(1)}%
+
Damage Resist.
{(p.damageResist*100).toFixed(1)}%
@@ -407,7 +408,7 @@ useEffect(()=>{

Current Effects

- {effectPage===1?<>

Effect Name