From 18c058a111006df28340e24d7d421f69da8c0f39 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Thu, 19 Aug 2021 01:05:55 +0900 Subject: [PATCH] Icons for class selectors --- src/TestPanel.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/TestPanel.js b/src/TestPanel.js index e0317ac..b2afe61 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -43,13 +43,13 @@ function EditBoxInput(p) { } function PageControlButton(p) { - return
  • {if (p.onPageChange) {p.onPageChange(p.pageName)} p.setCurrentPage(p.page)}} className={(p.currentPage===p.page)?"selected":"unselected"}>{p.pageName?p.pageName:p.page}
  • + return
  • {if (p.onPageChange) {p.onPageChange(p.pageName)} p.setCurrentPage(p.page)}} className={(p.currentPage===p.page)?"selected":"unselected"}>{p.pageDisplay?p.pageDisplay[p.page-1]:p.pageName?p.pageName:p.page}
  • } function PageControl(p) { var pages = [] for (var i=0;i) + pages.push() } if (p.children!==undefined) { pages.push(
  • {p.children}
  • ) @@ -283,7 +283,7 @@ const [armorSlotSelection,setArmorSlotSelection] = useState(1) const [classNameSetter,setClassNameSetter] = useState(0) -const [points,setPoints] = useState(0) +const [points,setPoints] = useState([]) function rarityCheck(v) { return v!==undefined?v.rarity!==undefined?" r"+v.rarity:"":"" @@ -598,9 +598,6 @@ AUGMENT - - - { setClassSkillTreeWindowOpen(false) }} shouldFocusAfterRender={true} shouldCloseOnOverlayClick={true} shouldCloseOnEsc={true} className="modal" overlayClassName="modalOverlay">
    @@ -609,13 +606,11 @@ AUGMENT
    cl)} pageDisplay={Object.keys(p.GetData("class")).map((cl)=><> {cl})} currentPage={treePage} setCurrentPage={setTreePage} /> - -
    +
    Your Skill Points6
    SP{points}
    ConfirmCancel
    -