Joshua Sigona 3 years ago
commit 72a1913ab9
  1. 15
      src/TestPanel.js
  2. 9
      src/style.css

@ -1,3 +1,4 @@
import {PencilFill} from 'react-bootstrap-icons'
import React, { useEffect,useState } from 'react'; import React, { useEffect,useState } from 'react';
import Modal from 'react-modal' import Modal from 'react-modal'
import { DisplayIcon } from './DEFAULTS'; import { DisplayIcon } from './DEFAULTS';
@ -174,7 +175,7 @@ function ClassSelectorWindow(p) {
} }
function GetSpecialWeaponName(item) { 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):<><span style={{}}></span></> 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):<><span style={{fontStyle:"italic"}}>Select Weapon</span></>
} }
function ConvertCoordinate(x,y) { function ConvertCoordinate(x,y) {
@ -515,13 +516,13 @@ useEffect(()=>{
<div className="boxTitleBar"> <div className="boxTitleBar">
<h1>Equipped Weapon</h1></div> <h1>Equipped Weapon</h1></div>
<h2 className="viewedEquipName rifle">{GetSpecialWeaponName(selectedWeapon)}+40</h2> <h2 className="viewedEquipName rifle">{GetSpecialWeaponName(selectedWeapon)}+40</h2>
<PageControl pages={3} currentPage={weaponPage} setCurrentPage={setWeaponPage}>Edit Details</PageControl> <PageControl pages={3} currentPage={weaponPage} setCurrentPage={setWeaponPage}><PencilFill /> Edit Details</PageControl>
{weaponPage === 1 ? {weaponPage === 1 ?
<> <>
<div className="itemDetailsGrid"> <div className="itemDetailsGridTop">
<div className={"itemDetailsIcon editOverlayWrapper"+rarityCheck(selectedWeapon[WEAPON_WEAPON])} onClick={()=>{setWeaponSelectWindowOpen(true)}}> <div className={"itemDetailsIcon editOverlayWrapper"+rarityCheck(selectedWeapon[WEAPON_WEAPON])} onClick={()=>{setWeaponSelectWindowOpen(true)}}>
<div className="editOverlay"><p>Edit <span>&#9998;</span></p></div> <div className="editOverlay"><p><PencilFill /> Edit</p></div>
<img alt="" src={DisplayIcon(selectedWeapon[WEAPON_EXISTENCE_DATA]?.icon)} /></div> <img alt="" src={DisplayIcon(selectedWeapon[WEAPON_EXISTENCE_DATA]?.icon)} /></div>
<div className="itemDetailsProperties"> <div className="itemDetailsProperties">
<div className="itemDetailsPropertiesWrapper"> <div className="itemDetailsPropertiesWrapper">
@ -540,9 +541,8 @@ useEffect(()=>{
</div></div> </div></div>
</div> </div>
<div className="editOverlayWrapper"> <div className="itemDetailsGridBottom editOverlayWrapper">
<div className="editOverlay"><p>Edit <span>&#9998;</span></p></div> <div className="editOverlay"><p><PencilFill /> Edit</p></div>
<div className="itemDetailsGridBottom">
<div className="itemPotential"><span className="pot">Soulspring Unit Lv.3</span></div> <div className="itemPotential"><span className="pot">Soulspring Unit Lv.3</span></div>
<div className="itemFixa"><span className="fixa">Fixa Attack Lv.3</span></div> <div className="itemFixa"><span className="fixa">Fixa Attack Lv.3</span></div>
<div className="itemDetailsAugment"> <div className="itemDetailsAugment">
@ -557,7 +557,6 @@ useEffect(()=>{
</div> </div>
</div> </div>
</div> </div>
</div>
</> </>

@ -671,10 +671,6 @@ header a {
background-color: rgba(25, 30, 35, 0.66) !important; background-color: rgba(25, 30, 35, 0.66) !important;
margin: 10px 5px 0 auto !important; margin: 10px 5px 0 auto !important;
} }
/*.pageControlDetails:before {
content: "\270E";
padding-right: 5px;
}*/
.pageControlDetails:hover { .pageControlDetails:hover {
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66)); background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66));
outline: 2px solid hsl(180, 78%, 50%); outline: 2px solid hsl(180, 78%, 50%);
@ -1474,7 +1470,7 @@ p.adminNav hr {
.equipWindow { .equipWindow {
min-height: 440px; min-height: 440px;
} }
.itemDetailsGrid { .itemDetailsGridTop {
display: grid; display: grid;
grid-template-areas: grid-template-areas:
"icon properties"; "icon properties";
@ -1518,9 +1514,6 @@ p.adminNav hr {
.editOverlayWrapper:hover .editOverlay { .editOverlayWrapper:hover .editOverlay {
display: flex; display: flex;
} }
.editOverlay > p > span {
font-family: "Segoe UI Symbol";
}
.itemDetailsProperties { .itemDetailsProperties {
margin: 0 0 0 10px; margin: 0 0 0 10px;
grid-area: properties; grid-area: properties;

Loading…
Cancel
Save