|
Some of us love GUIs and developers would be grateful to have a customizable progress bar class that has unique "Value" and "MaxValue" properties.
Value determines the progress shown in the progress bar and the MaxValue determines how the maximum progress for the progress bar.
It's a little thing but it would be a nice feature for interfaces. |
|
|
I don't get it - why can't you just make a TextLabel for this? |
|
|
HazaniaJoin Date: 2010-06-04 Post Count: 1344 |
A progress bar for what...? |
|
|
You don't know how to make a TextLabel..? |
|
|
"I don't get it - why can't you just make a TextLabel for this?"
Well, using this progress bar component could be easier to use and less complicated for the user, so we just have to change the value property in a script instead of the TextLabel size. We could even add an "IsIndeterminate" property to establish if the progress bar shows the progress. |
|
|
"A progress bar for what...?"
Screen, Billboard, and Surface GUIs for ROBLOX Studio. |
|
|
"You don't know how to make a TextLabel..?"
Sorry, I was just correcting something in the post. |
|
HazaniaJoin Date: 2010-06-04 Post Count: 1344 |
""A progress bar for what...?"
Screen, Billboard, and Surface GUIs for ROBLOX Studio."
To represent progress of what? LMAO you didn't answer my question at all. |
|
|
a progress bar, its up to you what it controls. stop asking dum questions
make america great again |
|
|
"To represent progress of what? LMAO you didn't answer my question at all."
Sorry for not answering it correctly, I thought you meant what it was for.
It represents progress when the value of it changes:
game.StarterGui.ScreenGui.progressBar.Value = 10
So then the progressBar will visually slide up by 10 values. |
|
|
So if I were creating a thousand bricks in game.Workspace, we could show the player the progress by doing this:
local progressBar = script.Parent
progressBar.MaxValue = 1000
progressBar.Value = 0
for(i = 1, 1000)
local brick = Instance.new("Part")
brick.Parent = game.Workspace
progressBar.Value = i
end
--Sorry if this is invalid scripting. I tried to explain how players could use it. |
|
SpearrittJoin Date: 2014-05-20 Post Count: 157 |
Why not just use the already available GUI elements to make this?
|
|
pullman45Join Date: 2012-07-09 Post Count: 2891 |
Pretty easy to script. |
|
|
"Why not just use the already available GUI elements to make this?"
This is possible but using progressBar is better because it does that for you, along with it being customizable with "IsIndeterminate" and "Value" as well as "MaxValue". We could also add a "ShowPercentage" property that when checked, automatically shows the player the rounded percentage the progressBar has. We could also add color and style properties that have various loading bar styles. |
|
SpearrittJoin Date: 2014-05-20 Post Count: 157 |
Why when you can just do all that using the current GUI elements and a few lines of code?
|
|
|
"Why when you can just do all that using the current GUI elements and a few lines of code?"
The progressBar could save you the hassle of scripting your own loading bar. Maybe it could even TweenPosition itself when the value increases so it's completely smooth. |
|
|
HazaniaJoin Date: 2010-06-04 Post Count: 1344 |
It wasn't a dumb question.
How can the progress bar track anything if it doesn't know what it's tracking. Unless all this guy needs is the GUI side of things and he is planning on scripting it, then yes.. it matters what it's for, so buzz off buddy.
|
|
HazaniaJoin Date: 2010-06-04 Post Count: 1344 |
*this was at jigglypuffs |
|
|
its roblox studio did you really ask "what for"
its up to you
make america great again |
|
|
"How can the progress bar track anything if it doesn't know what it's tracking." Well, the progressBar of course wouldn't be able to assume what you're calculating, but you have to add: progressBar.Value = progressBar.Value + [int] to increase the ############# progress inside a script. All the visuals and the style is done for you. |
|
|
I have no idea why a part of it got censored, but it's still understandable I hope.. |
|
sonickyleJoin Date: 2009-01-01 Post Count: 5653 |
Put a solid colour frame inside a frame container and then change the coloured frame's x scale to represent progress.
If you play my game noVa you can see me using something like that to represent the health and power bars. |
|
|
Don't worry, I have created custom loading bars before, but I thought this would be a great idea for beginners and how it would be more convenient. |
|