Thread: [xlabel] negative position
Tue May 11 2004, 06:26PM
Registered Member #9
Joined Fri Apr 30 2004, 02:21PM
posts 15
when I reload my theme, I'm saving the actual position of each label with mzvars.
But negative positions like "x -20" becomes "$xresolution$-20" when I reload...
Layercut is using "~" for going trough this, can you do the same for xlabel ?
Thread: [xlabel] negative position
Wed May 12 2004, 01:46AM
Guest
elkmonster: shouldnt be, -30 is -30 (30 px to the left from the left edge), and resolutionx-30 is resolutionx-30 (30 px to the left from the right edge).
Thread: [xlabel] negative position
Wed May 12 2004, 02:30AM
posts 69
some modules need this trick, like vTray or systray2. if you set
systrayx -200
it wouldn't work, but if you set
systrayx $resolutionx-200$
it works.
it only means that you take the current resolutionX width and start start from the right edge -200. if you want to start from left, you only have to set the positive value (200).
but if you set $resolutionx+200$, that would mean your image (or s/th) would start 200px out of the right screen border, so that doesn't make sense.
the $resolutionx/y$ var is very important for themer, cause with it you can create themes which does not need any specific resolution. you can do a lot of math with int vars:
$resolutionx/2-200$
= current resolution devidet with 2 minus 200px from right. now if your image has a 400px width, it will be absolutly centered on the x coordinate.
--:: What is not dead which can eternal lie, yet with strange eaons, even death may die ::--
the problem is that I was using $(label-name)CurrentX$ for saving my values with an object -20 from the left corner and on reload it was placed on -20 from the right corner.
Thread: [xlabel] negative position
Thu May 20 2004, 04:53AM
Guest
err... another one: on !labelrefresh, obviously !labelmove is executed, which unexpectedly converts real negative coordinates like $x-resolutionx$ (where x is negative) back into $x$, so that the label is moved again to the opposite side.
Maestr0
on
07 Nov : 17:35
chatbox looks very cool, very nicely done!
GothsSecret
on
07 Nov : 15:27
ok, to all xLabel Desktop users, if you want to enable the desktop funtion, you need to set "xLabelUsexDesktop"! !! else it couldn't work. sorry for forgetting to mention it in the readme *g* next time it will be in there
Juan Guillermo
on
31 Oct : 23:46
Thanks a lot for your GREAT work guis , xmodules are transforming the Litestep shell in a much more fancy/varsatile thing.
AngelKnight
on
30 Oct : 16:44
^_^
Backslash
on
29 Oct : 00:54
>Andymon - woot!
>GothsSecret - If necessary, you could probably reduce the gaps between the center and the sides, for those with lower resolutions (not me, I'm at 1280x1024!).
Andymon
on
28 Oct : 13:02
Just wanna tell:
HighColor(16bit) is coming for all xModules in the near future, finally.