Editing
Talk:ShowAsHelpMessage - Message
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Display Text in Center of Screen== I've found this can be used as a workaround to display text in the center of the screen without using a messagebox. Not the intended use, but I haven't run into any problems so far. Advantages: Text is more visible in center of screen. Longer text does not compress into tiny fonts (like it does in the upper left corner with <code>Show()</code>). Can set display time. Can use [[Button Tag Replacement]]. Limitations: Text in center of screen can be intrusive. Can't use carriage returns, so can't make the text display lower than the vertical center. If you use a carriage return in the message form, nothing after the return will display. <code>\n</code> just displays as <code>\n</code>, and <code>%r</code> gives an error when editing the form. Example: <blockquote><code> Message property __aHelpMsg auto ... string HelpMsgEvent = "__aHelpMsgEvent" ''; this can be anything at all as long as it's not an event that the game already uses, such as 'jump' -- to be safe, add your mod prefix'' float HelpMsgDisplayTime = 2.0 ''; unlike the display time in the message form, which doesn't do anything, this actually works int MaxTimesToDisplay = 1 ''; if you set this to any other number, the message will repeat that many times (0=indefinitely); if you're using a custom help message event, the user cannot complete the action (as they can with 'jump'), so the message will continue to repeat itself'' __aHelpMsg.'''ShowAsHelpMessage(HelpMsgEvent,HelpMsgDisplayTime,0,MaxTimesToDisplay)''' '''Utility.Wait(HelpMsgDisplayTime)''' ''; ResetHelpMessage will only execute successfully once the help message display time has passed'' '''Message.ResetHelpMessage(HelpMsgEvent)''' ''; this allows you to use the same event again ''</code></blockquote> --[[User:Jayne2132|Jayne2132]] ([[User talk:Jayne2132|talk]]) 2015-01-29T12:09:47 (EST)
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit source
Add topic
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values