From 6204fc70b1c8b5cd74892cc1bdcbfa2772df2630 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Tue, 17 Aug 2021 21:22:48 +0900 Subject: [PATCH] class selector window is back. And now with swapping --- src/TestPanel.js | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/src/TestPanel.js b/src/TestPanel.js index 4f213a9..65fdcaa 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -125,6 +125,19 @@ function SelectorWindow(p) { } +function ClassSelectorWindow(p) { + return { + var dat1 = p.GetData("class") + return Object.keys(dat1) + } + } + displayFunction={(key) => { + return
  • {if (p.editClass===0){p.setClassName(key);p.setSubClassName(p.subClass===key?p.class:p.subClass)}else{p.setSubClassName(key);p.setClassName(p.class===key?p.subClass:p.class)}; p.setModalOpen(false) }}> {p.GetData("class", key, "name")}
  • + }} +/> +} + function GetSpecialWeaponName(item) { return item[WEAPON_EXISTENCE_DATA]!==undefined?(item[WEAPON_EXISTENCE_DATA].special_name?.length>0)?item[WEAPON_EXISTENCE_DATA].special_name:(item[WEAPON_WEAPON].name+" "+item[WEAPON_WEAPONTYPE].name):"" } @@ -501,25 +514,7 @@ AUGMENT -{setClassSelectWindowOpen(false)}} shouldFocusAfterRender={true} shouldCloseOnOverlayClick={true} shouldCloseOnEsc={true} className="modal" overlayClassName="modalOverlay"> -
    -
    -

    Select Main Class

    -
    { setClassSkillTreeWindowOpen(false) }}>
    -
    -
    -
      -
    • Hunter
    • -
    • Fighter
    • -
    • Ranger
    • -
    • Gunner
    • -
    • Force
    • -
    • Techter
    • -
    • Braver
    • -
    -
    -
    -
    +