[GS] Further control over GS story page formatting #10388
andythenorth
started this conversation in
Features
Replies: 1 comment 1 reply
-
Hello, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be helpful to have some more control over GS story page formatting.
I think that we want to be careful what we add. Story pages are not supposed to provide sophisticated layout engines, and I don't think that's needed.
Page flow control
Usually where the layout engine / UI is rudimentary, creative authors rely on things like text formatting. Long history of that with shell, ASCII art etc.
Examples are things like dividers, which are often provided elsewhere as '-----------' or '========='.
Might be helpful to offer a little more control over that. For example, text default aligns left. Button elements can be somewhat floated left or right using StoryPageButtonFlags, but there's nothing currently to control text, for e.g alignment left/right/center.
Might be a simple extension? I know we have RTL language support to consider, but seems we'd just invert left/right for that?
Element extension
Additionally / alternatively, we could extend the element types to include things like horizontal dividers?
GSText as arg to text elements
It may be author error, but I can't get GSStoryPage.NewElement() to successfully use a GSText string for the 4th parameter (text to display). Doxygen does not mention this as supported, so it's not really a bug.
Trying it does not crash GS with a type error, which is what I was expecting, and the story page renders, but the contents of the GSText string are not displayed. Maybe it's just getting an empty string or something in that case.
Seems that making GSText available in story page would be useful. Or if it's already possible, updating doxygen comments to that effect.
String control codes in elements
The usual string control codes like {GOLD} are not supported in strings for story page elements. If they were supported by using a GSText instance, that might be a good solution, otherwise it might be helpful to have them directly for story pages.
Beta Was this translation helpful? Give feedback.
All reactions