XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Possible to have many volume mute icons ? https://www.bbs.xwidget.com/viewtopic.php?f=8&t=2598 |
Page 1 of 1 |
Author: | bebert135 [ February 12th, 2013, 8:18 pm ] |
Post subject: | Possible to have many volume mute icons ? |
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 : ![]() |
Author: | jackiD [ February 14th, 2013, 8:33 am ] |
Post subject: | Re: Possible to have many volume mute icons ? |
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. |
Author: | bebert135 [ February 14th, 2013, 2:42 pm ] |
Post subject: | Re: Possible to have many volume mute icons ? |
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. |
Author: | jackiD [ February 14th, 2013, 3:46 pm ] |
Post subject: | Re: Possible to have many volume mute icons ? |
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". |
Author: | bebert135 [ February 14th, 2013, 5:27 pm ] |
Post subject: | Re: Possible to have many volume mute icons ? |
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. |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |