Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Bartag issues
« previous next »
  • Print
Pages: [1]

Author Topic: Bartag issues  (Read 2005 times)

Offline skyride24

  • Member
  • *
  • Posts: 2
Bartag issues
« on: September 29, 2010, 06:32:04 PM »
I'm having a problem getting the new slider function of the bar tags to work.  My code is as follows:
%V(8,136,203,3,-)
%pv(0,0,203,3,-,nofill,slider,slide.bmp)
But this doesn't seem to work.  When I remove the slide.bmp, the code works. In the wiki, it says image_label, and I'm assuming that means the image filename. However, I did try setting up the image and giving it an letter label and using a %vd(a) where the image_label goes.  That didn't work either.

thanks in advance!
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Bartag issues
« Reply #1 on: October 02, 2010, 05:28:35 AM »
just use the image label... i.e 'a'
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Giova

  • Member
  • *
  • Posts: 25
Re: Bartag issues
« Reply #2 on: October 03, 2010, 10:57:50 AM »
Another bar issue is that  slider doesn't work if the bar is vertical, it will be drawn horizontally:
Code: [Select]
%pv(1,1,8,198,volume_in.bmp,vertical,slider,X)
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Bartag issues
« Reply #3 on: October 03, 2010, 06:42:27 PM »
put it on flyspray
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline skyride24

  • Member
  • *
  • Posts: 2
Re: Bartag issues
« Reply #4 on: October 05, 2010, 06:52:09 PM »
thank you!
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Bartag issues
« Reply #5 on: October 07, 2010, 07:23:29 PM »
I'm trying to substitute the usual bitmap images for a volume slider in the rayboradio theme, but I haven't been able to.

I have the "slider slot" already on the background image


and I want to make a "volume button" slide across it, so I got the button image, and tried this:
Code: [Select]
%xl(A,volumeknob.bmp,0,0)
%V(238,200,60,10,-)
%pv(0,0,50,10,-,nofill,slider,A)
 

Is there a way to get rid of the outline that is drawn, without having to load an image (which is already on the background)?

Next I tried was loading the same background image, which achieves much more the desired effect. The viewport is 60x10 (the whole slot), and the %pv size parameters are set to 50x10, because from what I've seen, that's the way to make the slider go to 60 when the volume is set to max (image is 10x10). The problem is that when the volume is turned down again from maximum, the portion of the viewport that is "outside" the %pv parameters (between 50 and 60) is shown kind of distorted (see below), is there a way to avoid this?

Code: [Select]
%pv(0,0,50,10,volumedummy.bmp,nofill,slider,A)

« Last Edit: October 29, 2010, 01:20:24 AM by audio-i »
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Bartag issues
« Reply #6 on: October 07, 2010, 07:34:02 PM »
I can add an option to to not draw the border.
I don't get why you arent using the full 60 width for the slider. Has it got a math bug which causes it to be drawn outside the viewport when dB > 0?
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Bartag issues
« Reply #7 on: October 07, 2010, 07:58:51 PM »
Quote from: JdGordon on October 07, 2010, 07:34:02 PM
I can add an option to to not draw the border.
That'd be great, thanks, I think many sliders would be like the one in the example.

Quote from: JdGordon on October 07, 2010, 07:34:02 PM
I don't get why you arent using the full 60 width for the slider. Has it got a math bug which causes it to be drawn outside the viewport when dB > 0?
I didn't realize it would be a bug  :) but then yes, that's the case (clearly seen in the images of the example with the borders)
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Bartag issues
« Reply #8 on: October 07, 2010, 08:13:00 PM »
file a bug so i dont forget :)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Bartag issues
« Reply #9 on: October 07, 2010, 08:34:51 PM »
audio-i, can you come on irc? I think i might see the issue...
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline teru

  • Member
  • *
  • Posts: 2
Re: Bartag issues
« Reply #10 on: October 08, 2010, 10:00:43 AM »
i thought same thing as audio-i.
it is intended that the slider goes outside of the frame and i wondered why there isn't option to hide the bar entirely.

IMO, current positioning of the slider is OK. but i'd request these.
*clear the place where the slider is drawn when it goes out of the frame.
*add nobar option, witch doesn't draw the bar at all.
*also, the offset for slider, x -= width/2 which is commented out.
i want the offset because the position of cue sheet marker will become center of the slider. and anyone would be able to reproduce same behaviour as current with a bitmap left half is filled with transparent colour.
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Bartag issues
« Reply #11 on: October 25, 2010, 04:10:07 PM »
Working great now  ;)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Bartag issues
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.091 seconds with 14 queries.