1
0
Fork 0
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:
Harley White 2021-04-26 23:16:34 -04:00
parent 5e324fe59b
commit fedf644330
5 changed files with 20 additions and 7 deletions

View file

@ -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', {