[12 Feb 2008] Request for a New Directional Function

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[12 Feb 2008] Request for a New Directional Function

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 12 Feb 2008 06:39:58 -0000

Hi Andreas,

Would it be possible for you to add a directional function, perhaps something like this...

Code: Select all

NAME:
Align()

SYNOPSIS:
Align(direction, placement)

FUNCTION:
This is a function to give more flexibility to the placement of objects (#BRUSH, #BRUSHPART, #LAYER, #TEXTOBJECTS,#ANIM) when they are displayed.

INPUTS :
direction---either #CENTER (centers the object either horizontally or vertically), or #OPPEDGE (uses the opposite edge of the object for alignment---either the Bottom edge or the Right edge)
placement---depending on the specified direction, either an X or Y variable

EXAMPLE:
DisplayBrush(1, Align(#CENTER, 250), Align(#OPPEDGE, 300)
This would display brush 1 centered at x=250 (left edge at 200 if the brush's width is 100) and having its bottom edge at y=300 (top edge at 200 if the brush's height is 100)

Thank you for your consideration.
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[20 Feb 2008] Re: Request for a New Directional Function

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 20 Feb 2008 01:12:36 +0100

I will consider it for a future update. At least this won't give me any headaches to implement. And writing the documentation for it will probably take me longer than writing the code :)

Until then, this function could of course be very easily written in Hollywood itself, as a simple p_Align() function!
Locked