Shoutbox

Change button toasts - 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: Change button toasts (/showthread.php?tid=80141)

Change button toasts by jero_sode on 12-17-2007 at 04:26 AM

Hello again, I am trying to change the button to close out the toasts when an email arrives or when someone starts session.
Try in any way but I could not. If someone could help me please to know the exact code.
I have Windows Live Messenger version 8.5

This is the button that want to change by a Vista Aero Style
[Image: botonhv7.png]
And I want the button look like this: [Image: closealone2cq7.png]



I post here because in the forum in Spanish as many answers as there is in this. And I learned something of xml using the Skinning Documentation.  Thanks, Bye.


RE: Change button toasts by blessedguy on 01-17-2008 at 05:45 PM

(for WLM8.5)
open you 921 Style file, search for ai185, you should find this:
Element[ID=Atom(ai185)]
{
Content:rcimg(706);
}
button[id=Atom(FLWCloseBtn)...

See that "button element? It's the toast close button!
I'll show how is mine:
button[id=Atom(FLWCloseBtn)][ContentIndex=0]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59004);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=1]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59005);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=2]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59006);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=3]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59007);
}

In this one, there are 4 states of the button, normal(0), mouse over(1),clicked(2) and after clicked(3), and the image id's for them are 0=59004, 1=59005, 2=59006 and 3=59007, just replace the Style in your SkinInfo.xml, and add those new Images to you file. Now to the SuperToast and the AlertToast.

Look for ai190, you should find this:
Element[ID=Atom(ai190)]
{
Content:rcimg(706);
}
button[id=Atom(FLWCloseBtn)...

change it to add more pictures, with different ids from the ones you've used:

button[id=Atom(FLWCloseBtn)][ContentIndex=0]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59008);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=1]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59009);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=2]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59010);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=3]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59011);
}

and now, the alertstoast...search for ai195, you should find this:
Element[ID=Atom(ai195)]
{
Content:rcimg(706);
}
button[id=Atom(FLWCloseBtn)]..., change again:

button[id=Atom(FLWCloseBtn)][ContentIndex=0]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59012);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=1]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59013);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=2]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59014);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=3]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59015);
}

Now, you've got 12 new Image ids (from 59004 to 59015), just add them to your SkinInfo.xml file, and your toast now should have the buttons you want...in that case, the aero ones...be sure you have 4 different ones, one for normal(ContentIndex=0), one for mouse over(ContentIndex=1), one for clicked(ContentIndex=2) and one for after-clicked(ContentIndex=3). Be sure to replace the Style file!!


RE: Change button toasts by Willz on 01-18-2008 at 03:17 AM

or you can just change the content to 20069, since that is dialog box close resource :P