i've updated my progBar script as requested
[span style='font-size:14pt;line-height:100%']tk32_progBar.ski[/span]
[span style='font-size:8pt;line-height:100%'](note: i dropped the Mk1 bullshit)[/span]
it now supports 'right-click scanning' [span style='font-size:8pt;line-height:100%'](as featured in micropanel)[/span]:- right-click anywhere in the progress bar, and the track will scan in 2% increments until it reaches the cursor position
- if you wish, continue pressing the RMB and drag left/right to scan in that direction
- tap the RMB for short burst increments of 2-4%
for more info, read the original post
the only change i may decide to make to this feature is to code a better increment calculator [span style='font-size:8pt;line-height:100%'](for example, one that changes depending on distance from the cursor)[/span] but this will be transparent to users & developers, so don;t worry.
to use the script in your own skins, open the ski and read the install guide at the beginning. here is a transcript:
---
usage guide:
[span style='font-size:8pt;line-height:100%']first of all, make sure you have correctly saved the file into your skin folder.
then start by importing the script into your current skin project using the following import command:[/span]
import tk32_progBar.ski
[span style='font-size:8pt;line-height:100%']to attach the script properly, you will need a total of 2 sprites (3 if you want a grip)[/span]
Step 1.
[span style='font-size:8pt;line-height:100%']the first sprite is the visible 'bar', or 'fill', of the progress bar.
it can be a graphic, a fill, or even invisible (if you only want the grip to show).
important notes:
- this sprite never recieves mouse input (so we use 'bool enabled false')
- the width of this sprite should be set to 0 (the script will update the width automatically)
here is an example:[/span]
sprite progBar
bool enabled false
list rect int { 10 60 0 22 }
list rendermap int { render.fill }
list fillcolor int { 150 150 150 150 }
[span style='font-size:8pt;line-height:100%']notes:
to use a graphical progbar, you need to do 2 additional things:
- change the rendermap to render.image
- add the srcoff coordinates[/span]
Step 2.
[span style='font-size:8pt;line-height:100%']the second sprite will be an invisible outline of whole width of the bar, and will be the part that receives clicks & movement from the mouse. so our script will be attached to this sprite.
important notes:
- this sprite will be invisible
- this sprite have a set width of the entire progress bar
- the script will be attached to this sprite
- we can include the previous sprite to save us repeating some values
- when attaching the script, we must tell it the name of our 'bar' sprite (as above)
here is my sprite as an example (i've chosen to use an added gray border):[/span]
sprite progBox
string include progBar
int width 216
list rendermap int { render.border }
int borderwidth 1
list bordercolor int { 150 150 150 150 }
list scripts string { "tk32_progBar[bar=progBar]" }
Step 3.
[span style='font-size:8pt;line-height:100%']to add a grip, simply add a basic grip sprite like this:[/span]
sprite progGrip
bool enabled false
list rect int { 10 60 38 22 }
list srcoff int { 12 217 }
[span style='font-size:8pt;line-height:100%'](note that this sprite is disabled too, since we don't want it to receive mouse commands)
lastly, we need to change the script arguments in the 'box' sprite (step 2) so that it looks like this:[/span]
list scripts string { "tk32_progBar[bar=progBar grip=progGrip]" }
---
please let me know if you have any problems or find any bugs
email: