Joshua Sigona 3 years ago
commit 4564721f0e
  1. 7
      src/TestPanel.js
  2. 47
      src/style.css

@ -135,6 +135,7 @@ function SelectorWindow(p) {
{p.filter?itemList.filter((item)=>p.filterFunction(tabPage,item)).filter((item)=>p.searchFieldFunction(filter,item)).sort((a,b)=>p.sortOrderFunction(sortSelector,a,b)).map((item,i)=><React.Fragment key={i}>{p.displayFunction(item)}</React.Fragment>):itemList.map((item,i)=><React.Fragment key={i}>{p.displayFunction(item)}</React.Fragment>)} {p.filter?itemList.filter((item)=>p.filterFunction(tabPage,item)).filter((item)=>p.searchFieldFunction(filter,item)).sort((a,b)=>p.sortOrderFunction(sortSelector,a,b)).map((item,i)=><React.Fragment key={i}>{p.displayFunction(item)}</React.Fragment>):itemList.map((item,i)=><React.Fragment key={i}>{p.displayFunction(item)}</React.Fragment>)}
{p.children} {p.children}
</div> </div>
{p.footer}
</PopupWindow> </PopupWindow>
} }
@ -176,7 +177,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={{fontStyle:"italic"}}>Select Weapon</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 className="">Select Weapon</span></>
} }
function ConvertCoordinate(x,y) { function ConvertCoordinate(x,y) {
@ -388,7 +389,7 @@ function FoodPopupWindow(p) {
} }
} }
return <SelectorWindow title={"Food Menu"} modalOpen={p.foodMenuWindowOpen} setModalOpen={p.setFoodMenuWindowOpen} GetData={p.GetData}> return <SelectorWindow title={"Food Menu"} modalOpen={p.foodMenuWindowOpen} setModalOpen={p.setFoodMenuWindowOpen} GetData={p.GetData} footer={<><div className="foodPoints"><div>Foods in Recipe</div><div>0</div></div><div className="foodConfirm"><div>Confirm</div><div>Cancel</div></div></>}>
{FOODLIST.map((key)=><FoodItem key={key} modifyPoints={modifyPoints} points={foodPointData[key]??0} item={FOODS[key]}/>)} {FOODLIST.map((key)=><FoodItem key={key} modifyPoints={modifyPoints} points={foodPointData[key]??0} item={FOODS[key]}/>)}
</SelectorWindow> </SelectorWindow>
} }
@ -862,7 +863,7 @@ useEffect(()=>{
<div>Your Skill Points<span>{20-points[treePage-1]}</span></div> <div>Your Skill Points<span>{20-points[treePage-1]}</span></div>
<div>SP<span></span>{points[treePage-1]}</div> <div>SP<span></span>{points[treePage-1]}</div>
</div> </div>
<div className="skillConfirm"><span>Confirm</span><span>Cancel</span></div> <div className="skillConfirm"><div>Confirm</div><div>Cancel</div></div>
</div> </div>
</Modal> </Modal>

@ -305,6 +305,7 @@ header a {
grid-template-columns: minmax(0,auto) minmax(0,1fr); grid-template-columns: minmax(0,auto) minmax(0,1fr);
margin: 10px 10px 0; margin: 10px 10px 0;
gap: 10px; gap: 10px;
font-size: 18px;
} }
.equipName { .equipName {
max-width: 250px; max-width: 250px;
@ -1074,7 +1075,7 @@ cursor:pointer !important;
.skillRightButton { .skillRightButton {
background-position: right; background-position: right;
} }
.skillPoints { .skillPoints, .foodPoints {
background-color: rgba(64,64,64,0.5); background-color: rgba(64,64,64,0.5);
text-align: center; text-align: center;
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
@ -1082,35 +1083,45 @@ cursor:pointer !important;
color: white; color: white;
font-size: 14pt; font-size: 14pt;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill,292px); grid-template-columns: minmax(10px,1fr) repeat(2,minmax(auto,292px)) minmax(10px,1fr);
justify-content: center; justify-content: center;
gap: 10px; gap: 10px;
} }
.skillPoints div:first-child { .skillPoints div:first-child, .foodPoints div:first-child {
text-align: center; grid-column: 2;
} }
.skillPoints div span { .skillPoints div:last-child,.foodPoints div:last-child{
display: inline-block; grid-column: 3;
width: calc(292px / 2); }
text-align: center; .skillPoints div span{
padding: 0 20px;
} }
.skillConfirm { .foodConfirm, .skillConfirm {
display: grid;
grid-template-columns: minmax(10px,1fr) repeat(2,minmax(auto,292px)) minmax(10px,1fr);
gap: 10px;
justify-content: center; justify-content: center;
display: flex; margin:10px 22px 0 12px;
flex-flow: row wrap;
} }
.skillConfirm span { .foodConfirm > div, .skillConfirm > div {
flex: 1 1 auto;
background-color: rgba(113,169,189,0.33); background-color: rgba(113,169,189,0.33);
display: inline-block;
text-align: center; text-align: center;
line-height: 48px; line-height: 48px;
color: white; color: white;
font-size: 13pt; font-size: 17px;
margin: 10px 6px 0 6px; padding: 0 10px;
max-width: 292px; }
.foodConfirm > div:hover, .skillConfirm > div:hover {
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66));
cursor:pointer;
outline: 2px solid #30cdef;
}
.foodConfirm > div:first-child, .skillConfirm > div:first-child {
grid-column: 2;
}
.foodConfirm > div:last-child, .skillConfirm > div:last-child {
grid-column: 3;
} }
/* Sig's Amazing CSS (cuz Dudley edited it) */ /* Sig's Amazing CSS (cuz Dudley edited it) */
.editBox:hover, .editClass:hover{ .editBox:hover, .editClass: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));

Loading…
Cancel
Save