diff --git a/src/TestPanel.js b/src/TestPanel.js index 118b0e8..f3095a7 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -33,7 +33,7 @@ function EditBox(p) { return () => { clearTimeout(timer1); }; - },[p.edit]) + }) return { if (e.key==="Enter") {p.setEdit(false)} else if (e.key==="Escape") {p.setEdit(false)} @@ -53,7 +53,7 @@ function EditBoxInput(p) { return <>
{setEdit(true)}}> {edit? - + :<>{p.prefix}{p.data}}
@@ -86,11 +86,8 @@ const [author,setauthor] = useState("Player") const [buildName,setbuildName] = useState("Character") const [className,setclassName] = useState("Hunter") const [subclassName,setsubclassName] = useState("Force") -const [level,setLevel] = useState(20) -const [secondaryLevel,setsecondaryLevel] = useState(20) -const [effectPage,setEffectPage]=useState(1) -const [weaponPage,setWeaponPage]=useState(1) -const [statsPage,setStatsPage]=useState(1) +const [level,setLevel] = useState(1) +const [secondaryLevel,setsecondaryLevel] = useState(1) function Class(p) { const CLASSES = p.GetData("class") @@ -118,21 +115,6 @@ function EditableClass(p){ } - -function PageControlButton(p) { - return
  • {p.setCurrentPage(p.page)}} className={(p.currentPage===p.page)?"selected":""}>{p.pageName?p.pageName:p.page}
  • -} - -function PageControl(p) { - var pages = [] - for (var i=0;i) - } - return -} - useEffect(()=>{ if (p.bp>1000) { setbpGraphMax(3000) @@ -157,7 +139,9 @@ useEffect(()=>{

    Basic Information

    +
    + @@ -173,7 +157,7 @@ useEffect(()=>{ @@ -182,7 +166,7 @@ useEffect(()=>{
    Author - {if (level<1) {setLevel(1)} else if (level>20) {setLevel(20)}}} prefix="Lv." setData={setLevel} data={level} type="number"/> +
    - {if (level<1) {setLevel(1)} else if (level>20) {setLevel(20)}}} prefix="Lv." setData={setsecondaryLevel} data={secondaryLevel} type="number"/> +
    @@ -190,12 +174,15 @@ useEffect(()=>{

    Current Effects

    +
    - +
      +
    • 1
    • +
    • 2
    • +

    Effect Name

      -{ - effectPage===1?<>
    • Food Bost Effect +
    • Food Bost Effect
      •  [Meat] Potency +10.0%
      •  [Crisp] Potency to Weak Point +5.0%
      • @@ -211,8 +198,7 @@ useEffect(()=>{
        •  Potency +5.0%
        - :<> -} +
    @@ -220,17 +206,19 @@ useEffect(()=>{

    Equip

    +
    -

    Weapons

    1
    -

    Armor 1

    -

    Armor 2

    -

    Armor 3

    +

    Weapons

    1
    +

    Armor 1

    +

    Armor 2

    +

    Armor 3

    Equipped Weapon

    +

    Resurgir Rifle+40