mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-05-11 20:41:10 +00:00
Improved marks
This commit is contained in:
parent
10e3c429a8
commit
22e12c06b5
3 changed files with 9 additions and 4 deletions
js/technical
|
@ -187,10 +187,10 @@ var systemComponents = {
|
|||
},
|
||||
|
||||
'node-mark': {
|
||||
props: ['layer', 'data'],
|
||||
props: ['layer', 'data', 'offset', 'scale'],
|
||||
template: `<div v-if='data'>
|
||||
<div v-if='data === true' class='star' style='position: absolute; left: -10px; top: -10px;'></div>
|
||||
<img v-else class='mark' style='position: absolute; left: -25px; top: -10px;' v-bind:src="data"></div>
|
||||
<div v-if='data === true' class='star' v-bind:style='{position: "absolute", left: (offset-10) + "px", top: (offset-10) + "px", transform: "scale( " + scale + ", " + scale + ")"}'></div>
|
||||
<img v-else class='mark' v-bind:style='{position: "absolute", left: (offset-10) + "px", top: (offset-10) + "px", transform: "scale( " + scale + ", " + scale + ")"}' v-bind:src="data"></div>
|
||||
</div>
|
||||
`
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue