I cannot figure out what the hell to do to add in a units construction demands (unit/comsumption/ and unit/tools/0/spec_id_data/construction_demand/) to the negative metal/energy displayed on the hover panel when the unit is in game, as well as putting that stat display into the build hover. I've seriously stared at the js and html files for hours, and it looks like a giant rats nest to me. I figure I have to add divs to the build hover, and I have to override either the unitDetailModel or the worldUnitHoverModel function, but I have literally NO idea how in the 9 hells that would be done without editing the actual files. Editing the actual files to include the tools info in worldwhatever just screws the entire ui. Ugh. Help?
You can download the ui debugger here: viewtopic.php?f=72&t=50276 If you run it, it should tell you why the ui breaks (it's a js error and the log messages are very helpful for fixing it). You may want to look over the knockout.js tutorials (they are very short and evaluate live). You can find them here: http://learn.knockoutjs.com/#/?tutorial=intro Adding more stats to the hover panels is on my 'list', so if you wait I might solve your problem for you, or at least expose enough information that you problem becomes easier to solve.