Panel button screens with text?
Posted: Fri Sep 21, 2018 2:57 am
So I'm trying to make a screen for the player to select a storyline to follow. I'm aiming for it to look like a set of panels, kinda like in the ship UI in Warframe:
Not precisely, mind, but the alternative is a line of indistinguishable text that may or may not actually be seperate buttons. That's gonna confuse the player.
Here's the code I have so far for it:
Not precisely, mind, but the alternative is a line of indistinguishable text that may or may not actually be seperate buttons. That's gonna confuse the player.
Here's the code I have so far for it:
Code: Select all
screen story_select():
zorder 1
frame:
pass
grid 3 2 style "story_select_menu":
textbutton "Introduction" style "story_select_buttons":
action NullAction()
textbutton "\"1-2\"" style "story_select_buttons":
action NullAction()
textbutton "\"1-3\"" style "story_select_buttons":
action NullAction()
textbutton "{b}{i}Codex{/i}{/b}" style "story_select_buttons":
action NullAction()
textbutton "2-2" style "story_select_buttons":
action NullAction()
textbutton "{i}{b}Return{/b} to Main Menu{/i}" style "story_select_buttons":
action NullAction()
style story_select_menu:
font "fonts/SourceCodePro-Regular.ttf"
align (0.5,0.5)
xspacing 60
yspacing 120
style story_select_buttons is story_select_menu:
size 60