[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - Possible to have many volume mute icons ?

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 27th, 2024, 12:31 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: February 12th, 2013, 8:18 pm 
Offline
User avatar

Joined: January 25th, 2013, 8:36 pm
Posts: 40
Hi all ! I'm wondering something, i need to have many volume icons, but when i create the second one, when mute, it's replaced by first one.

I called the first one "false.png" when unmuted and "true.png" when muted. But when i use the second one, i don't know how to name them. I tried to put into another folder, but i don't know how to code it or how to code the binding core. I tried with two volumecores, but it doesn't change anything.

Can you help me ?

Here are my icons and as i want them to be :

_________________
Just a french guy loving computers ^^ !
Find me on DA : http://bebert135.deviantart.com/


Top
 Profile  
 
PostPosted: February 14th, 2013, 8:33 am 
Offline

Joined: February 9th, 2013, 9:03 pm
Posts: 4
Hi bebert135,

I would like to help you but I don't know what is your exact problem.
What does it mean "I need to have many volume icons"?

Let's first try it with one which can have 2 states: mute or unmute (if I did understand you correct).

For my better understanding:
If state "mute" -> "mute" (true.png) should be shown
if state "unmute" -> "unmute" (false.png) should be shown

Not sure if that's what you want and could not manage...
Is the case it is...

1. Put the false.png and the true.png inside your widget directory (where that particular widget is stored)
2. Add a VolumeCore (from "Cores") to your widget.
3. Add an Image (from "Components") to your widget.
4a. Now select the image and go to section Binding Core. In Select Core choose VolumeCore1 from dropdown list.
4b. In Format Core Data enter: %IsMute.png
(5. If you like you can add a default image in section Picture, e.g. true.png (or a different png - it doesn't matter))

To create more of those icons simply repeat steps 3-5.

That's it and will hopefully work for you.


Top
 Profile  
 
PostPosted: February 14th, 2013, 2:42 pm 
Offline
User avatar

Joined: January 25th, 2013, 8:36 pm
Posts: 40
Thanks a lot for your answer, but actually, i have two mute/unmute icons.

When i click on one of both, the two icons change state at the same time as the unmute icon.
When i click again on one of the icons, they both change state to mute icon.
But i need to have four different icons.

But that i can't do, is that they have to be named "false" and "true" to be used with the volumecore.
I tried two different volumecores, but thes need the same names of pictures.

Can i name them "true.png", "true1.png", "false.png", "false1.png" ?
Can i put in different directories ?

For example :

"true.png" and "false.png" will be in ...XWidget\widgets\volume\mute1,
"true1.png" and "false1.png" will be in ...XWidget\widgets\volume\mute2

Thanks a lot by advance.

_________________
Just a french guy loving computers ^^ !
Find me on DA : http://bebert135.deviantart.com/


Top
 Profile  
 
PostPosted: February 14th, 2013, 3:46 pm 
Offline

Joined: February 9th, 2013, 9:03 pm
Posts: 4
Just create several files, e.g. false1.png, true1.png, false2.png, true2.png (and put them into "XWidget\widgets\volume")

Put for your first Image (taken from Component) in Format Core Data: %IsMute1.png (which will switch between false1.png / true1.png)
and for the second Image (taken from Component) in Format Core Data: %IsMute2.png (which will switch between false2.png / true2.png)

Should be simple as that.

And yes, you can also put the images in subdirectories of your widget folder "volume" (e.g. volume\mute1, volume\mute2).
But then you have to change the string in Format Core Data for Image1 to: mute1\%IsMute.png (will switch between mute1\false.png and mute1\true.png).
For Image2 you have to enter: mute2\%IsMute.png (will switch between mute2\false.png and mute2\true.png).

As you can see, you just have to put the subfolder name ("mute1\" or "mute2\") in front because XWidget is expecting everything relative to the widget directory - in your example to directory "volume".


Top
 Profile  
 
PostPosted: February 14th, 2013, 5:27 pm 
Offline
User avatar

Joined: January 25th, 2013, 8:36 pm
Posts: 40
Ahah ! It was simple as that ? OMG, i was trying many many things without modifying the Format Core Data !!!

Thank you very much, i'm going to try that.

_________________
Just a french guy loving computers ^^ !
Find me on DA : http://bebert135.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Google [Bot] and 200 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group