RapaGUI: progressbar and "max" attribute

Report any Hollywood bugs here

RapaGUI: progressbar and "max" attribute

Postby bitRocky » Sat Apr 28, 2018 11:28 pm

Hi, If I change the "max" attribute to something higher or lower than the default 100, the shown procent value isn't correct, its the "level" value not the calculated procent of "level" from "max".

You can test it with the Dialogs example, just add a
Code: Select all
moai.Set("prgbar", "max", 1000)
at the beginning of p_DialogFunc(), and change the For-Loop to
Code: Select all
For Local k = 0 To moai.Get("prgbar", "max")


And if I add the
Code: Select all
max="1000"
into the Progress.xml, the scale-object underneath the bar doesn't exists!

Also setting the "hide" attribute to true on a progressbar definition, only hides the bar not the scale-object!
If I set it at run-time, both were hidden!
Well, this can be easily work-around by putting the progressbar in a own group and hide the group instead of the progressbar;)

btw, Andreas could you add a callback function, so one could show a custom string in the progress bar?
bitRocky
 
Posts: 78
Joined: Fri Nov 14, 2014 7:01 pm

Re: RapaGUI: progressbar and "max" attribute

Postby airsoftsoftwair » Sun May 06, 2018 12:01 am

bitRocky wrote:Hi, If I change the "max" attribute to something higher or lower than the default 100, the shown procent value isn't correct, its the "level" value not the calculated procent of "level" from "max".

You can test it with the Dialogs example, just add a
Code: Select all
moai.Set("prgbar", "max", 1000)
at the beginning of p_DialogFunc(), and change the For-Loop to
Code: Select all
For Local k = 0 To moai.Get("prgbar", "max")


And if I add the
Code: Select all
max="1000"
into the Progress.xml, the scale-object underneath the bar doesn't exists!

Also setting the "hide" attribute to true on a progressbar definition, only hides the bar not the scale-object!
If I set it at run-time, both were hidden!
Well, this can be easily work-around by putting the progressbar in a own group and hide the group instead of the progressbar;)


Thanks for the report, this will be fixed.

btw, Andreas could you add a callback function, so one could show a custom string in the progress bar?


This is not likely to come because showing a string in the progress bar is only supported on MUI and RapaGUI aims to support features only if they are available on all platforms.
User avatar
airsoftsoftwair
 
Posts: 2444
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to Hollywood bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron