mob styles
This commit is contained in:
parent
f532363f48
commit
c34ad7edd0
@ -38,6 +38,10 @@ h2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* main container */
|
/* main container */
|
||||||
.cryps {
|
.cryps {
|
||||||
padding: 0 2em;
|
padding: 0 2em;
|
||||||
@ -397,6 +401,28 @@ header {
|
|||||||
justify-content: left;
|
justify-content: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-stats {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-stats .speed {
|
||||||
|
flex: 1 0 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-stats figure {
|
||||||
|
flex: 0 0 30%;
|
||||||
|
border: 0;
|
||||||
|
margin: 1em 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-stats .stat-icon {
|
||||||
|
height: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* CRYP BOX */
|
/* CRYP BOX */
|
||||||
.cryp-box {
|
.cryp-box {
|
||||||
flex: 1 1 100%;
|
flex: 1 1 100%;
|
||||||
@ -573,7 +599,7 @@ header {
|
|||||||
|
|
||||||
.cryps {
|
.cryps {
|
||||||
font-size: 0.75em;
|
font-size: 0.75em;
|
||||||
padding: 0 1em;
|
padding: 0 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*fucken beats me why needed */
|
/*fucken beats me why needed */
|
||||||
@ -606,6 +632,10 @@ header {
|
|||||||
flex: unset;
|
flex: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.instance-info {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.cryp-box {
|
.cryp-box {
|
||||||
margin: 0.5em;
|
margin: 0.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
const preact = require('preact');
|
const preact = require('preact');
|
||||||
const { ITEMS: { SKILLS, SPECS, COLOURS } } = require('./constants');
|
const { ITEMS: { SKILLS, SPECS, COLOURS } } = require('./constants');
|
||||||
const { COLOUR_ICONS } = require('../utils');
|
const { COLOUR_ICONS, STATS } = require('../utils');
|
||||||
|
|
||||||
function Info(args) {
|
function Info(args) {
|
||||||
const {
|
const {
|
||||||
@ -83,20 +83,16 @@ function Info(args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'cryp') {
|
if (type === 'cryp') {
|
||||||
const stats = [
|
const cryp = value;
|
||||||
{ stat: 'hp', disp: 'Hp', colour: '#1FF01F' },
|
const stats = Object.values(STATS).map((s, j) => (
|
||||||
{ stat: 'red_shield', disp: 'Red Shield', colour: '#a52a2a' },
|
<figure key={j} alt={s.stat} className={s.stat}>
|
||||||
{ stat: 'blue_shield', disp: 'Blue Shield', colour: '#3498db' },
|
{s.svg(`stat-icon ${s.colour}`)}
|
||||||
{ stat: 'red_damage', disp: 'Red Damage', colour: '#a52a2a' },
|
<figcaption>{cryp[s.stat].value}</figcaption>
|
||||||
{ stat: 'blue_damage', disp: 'Blue Damage', colour: '#3498db' },
|
</figure>
|
||||||
{ stat: 'green_damage', disp: 'Green Damage', colour: '#1FF01F' },
|
|
||||||
{ stat: 'speed', disp: 'Speed', colour: '#FFD123' },
|
|
||||||
].map((s, i) => (
|
|
||||||
<div key={i}>{s.disp}: {value[s.stat].base} {String.fromCharCode(8594)} {value[s.stat].max}</div>
|
|
||||||
));
|
));
|
||||||
return (
|
return (
|
||||||
<div className="instance-info">
|
<div className="instance-info">
|
||||||
<h5>{value.name}</h5>
|
<h5>{cryp.name}</h5>
|
||||||
<div className="info-stats">
|
<div className="info-stats">
|
||||||
{stats}
|
{stats}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -40,12 +40,12 @@ function Cryp(cryp, sendVboxApply, setInfo, activeVar) {
|
|||||||
return setInfo('cryp', cryp);
|
return setInfo('cryp', cryp);
|
||||||
}
|
}
|
||||||
|
|
||||||
const specs = (cryp.specs.length > 0) ? cryp.specs.map((s, i) => (
|
const specs = cryp.specs.map((s, i) => (
|
||||||
<figure key={i} onClick={() => setInfo('spec', { spec: s, cryp })}>
|
<figure key={i} onClick={() => setInfo('spec', { spec: s, cryp })}>
|
||||||
{SPECS[s].svg(`stat-icon ${SPECS[s].colour}`)}
|
{SPECS[s].svg(`stat-icon ${SPECS[s].colour}`)}
|
||||||
<figcaption>{SPECS[s].caption}</figcaption>
|
<figcaption>{SPECS[s].caption}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
)) : null;
|
));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
@ -55,13 +55,13 @@ function requestAvatar(name) {
|
|||||||
const NULL_UUID = '00000000-0000-0000-0000-000000000000';
|
const NULL_UUID = '00000000-0000-0000-0000-000000000000';
|
||||||
|
|
||||||
const STATS = {
|
const STATS = {
|
||||||
hp: { stat: 'hp', colour: 'green', svg: shapes.square },
|
|
||||||
greenDamage: { stat: 'green_damage', colour: 'green', svg: shapes.diamond },
|
|
||||||
redShield: { stat: 'red_shield', colour: 'red', svg: shapes.hexagon },
|
|
||||||
redDamage: { stat: 'red_damage', colour: 'red', svg: shapes.pentagon },
|
|
||||||
blueShield: { stat: 'blue_shield', colour: 'blue', svg: shapes.squircle },
|
|
||||||
blueDamage: { stat: 'blue_damage', colour: 'blue', svg: shapes.circle },
|
|
||||||
speed: { stat: 'speed', colour: '', svg: shapes.triangle },
|
speed: { stat: 'speed', colour: '', svg: shapes.triangle },
|
||||||
|
redDamage: { stat: 'red_damage', colour: 'red', svg: shapes.circle },
|
||||||
|
greenDamage: { stat: 'green_damage', colour: 'green', svg: shapes.circle },
|
||||||
|
blueDamage: { stat: 'blue_damage', colour: 'blue', svg: shapes.circle },
|
||||||
|
redShield: { stat: 'red_shield', colour: 'red', svg: shapes.square },
|
||||||
|
hp: { stat: 'hp', colour: 'green', svg: shapes.square },
|
||||||
|
blueShield: { stat: 'blue_shield', colour: 'blue', svg: shapes.square },
|
||||||
};
|
};
|
||||||
|
|
||||||
const SPECS = {
|
const SPECS = {
|
||||||
|
|||||||
@ -17,8 +17,13 @@
|
|||||||
## NOW
|
## NOW
|
||||||
|
|
||||||
*CLIENT*
|
*CLIENT*
|
||||||
show cooldowns
|
* general
|
||||||
icons change with %
|
* icons change with %
|
||||||
|
* instance
|
||||||
|
* cryp / vbox page separation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*SERVER*
|
*SERVER*
|
||||||
siphon might have a prob
|
siphon might have a prob
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user