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

Post Reply
hirnwunde
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Sep 26, 2014 7:33 am
Contact:

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

Post 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.

User avatar
rk84
Filter Inserter
Filter Inserter
Posts: 556
Joined: Wed Feb 13, 2013 9:15 am
Contact:

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

Post 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.
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela

hirnwunde
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Sep 26, 2014 7:33 am
Contact:

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

Post 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.

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

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

Post 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

Post Reply

Return to “Implemented mod requests”