Page 1 of 1

[12 Feb 2008] Request for a New Directional Function

Posted: Sat Jun 13, 2020 5:31 pm
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.

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

Posted: Sat Jun 13, 2020 5:31 pm
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!