Page 1 of 1

game.player.gui.center.add{type="picture", [...]}

Posted: Tue Sep 30, 2014 9:26 am
by hirnwunde
As topic says ...
It would be great if you have images as interface object instead of only buttons or checkboxes.

These can be limited to 64x64 or even 32x32 ...
Like the building menu.

Re: game.player.gui.center.add{type="picture", [...]}

Posted: Tue Sep 30, 2014 10:13 am
by rk84
You can style gui elements to have picture, but yea it would be convient if you could add "icon"-key to gui element. Atleast it would make test mod look better and remove the need of creating style for every item.

Re: game.player.gui.center.add{type="picture", [...]}

Posted: Tue Sep 30, 2014 12:35 pm
by hirnwunde
You can style gui elements to have picture
which elements i can style with pictures and how can i do this?
Until now i could'nt find any example.

Re: game.player.gui.center.add{type="picture", [...]}

Posted: Tue Sep 30, 2014 1:32 pm
by FreeER
hirnwunde wrote:which elements i can style with pictures and how can i do this?
Until now i couldn't find any example.
at least buttons (see first spoiler, and second for others types), which rk84 used for his test mode mod (and checkboxes too). For an example download it and look at the styles subfolder.
some mostly button specific info
other elements with image elements