7yl4r / techtreejs

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

can't afford animation doesn't communicate well. #20

Open 7yl4r opened 10 years ago

7yl4r commented 10 years ago

Need to add text or something to better communicate "you can't afford this"

mileswest07 commented 9 years ago

How about "not enough minerals"? :P

Or create a dummy event that gets fired if a user attempts to begin a research, but does not have the right "research points"/costs. Leave it to the developer to create a listener to handle it however he/she wants.

7yl4r commented 9 years ago

I like the idea of triggering an event for the developer to handle in their UI.

mileswest07 commented 9 years ago

It's less code you have to make, and more freedom for the developer to customize as they wish.