Latest Forum Posts
Andymon on 07 Nov : 14:16
I won't add something regardin[more]

Andymon on 07 Nov : 14:15
You must Activate xDesktop Em[more]

GothsSecret on 07 Nov : 14:05
@Niza:
no, cause xLab[more]

Niza on 07 Nov : 10:15
Don't you need to load the xDe[more]

Wolzly on 07 Nov : 06:09
Here's my theme.rc to see if[more]

Backend
Our headlines can be syndicated by using either our rss or text feeds.
news.xml - news.txt





 
The Litestep Site for News, Modules, Sources, and all the other stuff around Litestep.

 
 
   
LS-Universe.info -> Forums -> Modules -> [xlabel] negative position
[xlabel] negative position
Go to page -1-2 Next
<< Previous thread | Next thread >>  
Author Post
martoh
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 ?
Back to top
ElkMonster
Thread: [xlabel] negative position
             Tue May 11 2004, 07:06PM

Registered Member #5
Joined: Fri Apr 30 2004, 12:30AM
posts 73
so what? -20 is equal to resolution-20...
Back to top
Anonymous
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).
Back to top
Anonymous
Thread: [xlabel] negative position
             Wed May 12 2004, 01:52AM

Guest
-30 means 30 pixels to the left of the right edge (or up from the bottom edge).
So it is the same as $ResolutionX-30$ (or $ResolutionY-30$).
Back to top
GothsSecret
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 ::--
Back to top
Smurth
Thread: [xlabel] negative position
             Wed May 12 2004, 07:21AM
Registered Member #7
Joined: Fri Apr 30 2004, 04:35AM
posts 41
What do you want ?
Real negative coords ?

Then, just do like this:
!varset x %#x-resolutionx%#
!varset y %#y-resolutiony%#
Back to top
martoh
Thread: [xlabel] negative position
             Wed May 12 2004, 10:23AM
Registered Member #9
Joined: Fri Apr 30 2004, 02:21PM
posts 15
thank you smurth !

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.
Back to top
ElkMonster
Thread: [xlabel] negative position
             Tue May 18 2004, 09:32PM

Registered Member #5
Joined: Fri Apr 30 2004, 12:30AM
posts 73
oops, now i've come across this problem myself... although i thought "why would you want to place something offscreen?" some days ago
Back to top
Andymon
Thread: [xlabel] negative position
             Wed May 19 2004, 01:18PM

Joined: Thu Apr 29 2004, 08:25PM
posts 181
Just as info:
I've added "Real Negative Coordinates" in upcoming xLabel-3.0!

Like in Layercuts -> Prefix ~
Back to top
martoh
Thread: [xlabel] negative position
             Wed May 19 2004, 06:31PM
Registered Member #9
Joined: Fri Apr 30 2004, 02:21PM
posts 15
thank you very much ! not too much work I hope !
Back to top
Anonymous
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.
Back to top

Quick Reply:

 

Go to page -1-2 Next

Jump:     Back to top



Chatbox



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


GothsSecret
   on 02 Nov : 19:54
hehe doin my best


Wolzly
   on 01 Nov : 18:54
ROFL!

You guys never fail to entertain


GothsSecret
   on 01 Nov : 15:47
oh.. sorry to those 2 online ppl, Just fucked up the site for a short mement


Backslash
   on 01 Nov : 06:00
xPopup 1.0.8 ROCKS!


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.









© by LS-Universe.info