1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

New Entity Debugger (i hope so) (#665)

This commit is contained in:
dengr1065
2020-09-19 08:57:29 +03:00
committed by GitHub
parent 2c2fa6e831
commit 7650931f1f
3 changed files with 151 additions and 59 deletions

View File

@@ -1,43 +1,65 @@
#ingame_HUD_EntityDebugger {
position: absolute;
background: $ingameHudBg;
@include S(padding, 5px);
@include S(right, 30px);
@include S(top, 200px);
font-size: 14px;
line-height: 16px;
color: #fff;
background: rgba(0, 10, 20, 0.7);
padding: 10px;
top: 50%;
transform: translateY(-50%);
@include SuperSmallText;
color: #eee;
display: flex;
flex-direction: column;
> label {
text-transform: uppercase;
}
.hint {
color: #aaa;
}
&,
* {
pointer-events: all;
}
.flag {
display: inline-block;
background: #333438;
@include S(padding, 2px);
@include S(margin-right, 2px);
u {
opacity: 0.5;
}
.propertyTable {
@include S(margin-top, 8px);
}
.components {
@include S(margin-top, 4px);
.propertyTable,
.entityComponents,
.entityComponents .object > div {
display: grid;
grid-template-columns: 1fr 1fr;
@include S(grid-gap, 3px);
.component {
@include S(padding, 2px);
background: #333;
display: flex;
flex-direction: column;
grid-template-columns: 1fr auto;
@include S(column-gap, 10px);
}
.data {
@include S(width, 150px);
@include S(height, 130px);
.entityComponents {
grid-column: 1 / 3;
@include S(margin-top, 5px);
font-family: "Roboto Mono", "Fira Code", monospace;
font-size: 90%;
@include S(letter-spacing, -0.5px);
label,
span {
line-height: 1.5em;
&:not(span) {
opacity: 0.5;
}
}
.object {
grid-column: 1 / 3;
line-height: 1.5em;
> div {
@include S(margin-left, 4px);
}
}
}