mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-24 02:01:03 +00:00
Added slider component
This commit is contained in:
parent
5e324fe59b
commit
fedf644330
5 changed files with 20 additions and 7 deletions
|
@ -407,6 +407,13 @@ function loadVue() {
|
|||
`
|
||||
})
|
||||
|
||||
// Updates the value in player[layer][data]
|
||||
Vue.component('slider', {
|
||||
props: ['layer', 'data'],
|
||||
template: `
|
||||
<div><input type="range" v-model="player[layer][data[0]]" :min="data[1]" :max="data[2]"></div>
|
||||
`
|
||||
})
|
||||
|
||||
// These are for buyables, data is the id of the corresponding buyable
|
||||
Vue.component('sell-one', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue