7yl4r / techtreejs

:deciduous_tree: customizable js game tech tree library
http://7yl4r.github.io/techtreejs/
Other
18 stars 3 forks source link

separate treeStyle.css out of demo index.html #18

Closed 7yl4r closed 9 years ago

7yl4r commented 10 years ago

treeStyle.css can be used to set attribute values via classes, which makes the js prettier and is also faster.

To transition between classes (like locked-node, unlocked-node, and researched-node) something like this should be used.

This solution is a bit in conflict with the idea in #17, but this is a more standard and easier way of doing something similar.