1681
SCI Development Tools / Re: SCI Companion V3 - alpha build notes/bugs/feature requests
« on: June 20, 2015, 01:51:25 PM »Great to see someone else join in!Happy to be here. If you need template graphics, preferably UI stuff, hit me up.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Great to see someone else join in!Happy to be here. If you need template graphics, preferably UI stuff, hit me up.
Geez where were you guys when I initially asked this question? lolI can speak only for myself -- I wasn't here, thinking SCI dev dead.
(5
(= seconds 0)
(= gCursor 999)
(gGame setCursor: 999 1)
(Print
dialog: myDialog
font: gFont
width: 150
mode: 1
addText: N_TITLEMENU V_LOOK 0 4 0 0 0
addText: N_TITLEMENU V_LOOK 0 5 0 10 0
addColorButton: 0 N_TITLEMENU V_LOOK 0 1 0 40 0 0 15 23 5 5 5
addColorButton: 1 N_TITLEMENU V_LOOK 0 2 0 50 0 0 15 23 5 5 5
)
(= temp0 (Print
addColorButton: 2 N_TITLEMENU V_LOOK 0 3 0 70 0 0 15 23 5 5 5
init:
))
(switch (temp0)
(0
(gRoom newRoom: 110)
)
(1
(gGame restore:)
(self changeState: state)
)
(2
(= gQuitGame TRUE)
)
)
)
And basically replace that with this:(5
(= seconds 0)
(= gCursor 999)
(gGame setCursor: 999 1)
(Print
dialog: myDialog
font: gFont
width: 150
mode: 1
addText: N_TITLEMENU V_LOOK 0 5
addButton: 0 N_TITLEMENU V_LOOK 0 1 0 24
addButton: 1 N_TITLEMENU V_LOOK 0 2 0 40
)
(= temp0 (Print
addButton: 2 N_TITLEMENU V_LOOK 0 0 56
init:
))
(switch (temp0)
(0
(gRoom newRoom: 110)
)
(1
(gGame restore:)
(self changeState: state)
)
(2
(= gQuitGame TRUE)
)
)
)
Though personally I removed the message bits for preference and folded the print and assignment in one like this:(= temp0 (Print
dialog: myDialog
font: gFont
width: 150
mode: 1
; addTitle: {Window title anyone?}
addText: {Hi there. Please, make your selection:}
addButton: 0 {Play a New Game} 0 24
addButton: 1 {Restore an Old Game} 0 40
addButton: 2 {Quit} 0 56
init:
))
(instance sq5Win of SysWindow //BorderWindow
That's it you're done. Technically I eliminated a whole lot more BorderWindow usages but this oughta do for anything (Print)ed.That's exactly what I did. Among other things.Ooooh care to share that in the tutorial section?Change addColoredButton to addButton? You may have to change some of the parameters... experiment a little.
SMF 2.0.19 |
SMF © 2021, Simple Machines
Simple Audio Video Embedder
Page created in 0.104 seconds with 20 queries.