Author Topic: SCI1.1 Messager/Printing  (Read 4920 times)

0 Members and 1 Guest are viewing this topic.

Offline MusicallyInspired

SCI1.1 Messager/Printing
« on: April 03, 2016, 03:12:50 AM »
So getting used to the new way of Printing. It's quite different from SCI0 where you could just Print directly whatever you wanted. Now we gotta use this Messager class. Which is neat. However,...

1) Is there any way to throw a timer on the message being printed? I tried "cue: 3" figuring that a value would be a delay but it disappears instantly. Not sure what the purpose of cue would be.
2) What about changing the font for a specific message window?
3) Title text on the message window?


Brass Lantern Prop Competition

Offline Kawa

Re: SCI1.1 Messager/Printing
« Reply #1 on: April 03, 2016, 04:15:29 AM »
1) Narrators and Talkers use the character length of the string or the sample length of the spoken words to decide when to close.
2) Narrators and Talkers decide their stylings.
3) BorderWindow doesn't support title texts. If you set your Narrator/Talker up to include a title it'll set one but it won't show up unless you use a SysWindow instead.

4) You can always use the Print class and/or Prints procedure if you want flexibility. Messager is not a requirement.

Edit: quick untested example
Code: [Select]
; SCI0
(= choice
(Print
#font gFont
#at -1 160
#button "Intro" 0
#button "Play" 1
#button "Restore" 2
#button 42 3 ; surprise text resource
)
)

; SCI11
(= choice
(Print
font: gFont
posn: -1 160
addButton: 0 "Intro" 0 0 ; must specify own coords
addButton: 1 "Play" 40 0
addButton: 2 "Restore" 80 0
addButton: 3 1 0 0 6 135 0 ; suprise message resource
init: ; actually show the thing
)
)
« Last Edit: April 03, 2016, 04:26:13 AM by Kawa »

Offline MusicallyInspired

Re: SCI1.1 Messager/Printing
« Reply #2 on: April 03, 2016, 11:49:20 AM »
I tried creating a new Print from scratch and nothing showed up on screen, though it behaved as if it was there because pressing enter "closed" it and the game continued. Ahhh "Init". Never did that.

Is there any way to remove the timer then? I wouldn't want to use it at all times. I like when it just sits there and you can take your time reading.
Brass Lantern Prop Competition

Offline Kawa

Re: SCI1.1 Messager/Printing
« Reply #3 on: April 03, 2016, 01:04:12 PM »
Properly, you should subclass Narrator and give it a custom doit, which in this case would probably just return 1. But let's just be cheap and make the actual Narrator do that. Untested, mind you. It'd still set ticks and count down but never act on it.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.036 seconds with 18 queries.