コード例 #1
0
DisplayableParser("fixed",
                  renpy.display.layout.MultiBox,
                  "fixed",
                  many,
                  default_keywords={'layout': 'fixed'})
add(box_properties)

DisplayableParser("grid", renpy.display.layout.Grid, "grid", many)
Positional("cols")
Positional("rows")
Keyword("transpose")
add(grid_properties)

DisplayableParser("side", renpy.display.layout.Side, "side", many)
Positional("positions")
Style("spacing")

# Omit sizer, as we can always just put an xmaximum and ymaximum on an item.

for name in ["window", "frame"]:
    DisplayableParser(name, renpy.display.layout.Window, name, 1)
    add(window_properties)

DisplayableParser("key", renpy.ui._key, None, 0)
Positional("key")
Keyword("action")
Keyword("activate_sound")

DisplayableParser("timer",
                  renpy.display.behavior.Timer,
                  "default",
コード例 #2
0
    "area",
    "clipping",
    "xfill",
    "yfill",
    # no center, since it can conflict with the center transform.
    "xcenter",
    "ycenter",
    "xsize",
    "ysize",
    "xysize",
    "alt",
    "debug",
    "tooltip",
]

position_properties = [Style(i) for i in position_property_names]
text_position_properties = [
    PrefixStyle("text_", i) for i in position_property_names
]
side_position_properties = [
    PrefixStyle("side_", i) for i in position_property_names
]
viewport_position_properties = [
    PrefixStyle("viewport_", i) for i in position_property_names
]
scrollbar_position_properties = [
    PrefixStyle("scrollbar_", i) for i in position_property_names
]
vscrollbar_position_properties = [
    PrefixStyle("vscrollbar_", i) for i in position_property_names
]
コード例 #3
0
ファイル: sldisplayables.py プロジェクト: malini/renpy
    "xmaximum",
    "ymaximum",
    "area",
    "clipping",
    "xfill",
    "yfill",
    # no center, since it can conflict with the center transform.
    "xcenter",
    "ycenter",
    "xsize",
    "ysize",
    "xysize",
    "alt",
]

position_properties = [Style(i) for i in position_property_names]
text_position_properties = [
    PrefixStyle("text_", i) for i in position_property_names
]
side_position_properties = [
    PrefixStyle("side_", i) for i in position_property_names
]

text_property_names = [
    "antialias",
    "vertical",
    "black_color",
    "bold",
    "color",
    "drop_shadow",
    "drop_shadow_color",
コード例 #4
0
    "area",
    "clipping",
    "xfill",
    "yfill",
    # no center, since it can conflict with the center transform.
    "xcenter",
    "ycenter",
    "xsize",
    "ysize",
    "xysize",
    "alt",
    "debug",
    "tooltip",
    ]

position_properties = [ Style(i) for i in position_property_names ]
text_position_properties = [ PrefixStyle("text_", i) for i in position_property_names ]
side_position_properties = [ PrefixStyle("side_", i) for i in position_property_names ]
viewport_position_properties = [ PrefixStyle("viewport_", i) for i in position_property_names ]
scrollbar_position_properties = [ PrefixStyle("scrollbar_", i) for i in position_property_names ]
vscrollbar_position_properties = [ PrefixStyle("vscrollbar_", i) for i in position_property_names ]

text_property_names = [
    "antialias",
    "vertical",
    "black_color",
    "bold",
    "color",
    "drop_shadow",
    "drop_shadow_color",
    "first_indent",
コード例 #5
0
    "ymaximum",
    "area",
    "clipping",
    "xfill",
    "yfill",
    # no center, since it can conflict with the center transform.
    "xcenter",
    "ycenter",
    "xsize",
    "ysize",
    "xysize",
    "alt",
    "debug",
]

position_properties = [Style(i) for i in position_property_names]
text_position_properties = [
    PrefixStyle("text_", i) for i in position_property_names
]
side_position_properties = [
    PrefixStyle("side_", i) for i in position_property_names
]

text_property_names = [
    "antialias",
    "vertical",
    "black_color",
    "bold",
    "color",
    "drop_shadow",
    "drop_shadow_color",
コード例 #6
0
    "ymaximum",
    "area",
    "clipping",
    "xfill",
    "yfill",
    # no center, since it can conflict with the center transform.
    "xcenter",
    "ycenter",
    "xsize",
    "ysize",
    "xysize",
    "alt",
    "debug",
]

position_properties = [Style(i) for i in position_property_names]
text_position_properties = [
    PrefixStyle("text_", i) for i in position_property_names
]
side_position_properties = [
    PrefixStyle("side_", i) for i in position_property_names
]

text_property_names = [
    "antialias",
    "vertical",
    "black_color",
    "bold",
    "color",
    "drop_shadow",
    "drop_shadow_color",
コード例 #7
0
        "ymaximum",
        "area",
        "clipping",
        "xfill",
        "yfill",
        # no center, since it can conflict with the center transform.
        "xcenter",
        "ycenter",
        "xsize",
        "ysize",
        "xysize",
        "alt",
        "debug",
        ]

position_properties = [ Style(i) for i in position_property_names ]
text_position_properties = [ PrefixStyle("text_", i) for i in position_property_names ]
side_position_properties = [ PrefixStyle("side_", i) for i in position_property_names ]

text_property_names = [
        "antialias",
        "vertical",
        "black_color",
        "bold",
        "color",
        "drop_shadow",
        "drop_shadow_color",
        "first_indent",
        "font",
        "size",
        "hyperlink_functions",
コード例 #8
0
ファイル: sldisplayables.py プロジェクト: PowerOlive/renpy
                  renpy.display.layout.MultiBox,
                  "fixed",
                  many,
                  default_keywords={'layout': 'fixed'})
add(box_properties)

DisplayableParser("grid", renpy.display.layout.Grid, "grid", many)
Positional("cols")
Positional("rows")
Keyword("transpose")
Keyword("allow_underfull")
add(grid_properties)

DisplayableParser("side", renpy.display.layout.Side, "side", many)
Positional("positions")
Style("spacing")

# Omit sizer, as we can always just put an xmaximum and ymaximum on an item.

for name in ["window", "frame"]:
    DisplayableParser(name, renpy.display.layout.Window, name, 1)
    add(window_properties)

DisplayableParser("key", renpy.ui._key, None, 0)
Positional("key")
Keyword("action")
Keyword("activate_sound")
Keyword("capture")

DisplayableParser("timer",
                  renpy.display.behavior.Timer,