plainblack.com
Username Password
search
Bookmark and Share

XEyes macro

SEE IT IN ACTION 

http://www.oqapi.nl/xeyes-macro

NAME

XEyes macro

SYNOPSIS

Using preconfigured cuteness:

    ^XEyes();
    ^XEyes(xeyes);    
    ^XEyes(psycho);
    ^XEyes(pomade);

Or using your own images:

    ^Xeyes(/extras/xeyes/faces/xeyes.gif,/extras/xeyes/eyes/normal.gif,37;50;27;40,115;50;27;40);

DESCRIPTION

This macro brings the most important software ever made by mankind from the unix playland to the omnipotent internet, allowing even windows users to enjoy the praise of hours of wasted time.

Additionally not only the original xeyes software is being emulated by crispy javascript, it allows custom faces and eyeballs to be used.

EASY USAGE

For your convenience the macro comes with three defaults:

    - xeyes: the classic xeyes
    - psycho: frantic xeyes
    - pomade: yours truly being attacke by gooey

Just pass your configuration to the macro, eg. ^XEyes(psycho);

If you do not give any configuration the macro will default to xeyes.

CUSTOMIZATION

If you want to use a custom mugshot and/or eyeballs you'll have to do some work.

First of all the invocation is as follows:
    ^XEyes(faceUrl,imageUrl,eyeballDefinition1,eyeballDefinition2,...eyeballdefinitionN);

faceUrl is the url to the face image.

eyeballUrl is the url to the eyeball image

Eyeball definitions define the area to which an eye is bounded. Such an area is an ellipse. The defintion defining this ellipse is just a bunch of semicolon seperated values, and is defined as follows:

    eyeCenterX;eyeCenterY;eyeRadiusX;eyeRadiusY

eyeCenterX: the X position of the center of the ellipse relative to the top left corner of the face image.

eyeCenterY: the Y position of the center of the ellipse relative to the top left corner of the face image.

eyeRadiusX: the horizontal radius of the ellipse; the half of the width of the ellipse.

eyeRadiusY: the vertical radius of the ellipse; the half of the height of the ellipse.

EXAMPLE

The following invocation

    ^Xeyes(/extras/xeyes/faces/xeyes.gif,/extras/xeyes/eyes/normal.gif,37;50;27;40,115;50;27;40);

has two eyes. The first eyes center is located at (37,50) relative to the image of the face, and it has an x radius of 27 pixels, and an y radius of 40 pixels. The second eye is located at (115,50) and has the same radii as the first eye.

The face is located at http://mysite.com/extras/xeyes/faces/xeyes.gif, the eyeball
at http://mysite.com/extras/xeyes/eyes/normal.gif

CUSTOM EYEBALL IMAGES

An eyeball image can have arbitrary dimensions. The software will figure those out by itself. You should only make sure that the eyeball fits exactly in the square shaped  image.

For the background use transparency. If you use the png format, transparencies will render as black in every IE except 7. This is a bug in IE.

MANY XEYES

XEyes are especially cute and pony like if you use a lot of them. Doing this is easy: put more ^XEyes; on your page! There is a catch however.

WebGUI caches macro executions of macros with equal parameters. This has as a result that if you use more XEyes macro's on the same page with the same parameters they will
break. There is a workaround however. You can include an arbitrary number to the parameter list. If you make sure these numbers are unique all is well. Example

^XEyes();^XEyes(1);
^XEyes(psycho);^XEyes(2);
^XEyes(3);XEyes(psycho,1);

This also works for custom faces.

INSTALLATION

  1. Untar the archive in the directory containing your webgui root, ie. the same directory in which you untar new webgui releases.
  2. Add the macro to the config file.
  3. Restart the server.
  4. Start adding those cute eyecandys!


PREVIEW

Check out the attached screenshots! 

CHANGELOG 

1.0.1

    Added copyright.

 

System Requirements

Please be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.

Comments
DownloadXEyes-1.0.1.tar.gz XEyes-1.0.1.tar.gz
LinksNo Support Offered
ScreenshotsxeyesScreenshot.png gimmeMore.png
Statistics Downloads: 509
Views: 5603
Rating: 0
Updated: 6/15/2009
Keywords acme macros
NavigationMore from Martin Kamerbeek
Back to the Bazaar
© 2019 Plain Black Corporation | All Rights Reserved