What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Skinning » [help me] multi val not working

Pages: (2): « First [ 1 ] 2 » Last »
[help me] multi val not working
Author: Message:
zogo
Junior Member
**

Avatar
all you are doomed

Posts: 98
Reputation: 1
30 / Male / Flag
Joined: Feb 2008
O.P. [help me] multi val not working
hi i need help with a multi val that switches between a image to replace 637

the two image names are "637.png" and "637b.png" i followed the docs as well as i could but it never worked...

anyone help with the code????

thx :)
people have negativly rated me saying i'm spamming just to get 100 posts... i'm not! i'm 100% realy stuck... somtimes
05-28-2008 04:17 PM
Profile E-Mail PM Web Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: [help me] multi val not working
I'm not sure what you mean, if you want an option to be able to have '637.png' OR '637b.png', then this is what you do:

code:
SkinInfo.xml -
    <Options>
      <Skin>
        <Properties>

              <BoolVal Name="637Option">
                <DispLabel> _text that appears in options panel_ </DispLabel>
                <DispHelp> _hover-over text_ </DispHelp>
                <Default> _default value; either 'true' or 'false'_</Default>
              </BoolVal>

        </Properties>
      </Skin>
    </Options>

^^ This creates an options panel for the skin, and creates a BoolVal(true or false) option.
---

<New>
          <Pictures>

            <Picture Id="59001">
              <File>images/637.png</File>
            </Picture>

            <Picture Id="59002">
              <File>images/637b.png</File>
            </Picture>

          </Pictures>
</New>

^^ This adds the images you've made as new resources


