Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need section in tooltip to show cost of each tech #21

Open
7yl4r opened this issue Jul 11, 2014 · 2 comments
Open

Need section in tooltip to show cost of each tech #21

7yl4r opened this issue Jul 11, 2014 · 2 comments

Comments

@7yl4r
Copy link
Owner

7yl4r commented Jul 11, 2014

I don't think we want to assume this is just one number, maybe we can assume it is an array of arbitrary length?

@7yl4r 7yl4r added this to the v0.1 release milestone Jul 11, 2014
@mileswest07
Copy link

  1. This could be part of the desc item in _showTooltip: function(name, desc, x, y, depth) { ... }, but it would be part of the textbox along with the rest of the desc text.
  2. _showTooltip could include another parameter for cost information, which is rendered using another function similar to addTextLines, but the formatting thereof would be fixed by the author (you).
  3. Or a template could be used (by passing in a jQuery selector or a templated string?) to allow the developer the space needed to layout the cost info as they want.

@7yl4r
Copy link
Owner Author

7yl4r commented Jul 9, 2015

That sounds exactly right to me. Array comes in alongside optional template string and then something like addTextLines renders it.

I think this issue is priority right behind #23 and #16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants