Closed scottdanesi closed 7 years ago
PanningLayer
(scrolls any type of layer) exists, as does the MarkupLayer
(use to generate long layers of text), but not every layer type is exposed through the yaml interface. It is worth some discussion to figure out which types of layers we want to expose through that YAML interface.
To do this in code, here is an example:
credits_frame = gen.frame_for_markup("""
#Special thanks to:#
{multimorphic-logo-color}
[Gerry Stellenberg]
[Adam Preble]
[Josh (Rosh)]
[Scott Danesi]
""")
thanksto = dmd.PanningLayer(width=self.game.dmd.width, height=self.game.dmd.height, frame=credits_frame, origin=(0,-140), translate=(0,4), bounce=False)
self.layer = thanksto
Thanks Michael, I think there are some really cool features that we could potentially expose to the YAML interface. Let me know if you would like to get a discussion going.
Closed. This and more were added in the most recent commit. here
Docs: http://pinballprogramming.com/display-layer-markup-language/
Hey Team, We should look at adding a scrolling layer to the attract mode on SG. You know, for a "Special Thanks" kind of section.