Support and General Use > Theming and Appearance Customization
%?pv<|.... volume bar not working...
Reece:
Hello. I'm creating a new theme and would like to create a volume bar, but can't.
I am using the fallowing code to create a volume bar.
Note: Its not a slider, I am using a .bmp with 21 "nimages," not one solid bmp that slides around.
--- Code: ---#volume
%V(167,118,27,54,-)
%?pv<|%xd(Va)|%xd(Vb)|%xd(Vc)|%xd(Vd)>|%xd(Ve)>|%xd(Vf)|%xd(Vg)|%xd(Vh)|%xd(Vi)|%xd(Vj)|%xd(Vk)|%xd(Vl)|%xd(Vm)|%xd(Vn)|%xd(Vo)|%xd(Vp)|%xd(Vq)|%xd(Vr)|%xd(Vs)|%xd(Vt)|%xd(Vu)>
--- End code ---
I've scoured the manual and tried to find every little mistake, but turned up empty. Can someone help me?
EDIT: forgot to mention that the bar appears, but it is stuck on the highest setting, as if the volume is turned all the way up. Either that or its stuck all the way down, it all depends on weather or not I made the bmp in the correct order. Just thought that was important.
[Saint]:
The syntax looks fine. I may need to see the entire theme before I pass judgement upon it.
Two things, though.
I'm wondering if you're aware of how %pv works regarding the last few slots. I can't see your bitmap, obviously, but I'll just mention that the last few items in %pv are reserved for "...all steps less than 0dB...|0dB exactly|everything greater than 0dB>", so if you have nice linear steps in your bitmap, its going to look weird.
Usually people will double up on the 0dB case bitmap, so isn't an obvious step. But this is at best a workaround and can't compete with a "proper" bar tag in accuracy.
Another thing, have you considered modernizing your syntax?
The old style is quite hard to read at a glance, the newer "%?xx<%xd(identifier, 1)|%xd(identifier, 2)|...>" style is a bit long winded, but it allows the author to make use of descriptive identifiers that actually mean something, removes the need to think about A == 1, B == 2, C == 3, etc., and removes the arbitrary limit on identifier and bitmap counts.
Post your whole theme and we'll have a look.
[Saint]
Reece:
Ok, note its not complete, here are the files.
Reece:
Hay, this happens far too often. But I stumbled on the problem.
There was a ">" in the middle of my syntax line. I removed it and everything is working as it should.
Sorry for the trouble.
[Saint]:
d'Oh!
Hahaha...yeah, I missed it too.
I chose to blame this on that impossible to read ancient syntax, not because I'm blind, nope, not at all.
Regarding said syntax, the manual portion for themes is in a state of neglect. Between both the wiki and the manual combined neither actually offers a full/current set of tags.
Ideally this never would have happened, but it did, and while I have every intention of rectifying this finding the time to do so has been a challenge for many years.
My apologies.
[Saint]
Navigation
[0] Message Index
[#] Next page
Go to full version