We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
I`ve tried it, and it was possible to implement a new resource and to charge it as cost. The last problem I could not fix was to show it`s count.
I don`t know if I`m just to bad in trying or if the UI really is not designed to have new resources shown. As long as I`m not able to get any resource count my whole solution is useless.
Here is what I have so far: 01_deposits.txt ( in common/deposits )
Added a new *.dds file containing the image for the new resource in
gfx/interface/icons/resources
named: scr_crystals.dds
////they are shown on the map on surveyed objects
Added the line in the spoiler to: resources.gfx (in interface/ )
spriteType = {
name = "GFX_resource_crystals"
textureFile = "gfx/interface/icons/resources/scr_crystals.dds"
}
Added a localisation file modname_l_english.yml (in /localisation/ )
As I said the resource can be charged from buildings and even ships, tried several different uses. but I can not get them shown in the UI with a counter how many I gathered ...
Maybe it`s of some help.
Tibor
They stated that you can't give the interface new information. e.g. you can only get the information that is passed on (which is a bit more than currently displayed, but not a hole lot.)
The only work around I can think of is to add a free edict/policy which spawns an event that shows your current stockpile and income. But that seems pretty clunky and not very user friendly.
I'm fairly sure you can add a count, actually. The data is passed to the interface somewhere because it's used in the tooltip for full storage. Just need to find out where that tooltip is defined and it should be possible to hack something similar into interface.gui.