diff --git a/public/icons/nicodotpng.png.png b/public/icons/nicodotpng.png.png new file mode 100644 index 0000000..792b10b Binary files /dev/null and b/public/icons/nicodotpng.png.png differ diff --git a/src/App.js b/src/App.js index 62d72c1..518727e 100644 --- a/src/App.js +++ b/src/App.js @@ -570,6 +570,9 @@ function DamageCalculator(p) { } function LoginForm(p) { + const [username,setUsername] = useState("") + const [password,setPassword] = useState("") + const [rememberMe,setRememberMe] = useState(false) return <>Login Form here. } diff --git a/src/DEFAULTS.js b/src/DEFAULTS.js new file mode 100644 index 0000000..c54589b --- /dev/null +++ b/src/DEFAULTS.js @@ -0,0 +1,8 @@ +const NICONICONII = process.env.PUBLIC_URL+"/icons/nicodotpng.png.png" + +function DisplayIcon(icon) { + console.log(icon) + return icon?process.env.PUBLIC_URL+icon:NICONICONII +} + +export {NICONICONII,DisplayIcon}; \ No newline at end of file diff --git a/src/TestPanel.js b/src/TestPanel.js index 3a0bcb5..a0d5ca7 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -1,6 +1,7 @@ import React, { useEffect,useState,useRef } from 'react'; import ReactTooltip from 'react-tooltip' //https://wwayne.github.io/react-tooltip/ import Modal from 'react-modal' +import { NICONICONII,DisplayIcon } from './DEFAULTS'; /** * Hook that alerts clicks outside of the passed ref @@ -276,10 +277,10 @@ useEffect(()=>{

Equip

-
{setWeaponSelectWindowOpen(true)}} className="equipPaletteSlot">

Weapons

1
-

Armor 1

-

Armor 2

-

Armor 3

+
{setWeaponSelectWindowOpen(true)}} className="equipPaletteSlot">

Weapons

1
+

Armor 1

+

Armor 2

+

Armor 3

@@ -478,7 +479,7 @@ useEffect(()=>{ } }} displayFunction={(item)=>{ - return
  • {setSelectedWeapon(item);setWeaponSelectWindowOpen(false)}}>
    {item[WEAPON_WEAPON].name} {item[WEAPON_WEAPONTYPE].name}

    {item[WEAPON_WEAPON].atk} {item[WEAPON_POTENTIAL_TOOLTIP].map((pot,i)=><>{(i!==0)&&
    }{pot.name}: {pot.description?pot.description.split("\\n").map((it)=><>{it}
    ):<>})}}> + return
  • {setSelectedWeapon(item);setWeaponSelectWindowOpen(false)}}>
    {item[WEAPON_WEAPON].name} {item[WEAPON_WEAPONTYPE].name}

    {item[WEAPON_WEAPON].atk} {item[WEAPON_POTENTIAL_TOOLTIP].map((pot,i)=><>{(i!==0)&&
    }{pot.name}: {pot.description?pot.description.split("\\n").map((it)=><>{it}
    ):<>})}}> {item[WEAPON_POTENTIAL].name}
  • }} />