Help - Search - Members - Calendar
Full Version: Am Working On A Progress Bar
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
computer guy
Hi I am working on a progress bar for uix but am not very good at programing.
I have worked out the math for working out the percentage complete and need to know if there is a way to call a value of the file size of the file that you are copying. and one for calling a value of the size of the copied file.

Am thinking of drawing the parental scroll bar as the percentage indicator and a info panel type thing as the background.

Any help in coding would be apreciated. biggrin.gif
computer guy
BUMP, bump bump bump
computer guy
Thanks Fixxer

will try that smile.gif
fixxxer575
where did my post go? blink.gif
computer guy
Don't know there must be a slight glitch in the forum.

by the way a can't find that dashboard.

If anyone has any ideas please help.
Feal free to change the way that the progress is displayed the whole parental scroller thing was just an idea you dont have to use it. writing it as text would be just as fine.


** Team UIX and others is the pausing of the dash during copying going to be a problem**

Lots of people want this because of it apeering as though the dash has frozen when it has just paused the user part of the interface so that you cant interupt the copying. I think that is a rather bad way of doing it because people are more likely to interupt it by restarting there dash thinking it has frozen.

By the way i tried to do the progress bar by myself the other day but failed by the dash not loading. have reset it with my backed up version of UIX and STILL NEED CODING HELP. PLZ PLZ PLZ biggrin.gif
midas
Yeah, the dash pauseing, will fuck up a progress bar. It depends on how/why the dash pauses. If it was just a function call to the effect of StopDashUpdates(); there would be a reason to call it. Such as, data corruption if the dash was busy. but if the dash just hangs without a function call, your progress bar wouldn't update untill the file was done, so it wouldn't really matter anyways.
computer guy
Thanks Midas

nice to hear from you again.
Ever since the day i installed your xips my dash has worked great.
Will see if the pause thing gets called i was looking through the xap the other day and noticed several mentions of pause so i think it is called.

Will have to comment that out i guess.

Any help would be great. and if you know anyone else that could help please point them in the direction og this topic.

Thanks biggrin.gif
Odb718
enigmhuh? huh.gif
Why do people think enigma does anything worth while in their pathetic excuse for a ripoff dash.
Any mention of use or support or anything enima in the forums usually = a ban. You'd better watch what you say and do newb.
midas
Who said enigma?
computer guy
bump biggrin.gif
Odb718
QUOTE(midas @ Dec 11 2005, 03:52 PM) *

Who said enigma?

I had gotten two threads mixed up and since Im on my last chance I can't edit my posts at all.....
computer guy
The other day i was copying saved games to my memory unit and noticed that it has a progress bar.
Could someone try to copy the entire copy panel from the saved games manager to the file manager. biggrin.gif

You will get all the credit for it. love.gif

Sounds like the esiest way. happy.gif

midas
There is a big difference between the meshes that display the progress bar, and the code that updates it. I don't really know much of the code that has to do with the filesystem (if it exist). I will look into this when i have time.
computer guy
Thanks. biggrin.gif

Look forward to seeing what you come up with.
computer guy
I have managed to get the progress screen to apear and set a variable for the progress.

How would you get a piece of code to repeat over and over again. I have a function ProgressUpdate()
But need it to run continuousley as the file is being copied.

and how would you make the progress screen go away once the file has been copied.
I think i have worked out the code to make it go away but i dont know where to put it.

I called CloseMessage(); after theHardDrive.CopythisFile();
but that doesn't seem to work. uhh.gif

Team uix's help would be great. but anyone elses help would be great to.

So please help. biggrin.gif
midas
To repeat code you can use a for loop, but that is not what you would need to do. I am not sure if UIX supports do whiles but if it does (i think so) it goes like this:

CODE
do while (theHardDrive.CopythisFile() != true)
{
updateFileProgressBar();
}


I am not sure if do whiles need a trailing ';' but they might. This also probably would not work because I am not sure of the return CopyThisFile() or if it would call it everytime the loop checked it, there fore making an endless loop.
computer guy
Thanks midas but that didn't work if you have any other ideas would love to hear them. smile.gif
computer guy
If anyone can get in contact with Team Uix on irc and point them to this topic that would be great.

They did make this dash and would probably be the best people to look at this problem since no one else seams to be able to help.


Above
CODE
theHardDisk.CopythisFile();
I put
CODE
ShowProgress("Copy");


And as a function i put
CODE

function FileCopyProgress()
{
var c = theHardDisk.GetthisFileSize(\\source directory path, file) / theHardDisk.GetthisFileSize(\\destination directory path, file) * 100;

SetProgress(c);
}


I think that is correct. by the way things with \\ before them arn't what i put but rather i cant rmember the code so i put what the code does. rolleyes.gif

Thanks.
computer guy
BUMP! biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.