Sabranan -> RE: Modding Tool (1/29/2017 10:15:38 PM)
|
A brand new feature for revision 19, a tech tree viewer! I've spent the past several hours on this and while complicated, the most difficult part was getting visual studio to actually draw the arrows and keep them there. It does work quite nicely though. A couple notes: a) The way the arrows work is they're saved as a bitmap in memory and that bitmap is set to be the background image of the panel with the techs in it. But bitmaps are limited to 2GB in Visual Studio, so it's possible to overload it if your tech level or row number is too high. To help with this I've done the same thing that Distant Worlds itself does, which is that if your tech level is 100 or more for a project then it doesn't display in the tree. There 'should' be no need to go anywhere near that number, especially since modders have the Base Cost Multiplier. b) Right now projects list their names and ID's, their cost, any components they enable and their parents. I figured this is the most critical info to provide. I'll program in the other stuff too at some point, though due to space limitations I might have a drop-down box or something to select the values you want to examine.
|
|
|
|