Then, where the 637 image is being replace(style or definition file) you need something like this:
code:
background=rcimg<*PlusSkin Conditions(637Option = false) *> (59001) </*PlusSkin*> <*PlusSkin Conditions(637Option = true) *> (59002) </*PlusSkin*> />

^^ And this changes the value of 'rcimg=' to either '(59001)' or '(59002)' depending on whether the option you set earlier is true or false.


For more information on options and how to use <*PlusSkin*> options, I suggest reading "User Modifiable Options section of the skinning documentation(under Specialized Subjects).

This post was edited on 05-28-2008 at 05:50 PM by vaccination.
[Image: jumbled.png]
05-28-2008 05:49 PM
Profile PM Find Quote Report
Willz
Senior Member
****

Avatar

Posts: 953
Reputation: 52
36 / Male / Flag
Joined: Jul 2006
RE: [help me] multi val not working
I think what he is after is being able to change one image depending on what the multi val says. Here is a small example

Multival code for options section:

code:


<MultiVal Name="Button">
                <DispLabel>Pick A button style</DispLabel>
                <DispHelp>My awesomely helpful comment!</DispHelp>
                <Values>
                    <Value DispLabel="Pick Button 1">Button1</Value>
                    <Value DispLabel="Pick Button 1">Button2</Value>
                   
                </Values>
                <Default>Button1</Default>
            </MultiVal>
           




Then what you have to do is create a ResGroup for every single option that is possible to pick for the MultiVal. In this case there is only two.

code:

<ResGroup>
           <Restrictions>
               <MsgVersions>
                   <Version Major="8" Minor="5"/>
               </MsgVersions>
               <SkinOptions>
                   <OptionSet>
                    <Conditions>Button= "Button1" </Conditions>                 
                </OptionSet>
            </SkinOptions>
           </Restrictions>
           <Resources>
               <New>
               <Pictures>
                              <Picture Id="59001">
                                   <File>images/59001_button1.png</File>
                              </Picture>
                        </Pictures>
               </New>
           </Resources>
       </ResGroup>
<ResGroup>
           <Restrictions>
               <MsgVersions>
                   <Version Major="8" Minor="5"/>
               </MsgVersions>
               <SkinOptions>
                   <OptionSet>
                    <Conditions>Button= "Button2" </Conditions>                 
                </OptionSet>
            </SkinOptions>
           </Restrictions>
           <Resources>
               <New>
               <Pictures>
                              <Picture Id="59001">
                                   <File>images/59001_button2.png</File>
                              </Picture>
                        </Pictures>
               </New>
           </Resources>
       </ResGroup>



So as you can see all this does is add resource 59001 depending on what value you have selected in the multival.

If you have a proper options panel then you have to add in a new control that has an Id that matches the MultiVal, also each option has to match the value of each option in the multival.

This post was edited on 05-29-2008 at 12:44 AM by Willz.
05-29-2008 12:43 AM
Profile PM Web Find Quote Report
zogo
Junior Member
**

Avatar
all you are doomed

Posts: 98
Reputation: 1
30 / Male / Flag
Joined: Feb 2008
O.P. RE: [help me] multi val not working
willz is right i followed the documentation to the letter but only one image worked...
people have negativly rated me saying i'm spamming just to get 100 posts... i'm not! i'm 100% realy stuck... somtimes
05-31-2008 09:28 PM
Profile E-Mail PM Web Find Quote Report
Nagamasa
Skinning Contest Winner
*****

Avatar

Posts: 1842
Reputation: 30
30 / Male / Flag
Joined: May 2006
RE: [help me] multi val not working
Give us more details. (i.e., copy and paste the code here) :P
[Image: unled1uo.png]
Joined this forum 6568 days, 19 hours, 40 minutes, 37 seconds ago.



05-31-2008 09:49 PM
Profile PM Web Find Quote Report
blessedguy
Skinning Contest Winner
*****


Posts: 1762
Reputation: 25
31 / Male / Flag
Joined: Jan 2008
RE: [help me] multi val not working
Some images won't accept that way, sometimes.
Just to know... wich images are failing?
[Image: Empty.png]
05-31-2008 11:05 PM
Profile PM Web Find Quote Report
Willz
Senior Member
****

Avatar

Posts: 953
Reputation: 52
36 / Male / Flag
Joined: Jul 2006
RE: RE: [help me] multi val not working
quote:
Originally posted by blessedguy
Some images won't accept that way, sometimes.
Just to know... wich images are failing?

I have never had any problems with multival and alternate resgroups, in fact thats how the core of my Windows Aero Messenger skin works. So its something that hes doing wrong (and others too if they say not all images work).
06-01-2008 12:57 AM
Profile PM Web Find Quote Report
blessedguy
Skinning Contest Winner
*****


Posts: 1762
Reputation: 25
31 / Male / Flag
Joined: Jan 2008
RE: [help me] multi val not working
I said that sometimes it doesn't work, sort of random bug.
stuartbennet and me, for example, just can't use multivals with minmaxclose buttons or our messengers just won't start up
[and yeah, I know windows aero core is that way... I read your SkinInfo... like I've done with all the others, it's good to see how have people done something, because if he/she used a better method, you can just try to do something like that (not copying, though).]

But if he said all images didn't work, of course there is a problem, but:
quote:
Originally posted by zogo
willz is right i followed the documentation to the letter but only one image worked...

[Image: Empty.png]
06-01-2008 03:12 PM
Profile PM Web Find Quote Report
zogo
Junior Member
**

Avatar
all you are doomed

Posts: 98
Reputation: 1
30 / Male / Flag
Joined: Feb 2008
O.P. Huh?  RE: [help me] multi val not working
here is the code for my vista x skin i am updating to enable the title bar bg to be changed i've followed willz coding but it returns to the default banner

code:
<SkinInfo>
    <Information>
        <Name>VISTA X</Name>
        <Description>new to 2 - background chooser, high quality images, new shaded title and much much more!!!</Description>
        <AboutUrl>http://www.pyramid.co.uk.tp</AboutUrl>
        <Version>2.10</Version>
    <Compatibility>
    <MsgVersion Major="8" Minor="5" />
    </Compatibility>
        <Screenshot>
            <File>vista x.png</File>
        </Screenshot>
    </Information>

    <Options><Skin>
        <Properties>
            <BoolVal Name="ChangeBkg">
                <DispLabel>use the vista x background</DispLabel>
                <Default>true</Default>
            </BoolVal>
            <BoolVal Name="titletext">
                <DispLabel>use the vista x 2.0 title</DispLabel>
                <Default>true</Default>
            </BoolVal>


        <MultiVal Name="tbc">
                <DispLabel>title bar colour</DispLabel>
                <DispHelp>just choose a colour</DispHelp>
                <Values>
                    <Value DispLabel="white">white</Value>
                    <Value DispLabel="black">black</Value>
                </Values>
                <Default>black</Default>
            </MultiVal>
        </Properties>
    </Skin></Options>


    <MessengerSkin>
        <ResGroup>
            <Restrictions>
                <MsgVersions>
                    <Version Major="8" Minor="5"/>
                </MsgVersions>
                <SkinOptions>
                  <OptionSet>
                    <BoolVal Name="ChangeBkg">true</BoolVal>
                  </OptionSet>
                </SkinOptions>
            </Restrictions>

            <Resources><Replace>
                <Graphics><Pictures>
                    <Picture Id="20061">
                        <File>20061.jpg</File>
                    </Picture>
                    <Picture Id="59022">
                        <File>20061.jpg</File>
                    </Picture>
                </Pictures></Graphics>
            </Replace></Resources>
        </ResGroup>
        <ResGroup>
            <Restrictions>
                <MsgVersions>
                    <Version Major="8" Minor="5"/>
                </MsgVersions>
                <SkinOptions>
                  <OptionSet>
                    <BoolVal Name="titletext">true</BoolVal>
                  </OptionSet>
                </SkinOptions>
            </Restrictions>

            <Resources><Replace>
                <Graphics><Pictures>
                        <Picture Id="700">
                            <File>700.png</File>
                        </Picture>
                        <Picture Id="701">
                            <File>700.png</File>
                        </Picture>
                        <Picture Id="90">
                            <File>90.png</File>
                        </Picture>
                        <Picture Id="91">
                            <File>90.png</File>
                        </Picture>
                </Pictures></Graphics>
                    <Strings>
                        <String Id="20176">Vista X 2.0</String>
                        <String Id="61143">Vista X 2.0</String>
                    </Strings>
            </Replace></Resources>
        </ResGroup>










<ResGroup>
           <Restrictions>
               <MsgVersions>
                   <Version Major="8" Minor="5"/>
               </MsgVersions>
           </Restrictions>
               <SkinOptions>
                   <OptionSet>
                    <Conditions>tbc= "white" </Conditions>                 
                </OptionSet>
            </SkinOptions>
           <Resources>
               <New>
           <Graphics>
                        <Pictures>
                              <Picture Id="637">
                                   <File>637b.png</File>
                              </Picture>
                        </Pictures>
           </Graphics>
               </New>
           </Resources>
       </ResGroup>
<ResGroup>
           <Restrictions>
               <MsgVersions>
                   <Version Major="8" Minor="5"/>
               </MsgVersions>
           </Restrictions>
               <SkinOptions>
                   <OptionSet>
                    <Conditions>tbc= "black" </Conditions>                 
                </OptionSet>
            </SkinOptions>
           <Resources>
               <New>
           <Graphics>
                       <Pictures>
                              <Picture Id="637">
                                   <File>637.png</File>
                              </Picture>
                        </Pictures>
           </Graphics>
               </New>
           </Resources>
       </ResGroup>












        <ResGroup>
            <Restrictions>
                <MsgVersions>
                        <Version Major="8" Minor="5"/>
        </MsgVersions>
            </Restrictions>
            <Resources>
                <Replace>
                    <Graphics><Pictures>
                        <Picture Id="640">
                            <File>640.png</File>
                        </Picture>
                        <Picture Id="636">
                            <File>636.png</File>
                        </Picture>
                        <Picture Id="1652">
                            <File>1652.png</File>
                        </Picture>
                        <Picture Id="652">
                            <File>652.png</File>
                        </Picture>
                        <Picture Id="1653">
                            <File>652.png</File>
                        </Picture>
                        <Picture Id="20062">
                            <File>652.png</File>
                        </Picture>
                    </Pictures></Graphics>
                </Replace>
            </Resources>

        </ResGroup>
    </MessengerSkin>
</SkinInfo>




i have also a attachment of what it looks like with this code

.jpg File Attachment: vista x.JPG (13.82 KB)
This file has been downloaded 119 time(s).
people have negativly rated me saying i'm spamming just to get 100 posts... i'm not! i'm 100% realy stuck... somtimes
06-05-2008 08:49 PM
Profile E-Mail PM Web Find Quote Report
Nagamasa
Skinning Contest Winner
*****

Avatar

Posts: 1842
Reputation: 30
30 / Male / Flag
Joined: May 2006
RE: [help me] multi val not working
<SkinOptions> is located inside <Restrictions>. (the tbc=white one)
[Image: unled1uo.png]
Joined this forum 6568 days, 19 hours, 40 minutes, 37 seconds ago.



06-05-2008 11:26 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On