diff --git a/changelog.md b/changelog.md index 2d5cdef..859097c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,8 +1,9 @@ # The Modding Tree changelog: +## v2.6.1 - 6/7/21 - Added global background style to mod.js. - Tree branches can have custom line widths. -- If an upgrade has both canAfford and cost, it checks both. +- If an upgrade has both canAfford and cost, it checks both. (So you can use canAfford for other things) - Releasing a held buyable/clickable with onHold doesn't click it again. - Attempt to fix buttons sometimes not updating. - Improvements to theme code, partially by Cubedey. diff --git a/docs/upgrades.md b/docs/upgrades.md index 465705d..bfb5d9f 100644 --- a/docs/upgrades.md +++ b/docs/upgrades.md @@ -65,4 +65,4 @@ If you want to do something more complicated like upgrades that cost two currenc -- branches: **optional**, This is primarially useful for upgrade trees. An array of upgrade ids. A line will appear from this upgrade to all of the upgrades in the list. Alternatively, an entry in the array can be a 2 or 3-element array consisting of the upgrade id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors). The third element optionally specifies line width. \ No newline at end of file +- branches: **optional**, This is primarially useful for upgrade trees. An array of upgrade ids. A line will appear from this upgrade to all of the upgrades in the list. Alternatively, an entry in the array can be a 2-element array consisting of the upgrade id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors). A third element in the array optionally specifies line width. \ No newline at end of file diff --git a/index.html b/index.html index 24c1eec..8e03186 100644 --- a/index.html +++ b/index.html @@ -126,5 +126,7 @@ +
+ \ No newline at end of file diff --git a/js/Demo/demoMod.js b/js/Demo/demoMod.js index 579511a..d70c1db 100644 --- a/js/Demo/demoMod.js +++ b/js/Demo/demoMod.js @@ -11,7 +11,7 @@ let modInfo = { // Set your version in num and name let VERSION = { - num: "2.6.0.1", + num: "2.6.1", name: "Fixed Reality", } diff --git a/js/components.js b/js/components.js index cbc8559..9443830 100644 --- a/js/components.js +++ b/js/components.js @@ -510,16 +510,26 @@ function loadVue() { computed: { key() {return this.$vnode.key} }, + template: `` + }) + + // Data is an array with the structure of the tree + Vue.component('thing-tree', { + props: ['layer', 'data', 'type'], + computed: { + key() {return this.$vnode.key} + }, template: `
- - + +
` }) + // Updates the value in player[layer][data] Vue.component('text-input', { props: ['layer', 'data'], diff --git a/js/game.js b/js/game.js index e5728ad..7ad2765 100644 --- a/js/game.js +++ b/js/game.js @@ -4,7 +4,7 @@ var gameEnded = false; // Don't change this const TMT_VERSION = { - tmtNum: "2.6.0.1", + tmtNum: "2.6.1", tmtName: "Fixed Reality" }