Shoutbox

[help] Contact list background multival.. - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Skinning (/forumdisplay.php?fid=41)
+----- Thread: [help] Contact list background multival.. (/showthread.php?tid=82048)

[help] Contact list background multival.. by duck! on 03-02-2008 at 02:50 AM

Whenever i try to do a multival option to change the contact list background the background just stays white.., when its supposed to be blue..=/ when i just do a true/false option it works fine..=/

This is the code I'm using for the option..

code:
<BuddyList id=atom(abView) Layout=FillLayout() CmdGroup=guid("{16E32D35-5350-4805-B7F0-5E782510AF6F}") <*PlusSkin Conditions(Back= Shadow) *>background=rcbkd(59000)</*PlusSkin*><*PlusSkin Conditions(Back= Blue) *>background=rcbkd(59100)</*PlusSkin*><*PlusSkin Conditions(Back= None) *></*PlusSkin*>/>


and in the skininfo.xml..
code:
            <MultiVal Name="Back">
                <DispLabel>Choose a Contact List Background</DispLabel>
                <DispHelp>Pick a background, click okay, restart messenger</DispHelp>
                <Values>
                    <Value DispLabel="Shadow">Shadow</Value>
                    <Value DispLabel="Blue">Blue</Value>
                    <Value DispLabel="None">None</Value>
                </Values>
                <Default>Shadow</Default>
            </MultiVal>

RE: [help] Contact list background multival.. by Willz on 03-02-2008 at 04:15 AM

The easiest way to do a background selector is through different ResGroups for the one image.

That is the way I did it in Ev0, its a lot easier to manage and if you ever want to add more backgrounds in you just add a new resgroup rather than add a whole bunch of new resources and <PlusSkin> conditions.

<ResGroup>
   <Restrictions>
      <MsgVersions>
         <Version Major="8" Minor="5"/>
      </MsgVersions>
      <SkinOptions>
          <OptionSet>
               <Conditions>Background= "Blah"</Conditions>
           </OptionSet>
       </SkinOptions>
     </Restrictions>
      .........
      .........
</ResGroup>
       
Anyway if you need clarification just ask.       


RE: [help] Contact list background multival.. by Volv on 03-02-2008 at 09:43 AM

You're forgetting quotation marks ""

quote:
Originally posted by duck!
<*PlusSkin Conditions(Back= Blue) *>
Should be
quote:
Originally posted by duck!
<*PlusSkin Conditions(Back= "Blue") *>

EDIT: But as Willz said, if you're simply changing the resources being used then it's best to just modify the SkinInfo file to only load the required resource.
RE: [help] Contact list background multival.. by duck! on 03-02-2008 at 10:54 AM

Thanks guys, works now :P