Merge branches 'master' and 'master' of https://github.com/sigonasr2/ngsplanner

master
Joshua Sigona 3 years ago
commit e23b032510
  1. 66
      src/TestPanel.js
  2. BIN
      src/icons/mel.png
  3. BIN
      src/icons/rng.png
  4. BIN
      src/icons/tec.png
  5. 130
      src/style.css

@ -515,7 +515,10 @@ useEffect(()=>{
<div className="box equipWindow"> <div className="box equipWindow">
<div className="boxTitleBar"> <div className="boxTitleBar">
<h1>Equipped Weapon</h1></div> <h1>Equipped Weapon</h1></div>
<h2 className="viewedEquipName rifle">{GetSpecialWeaponName(selectedWeapon)}+40</h2> <div className="equipNameWrapper">
<div className="equipName"><h2 className="rifle">{GetSpecialWeaponName(selectedWeapon)}</h2></div>
<div className="equipEnhancement">+40</div>
</div>
<PageControl pages={3} currentPage={weaponPage} setCurrentPage={setWeaponPage}><PencilFill /> Edit Details</PageControl> <PageControl pages={3} currentPage={weaponPage} setCurrentPage={setWeaponPage}><PencilFill /> Edit Details</PageControl>
{weaponPage === 1 ? {weaponPage === 1 ?
@ -560,28 +563,55 @@ useEffect(()=>{
</> </>
:weaponPage === 2 ?
<div className="statsDetails">
<div style={{gridArea:"enhance1"}}>Enhancement Lv.</div>
<div style={{gridArea:"variance1"}}>Damage Adj.</div>
<div style={{gridArea:"weaponup"}}>Weapon Up</div>
<div style={{gridArea:"ailment"}}>Ailment Resist.</div>
<div style={{gridArea:"class1"}}>Available Classes</div>
<div style={{gridArea:"mw1"}}>Multi-weapon</div>
<div style={{gridArea:"enhance2"}}>40</div>
<div style={{gridArea:"variance2"}}>75.0% ~ 100%</div>
<div style={{gridArea:"mel"}}>Weapon Up</div>
<div style={{gridArea:"ailment2"}}>Ailment Resist.</div>
<div style={{gridArea:"class2"}}>Available Classes</div>
<div style={{gridArea:"mw2"}}><img alt="" src={DisplayIcon("icons/food/NGSUIItemAssaultRifleMini.png")} /> <img alt="" src={DisplayIcon("icons/food/NGSUIItemTalisMini.png")} /></div>
</div>
:weaponPage === 3 ? :weaponPage === 3 ?
<div className="equipDetails">
<div className="equipAugs"> <div className="augmentDetails">
<h3>Ability Details</h3> <div className="augmentDetailsListHeader"><h3>Ability Details</h3></div>
<div className="augmentDetailsStatsHeader"><h3>Stat Adjustment</h3></div>
<div className="augmentDetailsList customScrollbar">
<ul> <ul>
<li><div className="equipAugsExpand tooltip"><img alt="" src="./icons/aug_plus.png" /><span>Potency +20%/<br />Critical Hit Rage +15% for 30 seconds after a successful sidestep</span></div><span className="pot">Dynamo Unit Lv.3</span></li> <li className="pot">Dynamo Unit Lv.3</li>
<li><div className="equipAugsExpand tooltip"><img alt="" src="./icons/aug_plus.png" /><span>Potency +4%</span></div><span className="fixa">Fixa Attack Lv.3</span></li> <li className="fixa">Fixa Attack Lv.3</li>
<li><div className="equipAugsExpand tooltip"><img alt="" src="./icons/aug_plus.png" /><span>PP +5<br />Ranged Weapon Potency +2.0%</span></div><span className="aug">Pettas Soul II</span></li> <li className="aug">test</li>
<li><div className="equipAugsExpand tooltip"><img alt="" src="./icons/aug_plus.png" /><span>HP -10, Potency +1.5%,<br />Potency Floor Increase +1.5%<br />Damage Resistance -1.5%</span></div><span className="aug">Alts Secreta II</span></li> <li className="aug">test</li>
<li><div className="equipAugsExpand tooltip"><img alt="" src="./icons/aug_plus.png" /><span>HP +10<br />Ranged Weapon Potency +2.0%</span></div><span className="aug">Gigas Precision II</span></li> <li className="aug">test</li>
<li><div className="equipAugsExpand tooltip"><img alt="" src="./icons/aug_plus.png" /><span>Ranged Weapon Potency +2.0%</span></div><span className="aug">Precision III</span></li> <li className="aug">test</li>
<li><img alt="" src="./icons/aug_plus.png" /></li> <li className="aug">test</li>
<li className="aug">test</li>
<li className="aug">test</li>
<li className="aug">test</li>
</ul> </ul>
</div> </div>
<div className="pr"> <div className="augmentDetailsStats">
<h3>Stat Adjustment</h3> <table>
<ul> <tbody>
<li>Enhancement Lv.&emsp;<span>+35</span></li> <tr>
<li>Multi-Weapon&emsp;<span>-</span></li> <td>HP</td>
<li>Element&emsp;<span>-</span></li> <td>+99</td>
</ul> </tr>
<tr>
<td>PP</td>
<td>+9</td>
</tr>
</tbody>
</table>
</div> </div>
</div> </div>
: :

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

@ -69,6 +69,7 @@ body {
} }
table { table {
border-spacing: 0; border-spacing: 0;
width: 100%;
} }
table td { table td {
vertical-align: top; vertical-align: top;
@ -205,6 +206,10 @@ header a {
padding-bottom:10px; padding-bottom:10px;
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
} }
.box h3 {
color: #97e2fc;
}
.box h3, dt { .box h3, dt {
font-size: 12pt; font-size: 12pt;
font-weight: normal; font-weight: normal;
@ -213,24 +218,14 @@ header a {
border-bottom: 1px solid rgba(128,128,128,0.5); border-bottom: 1px solid rgba(128,128,128,0.5);
} }
.box tr { .box tr {
background-repeat: no-repeat; border-bottom: 1px solid rgba(128,128,128,0.13);
background-position: left bottom;
border-bottom: 1px solid rgba(128,128,128,0.5);
}
.box tr:last-child {
border-bottom: 0;
} }
.box td { .box td {
padding: 0 5px; padding: 0 5px;
white-space: nowrap;
} }
.box td:first-child { .box td:first-child {
color: #97e2fc; color: #97e2fc;
} }
.box td:last-child {
text-align: right;
}
.basicInfo { .basicInfo {
display: grid; display: grid;
grid-template-columns: minmax(0,0.9fr) minmax(0,1fr) minmax(0,1fr); grid-template-columns: minmax(0,0.9fr) minmax(0,1fr) minmax(0,1fr);
@ -305,16 +300,32 @@ header a {
content: " \25C6"; content: " \25C6";
margin-right: 10px; margin-right: 10px;
} }
.viewedEquipName { .equipNameWrapper {
display:grid;
grid-template-columns: minmax(0,auto) minmax(0,1fr);
margin: 10px 10px 0;
gap: 10px;
}
.equipName {
max-width: 250px;
padding-right:2px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.equipName:hover {
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66));
outline: 2px solid hsl(180, 78%, 50%);
}
.equipName h2 {
color: white; color: white;
font-weight: normal; font-weight: normal;
font-size: 18px; font-size: 18px;
margin: 10px 10px 0 10px;
text-align: left; text-align: left;
} }
.viewedEquipName img { .equipEnhancement:hover {
margin-right: 5px; background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66));
vertical-align: top; outline: 2px solid hsl(180, 78%, 50%);
} }
.saveControls { .saveControls {
margin-top: 10px; margin-top: 10px;
@ -400,6 +411,67 @@ header a {
margin: 10px 10px 0 0; margin: 10px 10px 0 0;
text-align: left; text-align: left;
} }
.statsDetails {
display:grid;
grid-template-columns: minmax(0,auto) repeat(3,minmax(0,1fr));
grid-template-areas:
"enhance1 enhance2 enhance2 enhance2"
"variance1 variance2 variance2 variance2"
"weaponup mel rng tec"
"ailment ailment1 ailment2 ailment3"
"class1 class2 class2 class2"
"mw1 mw2 mw2 mw2"
}
.statsDetails > div:nth-child(-n+6){
color: #97e2fc;
}
.statsDetails > div {
border-bottom: 1px solid rgba(128,128,128,0.5);
}
.augmentDetails {
display: grid;
grid-template-columns: minmax(0,1fr) minmax(0,0.8fr);
grid-template-rows: auto minmax(0, 1fr);
gap: 10px;
flex: 1;
grid-template-areas:
"header1 header2"
"ability stats";
place-content: stretch;
place-items: stretch;
margin: 8px 10px 0 8px;
}
.augmentDetails h3 {
margin: 0;
}
.augmentDetailsListHeader {
grid-area: header1;
}
.augmentDetailsStatsHeader {
grid-area: header2;
}
.augmentDetailsList {
grid-area: ability;
overflow-y: scroll;
max-height: 280px;
}
.augmentDetailsList li {
background-color: rgba(128,128,128,0.25);
color: white;
margin: 2px 5px 5px 2px;
padding: 10px;
}
.augmentDetailsList li:hover {
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66));
outline: 2px solid hsl(180, 78%, 50%);
}
.augmentDetailsStats {
grid-area: stats;
margin: 0 0 0 10px;
}
.augmentDetailsStats td:last-child {
color: #ffb74c;
}
.equipAugs { .equipAugs {
flex: 1 1 auto; flex: 1 1 auto;
} }
@ -611,7 +683,7 @@ header a {
vertical-align: middle; vertical-align: middle;
} }
.fixa { .fixa {
color: rgb(255,135,80); color: rgb(255,135,80) !important;
} }
.fixa:before { .fixa:before {
content: url("./icons/UINGSItemPresetAbility.png"); content: url("./icons/UINGSItemPresetAbility.png");
@ -619,7 +691,22 @@ header a {
vertical-align: middle; vertical-align: middle;
} }
.pot { .pot {
color: rgb(255,255,0); color: rgb(255,255,0) !important;
}
.mel:before {
content: url("./icons/mel.png");
margin-right: 5px;
vertical-align: middle;
}
.rng:before {
content: url("./icons/rng.png");
margin-right: 5px;
vertical-align: middle;
}
.tec:before {
content: url("./icons/tec.png");
margin-right: 5px;
vertical-align: middle;
} }
.pot:before { .pot:before {
content: url("./icons/NGSUIItemPotentialAbility.png"); content: url("./icons/NGSUIItemPotentialAbility.png");
@ -630,7 +717,6 @@ header a {
clear: both; clear: both;
} }
.itemlistcontainer { .itemlistcontainer {
/* max-height: 400px;*/
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
margin: 10px 5px 0 0; margin: 10px 5px 0 0;
@ -822,7 +908,6 @@ li.treeListSub:after {
margin-right: 5px; margin-right: 5px;
} }
.skillTreeBox { .skillTreeBox {
/* flex: 1 1 auto;*/
margin: 0; margin: 0;
min-width: 181px; min-width: 181px;
min-height: auto; min-height: auto;
@ -1468,6 +1553,8 @@ p.adminNav hr {
top:16px; top:16px;
} }
.equipWindow { .equipWindow {
display: flex;
flex-direction: column;
min-height: 440px; min-height: 440px;
} }
.itemDetailsGridTop { .itemDetailsGridTop {
@ -1484,6 +1571,7 @@ p.adminNav hr {
"augment augment"; "augment augment";
grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-columns: repeat(2,minmax(0,1fr));
margin: 10px; margin: 10px;
flex: 1;
} }
.itemDetailsIcon { .itemDetailsIcon {
grid-area: icon; grid-area: icon;
@ -1548,7 +1636,7 @@ p.adminNav hr {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit,minmax(125px, 1fr)); grid-template-columns: repeat(auto-fit,minmax(125px, 1fr));
gap: 10px 30px; gap: 10px 30px;
flex: 1;
} }
.itemDetailsAugmentWrapper > div { .itemDetailsAugmentWrapper > div {
background-color:rgba(0,0,0,0.33); background-color:rgba(0,0,0,0.33);

Loading…
Cancel
Save