xLabel and shortcut Thread last updated on 2006-12-13 07:56:03

Posted by member 348804 on 2006-12-12 18:16:59

theme.rc:
include "$ConfigDir$xlabel.rc"
;--------xLabel----------------
*NetLoadModule "$xLabelRevID$"
xLabelUseShortcut2

in xLabel.rc:
include "$ConfigDir$plaunch.rc"

in plaunch.rc:
plleftx 100
*shortcut "Test" 1 1 "C:\pl1.png" .none .none #0 !alert test

!alert $plleftx$ shows 100 so I know the rc file is getting lloaded, however I never see a shortcut appear on the desktop. What else do I need to do?

Peter

Posted by member 1949 on 2006-12-12 19:37:18 link

If you have lsimagefolder already defined which it should be then it can not find the image...

Typical OTS2 Setup:
OTSMajorVersion "2"
OTSMinorVersion "0"
ThemeName "Do That Now!"
ThemeAuthor "howudodat"
ThemeVersion "0.1"
ConfigDir "$ThemeDir$config\"
LSImageFolder "$ThemeDir$images\"

So in theory you are loading your images from your theme images folder already!
So basically you just use "pl1.png" without root.

Posted by member 212670 on 2006-12-12 21:44:12 link

And why use shortcut and xlabel in the same theme?

Posted by member 1949 on 2006-12-12 22:33:00 link

What version of xlabel uses xLabelUseShortcut2
I dont think I ever seen that before to use shortcut2 syntax

xlabel uses this:
testx 0
testy 0
testwidth 100
testheight 100
testimage pl1.png
testonleftclick !about

This is shorcut2 syntax
*shortcut "Test" 1 1 "C:\pl1.png" .none .none #0 !alert test

another thing is if you are going to load xlabel like
*NetLoadModule "$xLabelRevID$"
you need to define that variable $xLabelRevID$ like
xLabelRevID xlabel-3.4.2
that is good to use only if you use the module in scripts to load and unload without having to redo you scripts if you update the module later on in theme development.

Posted by member 12025 on 2006-12-13 01:09:11 link

xLabelLight used to do it. With xPaintclass, there's a new shortcut module (www.ls-universe.info).

Posted by member 1949 on 2006-12-13 07:56:03 link

Well that would explain it, I like my burgers with the works.
So I never used the light versions of xlabel.