OpenTTD

Tasklist

FS#5616 - Game Script: StoryPageElementType SPET_EVENT

Attached to Project: OpenTTD
Opened by Ferenc Kiss (idioty) - Tuesday, 25 June 2013, 15:02 GMT
Last edited by andythenorth (andythenorth) - Monday, 04 September 2017, 06:45 GMT
Type Feature Request
Category Script → Goal/Game script
Status New
Assigned To No-one
Operating System All
Severity Very Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

When someone click on one element in the story book, call new GSEvent with reference ID. Like GSEventGoalQuestionAnswer.
This task depends upon

Comment by Leif Linse (Zuu) - Saturday, 29 June 2013, 13:53 GMT
I was thinking about adding some type of answer option element that will allow you to ask questions in the Story Book. However I have left it out of the initial Story Book implementation that is now in trunk.

The Story Book wiki contains a section for possible future extensions: https://secure.openttd.org/wiki/Story_book#Possible_future_extensions

I haven't yet figured out how I want to implement this. I don't think that there should be an event for items used to refer to tiles/goals. These elements allow the GS to refer to things without there being a delay between the click of a button and the GS responding.
Comment by Leif Linse (Zuu) - Saturday, 29 June 2013, 14:03 GMT
To allow for some discussion, I can see multiple ways to do this:

- radio + check buttons that submit upon the click of either some submit/ok-button inside the page view or upon click of next
- buttons/elements that send an event when the user clicks on them (like your suggestion)


With radio buttons, can there be multiple radio groups on one page?

To follow TTD style, the radio buttons possible should be implemented as a drop-down or using push buttons.
Comment by Ferenc Kiss (idioty) - Saturday, 29 June 2013, 19:45 GMT
I like both of these solutions.
The drop-down list is more transparent than the radio buttons.
I think you should submit button and also linkable components may be.
Comment by Ferenc Kiss (idioty) - Saturday, 03 August 2013, 10:39 GMT
Any news on this?
Comment by Leif Linse (Zuu) - Saturday, 03 August 2013, 10:52 GMT
I haven't started on any implementation yet. There are still things like  FS#5617  to fix. Also I have planned to hide the story/goal buttons in the main menu when no pages/goals exist.
Comment by Ferenc Kiss (idioty) - Saturday, 03 August 2013, 12:48 GMT
thanks!
Comment by Ferenc Kiss (idioty) - Monday, 23 September 2013, 15:17 GMT
I need to clickable elements also in StoryPage element with GSText:
{TOWN}: show the town,
{COMPANY}: show the companys info window, etc...
Comment by Leif Linse (Zuu) - Monday, 23 September 2013, 22:53 GMT
For {TOWN} you can use SPET_LOCATION and feed it with the location of your town.

Yes it would be pretty with a town icon, a station icon etc. but I chosen to only use a generic SPET_LOCATION to simplify things.
Comment by Ferenc Kiss (idioty) - Wednesday, 25 September 2013, 10:55 GMT
Thanks, you're right with SPET_LOCATION! :)

Loading...