User Tools

Site Tools


Sidebar

Translations of this page:
en

Index

en:traffic:documentation:didildirdoddolldor
[DID: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Inside Double
[DIL: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Inside Left
[DIR: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Inside Right
[DOD: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Outside Double
[DOL: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Outside Left
[DOR: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Outside Right
[DIDT: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Inside Double Transparent
[DILT: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Inside Left Transparent
[DIRT: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Inside Right Transparent
[DODT: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Outside Double Transparent
[DOLT: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Outside Left Transparent
[DORT: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Outside Right Transparent
[DILS: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Inside Left transparent with Sides
[DIRS: <Color_or_picture>,<X>,<Y>,<W>,<H>,<%Time%>,<NumberOfFrames> ] Door Inside Right transparent with Sides

[Dxxx: <Color_or_picture>,<X1>,<Y>,<W>,<H>,<Time>,<NumberOfFrames>,<X2> ]

[Dxxx: <Color_or_picture>,<X1>,<Y>,<W>,<H>,<Time>,<NumberOfFrames>,<X2>,<X3>, … ]

<Color_or_picture> == <PictureName> || <HexColor> || ## <PictureName>

Door Animations

It is not necessary to define each individual phase of a door.  Only the picture of the door itself (which is contained in the original picture) and the picture that appears behind the opened door must be drawn.  The individual phases comprising the animation can be automatically generated by the screensaver program.  The depiction of the opened doors can be either a picture showing interior details, or be merely an expanse of colour.  In the second case one defines the colour field by using the hexadecimal value of the colour prefaced by the # sign.  If a colour is defined as the door opening, the doors will open to reveal this colour to depict what is behind them.

As a special case of the mirroring, if two # characters precede the <PictureName> parameter, the picture of the interior will be mirrored (the single # denotes the hexadecimal colour code in this case).

The modifiers [DIL:], [DIR:], [DID:], [DILT:], [DIRT:], [DIDT:] create a door which retracts into the side of the vehicle, which is typical of many subways.

The modifiers [DOL:], [DOR:], [DOD:], [DOLT:], [DORT:], [DODT:] create a door which opens outside of the vehicle side – that is, the door is always visible and slides to either side (or both) to reveal the opening.

The older [DIL:], [DIR:], [DID:], [DOL:], [DOR:], [DOD:] modifiers work not concerning with transparency. If the door itself, or the vehicle side contain transparent pixels, they won't be treated correctly. The transparent pixels preserve their transparency - the whole vehicle will be transparent on that points, where the resulting picture has a transparent pixel.

The newer [DILT:], [DIRT:], [DIDT:], [DOLT:], [DORT:], [DODT:] modifiers use the transparent part correctly. In the case of a transparent door, the vehicle side (windows) and door replacement (back side of a vehicle, often a similar door remaining closed) are also taken into account in the correct sequence in order to determine the resulting phase pictures for each animation phase.

The newest [DILS:], [DIRS:] modifiers are very similar to the [DILT:] and [DIRT:] modifiers - the only difference is, that [DILS:] and [DIRS:] extends the doors by 1 pixel column on both sides. This pixel column is often drawn as a darker vertical line, showing the sides of the doors. This side line will both remain on place - meaning the border of the opening - and move with the door - meaning the borders of the door.

The <X> and <Y> parameters define the place on the vehicle where the door is placed.  The lower left coordinate is the base point.  With the commands for the external doors DOL, DOR and DOD the  X-coordinate should be used for defining the opening because the animation generated by the screensaver can conceivably exceed the dimensions of the vehicle's picture size when it opens.

The parameters <W> and <H> define the size of the door opening.  When a door picture is shown in its open state, the size of this picture is used as the default and these parameters may be omitted.

The <Time> parameter's default value is 15 (150 ms between the individual phases of the animation) and the parameter <NumberOfFrames> has a default value of the number of phases required to fully open the door.  These parameters can be omitted.

If the parameter <NumberOfFrames> is less than the number of phases necessary to depict a complete opening of the door, the doors will not open completely and a narrower space will remain in the opening.  With internal doors the <NumberOfFrames> is limited to the maximum number of phases.  For the external doors, there is no upper limit.  – one can slide them away from the door opening and even slide them along the car body so that the side of the car is visible between the door and its opening.

The door movements which are generated by the use of these animations can be called in the same style as those called by the [A:DOOR, ] command—both types function with the OPEN and CLOSE events.

One can define several similar doors by appending only the X coordinates of the further doors to the parameter list - all the doors will have the same size, step count and picture. The resulting animations won't be by necessity identical to each other - in case of the [DOxx: ] (outer doors) modifiers the car body part near the doors will be used correctly to generate the animation sequences for the doors.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.
More information
en/traffic/documentation/didildirdoddolldor.txt · Last modified: 2018/09/09 17:51 (external edit)