forked from profectus/Profectus
Added minWidth property to layers
This commit is contained in:
parent
4f23e2a264
commit
c9858ff365
5 changed files with 4 additions and 2 deletions
|
@ -39,6 +39,7 @@ export default {
|
||||||
if (layers[this.layer].activeSubtab?.style) {
|
if (layers[this.layer].activeSubtab?.style) {
|
||||||
style.push(layers[this.layer].activeSubtab.style);
|
style.push(layers[this.layer].activeSubtab.style);
|
||||||
}
|
}
|
||||||
|
style.push({ minWidth: `${layers[this.layer].minWidth}px` });
|
||||||
return style;
|
return style;
|
||||||
},
|
},
|
||||||
display() {
|
display() {
|
||||||
|
|
|
@ -57,7 +57,6 @@ export default {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 640px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab .ps {
|
.tab .ps {
|
||||||
|
|
|
@ -20,6 +20,7 @@ export default {
|
||||||
otherThingy: 10,
|
otherThingy: 10,
|
||||||
spentOnBuyables: new Decimal(0)
|
spentOnBuyables: new Decimal(0)
|
||||||
}},
|
}},
|
||||||
|
minWidth: 800,
|
||||||
color: "#4BDC13",
|
color: "#4BDC13",
|
||||||
requires: new Decimal(10), // Can be a function that takes requirement increases into account
|
requires: new Decimal(10), // Can be a function that takes requirement increases into account
|
||||||
resource: "lollipops", // Name of prestige currency
|
resource: "lollipops", // Name of prestige currency
|
||||||
|
|
|
@ -38,7 +38,7 @@ const spook = {
|
||||||
|
|
||||||
const main = {
|
const main = {
|
||||||
id: 'main',
|
id: 'main',
|
||||||
display: '<tree append="true" />'
|
display: '<tree :append="true" />'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const initialLayers = [ main, f, c, a, g, h, spook ];
|
export const initialLayers = [ main, f, c, a, g, h, spook ];
|
||||||
|
|
|
@ -410,6 +410,7 @@ export const defaultLayerProperties = {
|
||||||
type: "none",
|
type: "none",
|
||||||
layerShown: true,
|
layerShown: true,
|
||||||
glowColor: "red",
|
glowColor: "red",
|
||||||
|
minWidth: 640,
|
||||||
displayRow() {
|
displayRow() {
|
||||||
return this.row;
|
return this.row;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue