GUI, Progress Bar color

Place to get help with not working mods / modding interface.
Post Reply
User avatar
AlexPhoenix
Fast Inserter
Fast Inserter
Posts: 149
Joined: Tue Feb 18, 2014 7:48 am
Contact:

GUI, Progress Bar color

Post by AlexPhoenix »

Hello again.

Do someone know, how i can create progressbar with custom color of it?(better if i can change it's color in time)
i know how to create and place them, but not how ti customize them.

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

Re: GUI, Progress Bar color

Post by rk84 »

You need define style for every color. Example bluebar

Code: Select all

data.raw["gui-style"].default["bluebar"] = {
	type = "progressbar_style",
	parent = "progressbar_style",
	smooth_color = {b=1}
}
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela

User avatar
AlexPhoenix
Fast Inserter
Fast Inserter
Posts: 149
Joined: Tue Feb 18, 2014 7:48 am
Contact:

Re: GUI, Progress Bar color

Post by AlexPhoenix »

oh, thanks.

i think we need more detailed guide for GUI elements.

Post Reply

Return to “Modding help”