Shoutbox

[Help] Adding resources - 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] Adding resources (/showthread.php?tid=82446)

[Help] Adding resources by SmokingCookie on 03-18-2008 at 05:53 PM

Hi,

I am currently familiar with replacing resources, but adding a brand new "Options" button to window 923 isn't really working (well, not for me).

Can somebody please explain me how it should work?

Tnx in advance..


RE: [Help] Adding resources by Basilis on 03-18-2008 at 05:55 PM

You have to specify the exact place the image will be and also give it a new id. Then you replace that image under the <New> section in your SkinInfo file.


RE: [Help] Adding resources by SmokingCookie on 03-18-2008 at 06:02 PM

SkinInfo: no problemo, but the Definition isn't exactly organized (even the Consolidated windows).. I think they're very hard to read, let alone to add a new button..

The id is 59001..


RE: [Help] Adding resources by Basilis on 03-18-2008 at 07:33 PM

Check skins that have done it like "Horton hears a who" or "Beaver and Steve"


RE: [Help] Adding resources by SmokingCookie on 03-19-2008 at 02:44 PM

Well, I temporarily inserted your code between the <* PlusSkin > tags..
Doesn't work, I get this error:

code:
08/03/19 15:54:50| DUIParserFailure: Value creation failed '' 115

EDIT:: Used this in the SkinInfo file:

code:
            <Restrictions>
                <SkinOptions>
                    <OptionSet>
                        <Conditions>ShowOptions = "true"</Conditions>
                    </OptionSet>
                </SkinOptions>
            </Restrictions>

(...)

            <Resources>
                <Replace>
                    <Windows>
                        <Definitions>
                            <Definition Id="923">
                                <File>MessengerSkin\ResGroup\Resources\Replace\Windows\Definitions\msgres_4004_923.txt</File>
                            </Definition>
                        </Definitions>
                        <Styles>
                            <Style Id="923">
                                <File>MessengerSkin\ResGroup\Resources\Replace\Windows\Styles\msgres_4005_923.txt</File>
                            </Style>
                        </Styles>
                    </Windows>
                </Replace>
            </Resources>


But of course, it didn't work :S

EDIT 2:: Same error if I move this section into the restrictions group of WLM 8.5.. Line 115 of my file is:

code:
<element class="ToolbarIcon" content=rcimg(59001)/>

RE: [Help] Adding resources by Basilis on 03-19-2008 at 03:55 PM

You have to replace the 59001 like this
<New><Pictures>
<Picture Id="59001">yourimagename.png</Picture>
</Pictures></New>


RE: [Help] Adding resources by SmokingCookie on 03-19-2008 at 04:19 PM

Great...

I have a sign-in problem with Messenger, so I cannot test anything for a while :S

EDIT:: Still doesn't work :S

code:
08/03/19 17:24:27| **** The trace has started ****
08/03/19 17:24:27| Skin: GTA IV Skin 1.01
08/03/19 17:24:27| Messenger version: 8.5.1302.1018 (nl-nl)
08/03/19 17:24:27| Messenger Plus! version: 4.50.312
08/03/19 17:24:27| Last definition file loaded: 923
08/03/19 17:24:27| Last picture file loaded: 59001
08/03/19 17:24:27| DUIParserFailure: Value creation failed '' 115

Line 115:

code:
            <element class="ToolbarIcon" content=rcimg(59001)/>

RE: [Help] Adding resources by Nagamasa on 03-19-2008 at 08:17 PM

Life of Vista has:

code:
<Button cmdid=7460 id=atom(Whalemen) AccRole=57 Class="TransparentButton" Layout=flowlayout(0,2,0,2) Active=MouseandKeyboard|NoSyncFocus Padding=rect(5,4,5,4)>
                                                    <element class="ToolbarIcon" content=rcimg(59107)/>
                                                </Button>
You're probably miss the <Button> part. And because of that, you're probably missing the Style file part:
code:
button[id=atom(Whalemen)]
{
AccName:rcstr(80);
accdesc:rcstr(80);
}

RE: [Help] Adding resources by SmokingCookie on 03-20-2008 at 07:24 AM

No I'm not..

SkinTrace errors:

code:
08/03/20 08:30:31| **** The trace has started ****
08/03/20 08:30:31| Skin: GTA IV Skin 1.50
08/03/20 08:30:31| Messenger version: 8.5.1302.1018 (nl-nl)
08/03/20 08:30:31| Messenger Plus! version: 4.50.312
08/03/20 08:30:31| Last definition file loaded: 923
08/03/20 08:30:31| Last picture file loaded: 59001
08/03/20 08:30:31| DUIParserFailure: Value creation failed '' 115

This is what I have:

code:
    <*PlusSkin Conditions(ShowOptions = true) *>
        <Button cmdid=7460 id=atom(skinbtn) AccRole=57 Class="TransparentButton" Layout=flowlayout(0,2,0,2) Active=MouseandKeyboard|NoSyncFocus Padding=rect(5,4,5,4)>
            <element class="ToolbarIcon" content=rcimg(59001)/> <-- This is line 115
        </Button>
    </*PlusSkin*>

SkinInfo:

code:
                <New>
                    <Pictures>
                        <Picture Id="59001">MessengerSkin\ResGroup\Resources\New\Pictures\BtnOpt.png</Picture>
                    </Pictures>
                </New>

Style file:

code:
Button[id=atom(skinbtn)]
{
accdesc:rcstr(80);
AccName:rcstr(80);
}

EDIT::

I think, for some really weird reason, that the style file isn't loaded..


Thanx lads :D Got it workin' :D