On 26 Feb 2004, at 23:57, [EMAIL PROTECTED] wrote:


Message: 10
Date: Thu, 26 Feb 2004 14:52:05 -0800
From: Ken Norris <[EMAIL PROTECTED]>
Subject: Re: custom buttons
To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="US-ASCII"

Hello Wouter,

Date: Thu, 26 Feb 2004 14:40:15 +0100
From: Wouter <[EMAIL PROTECTED]>
Subject: Re: custom buttons

Another possible buttonscript.

local lOldLoc   ### or make custom properties upPos and downPos
on mousedown
put the loc of me into lOldLoc
.....etc.
------------
Just so you know, the script you presented works, but as regards buttons, is
26 lines of code that does exactly the same thing as setting img id's in the
Icons and Borders property.


...But you might want to use it for switching graphic images.

Ken N.



Hi Ken,


Yep it works and even makes the button react like the "normal" buttons do.
Meaning normal buttons change to "up" and "down" states when the mouse leaves
or reenters the rect of the button when the mouse button is kept down.
The other code does not. But may be this is intentional and it is all up to the taste of
the developer.
Thanks for mentioning though.


Greetings,
WA


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to