|
36.
|
|
|
Style Property Values
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:101
|
|
37.
|
|
|
Each style property expects a specific kind of data. Many of these are standard python types, but a few are novel. Here are descriptions of the novel kinds of value a style property can expect.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:103
|
|
38.
|
|
|
`position`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:128
|
|
39.
|
|
|
Positions are used to specify locations relative to the upper-left corner of the containing area. (For positions, the containing area is given by the layout the displayable is in, if one is given, or the screen otherwise. For anchors, the containing area is the size of the displayable itself.)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:108
|
|
40.
|
|
|
The way a position value is interpreted depends on the type of the value:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:114
|
|
41.
|
|
|
int (like 0, 1, 37, or 42)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:118
|
|
42.
|
|
|
An integer is interpreted as the number of pixels from the left or top side of the containing area.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:118
|
|
43.
|
|
|
float (like 0.0, 0.5, or 1.0)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:123
|
|
44.
|
|
|
A floating-point number is interpreted as a fraction of the containing area. For example, 0.5 is a point halfway between the sides of the containing area, while 1.0 is on the right or bottom side.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:121
|
|
45.
|
|
|
renpy.absolute (like renpy.absolute(100.25))
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style_properties.rst:128
|