Difference between revisions of "Talk:Options Menu"
Jump to navigation
Jump to search
imported>Archerkb (removed my last edit after realizing it was an erroneous suggestion) |
imported>Cdcooley |
||
Line 3: | Line 3: | ||
I don't think there's a need to check for when aiButton is -1. Unlike with the previous script language, Papyrus seems to pause script execution (of the rest of the event/function) until it receives input from the Show() function. {{unsigned|13 April 2012|Fg109}} | I don't think there's a need to check for when aiButton is -1. Unlike with the previous script language, Papyrus seems to pause script execution (of the rest of the event/function) until it receives input from the Show() function. {{unsigned|13 April 2012|Fg109}} | ||
:Yep, Show() will block the script until it returns. If the return value is -1 then it means the message failed to show for some reason. I think that would more likely happen during development if the author forgot to set a property. If it's ever seen in a released then something is fubar. [[User:Tunaisafish|Tunaisafish]] 05:17, 13 April 2012 (EDT) | :Yep, Show() will block the script until it returns. If the return value is -1 then it means the message failed to show for some reason. I think that would more likely happen during development if the author forgot to set a property. If it's ever seen in a released then something is fubar. [[User:Tunaisafish|Tunaisafish]] 05:17, 13 April 2012 (EDT) | ||
::Reading the description of the return value and doing a little testing I am certain that a MessageBox style message will never return a -1. The -1 gets returned if it's a Notification style message. And if you try to use Show on an unfilled property, you'll get a 0 return value! So make sure your first button is a reasonable choice for a default. [[User:Cdcooley|Cdcooley]] 18:13, 13 June 2012 (EDT) |
Revision as of 18:13, 13 June 2012
aiButton < 0
I don't think there's a need to check for when aiButton is -1. Unlike with the previous script language, Papyrus seems to pause script execution (of the rest of the event/function) until it receives input from the Show() function. —The preceding unsigned comment was added by Fg109 (talk • contribs) 13 April 2012
- Yep, Show() will block the script until it returns. If the return value is -1 then it means the message failed to show for some reason. I think that would more likely happen during development if the author forgot to set a property. If it's ever seen in a released then something is fubar. Tunaisafish 05:17, 13 April 2012 (EDT)
- Reading the description of the return value and doing a little testing I am certain that a MessageBox style message will never return a -1. The -1 gets returned if it's a Notification style message. And if you try to use Show on an unfilled property, you'll get a 0 return value! So make sure your first button is a reasonable choice for a default. Cdcooley 18:13, 13 June 2012 (EDT)