Custom pop-up messages?
- Versepelles
- Long Handed Inserter
- Posts: 70
- Joined: Sat May 28, 2016 1:42 pm
- Contact:
Custom pop-up messages?
Is it possible to create custom pop-up messages in freeplay, like the intro and game-end messages? Player.set_ending_screen_data(...) provides a one-time message that fires when a rocket is launched, but I'd like to have multiple of these, if possible.
Author of:
- DedlySpyder
- Filter Inserter
- Posts: 254
- Joined: Fri Jun 20, 2014 11:42 am
- Contact:
Re: Custom pop-up messages?
Like box with the arrow pointer to the player? I believe it uses this.
- Versepelles
- Long Handed Inserter
- Posts: 70
- Joined: Sat May 28, 2016 1:42 pm
- Contact:
Re: Custom pop-up messages?
That's close; I think I actually meant the box with a grey background that triggers when the player launches a rocket. Is there a way to message the player in that style, aside from the initial win instance? The game.show_message_dialog(...) method only works for a single player, which isn't quite what I'm looking for.DedlySpyder wrote:Like box with the arrow pointer to the player? I believe it uses this.
Author of:
- DedlySpyder
- Filter Inserter
- Posts: 254
- Joined: Fri Jun 20, 2014 11:42 am
- Contact:
Re: Custom pop-up messages?
I'm not really sure what you mean, unless you're talking about the game over (with kill stats) screen? If you want something like that you could just use a GUI frame with a button to close it.
Re: Custom pop-up messages?
Just copy the player.gui code from Factorio\data\base\scenarios\freeplay\control.luaVersepelles wrote:I actually meant the box with a grey background that triggers when the player launches a rocket. Is there a way to message the player in that style, aside from the initial win instance?
- Versepelles
- Long Handed Inserter
- Posts: 70
- Joined: Sat May 28, 2016 1:42 pm
- Contact:
Re: Custom pop-up messages?
Didn't even think of that! Been used to top and left for so long, never used center. Thanks!DedlySpyder wrote:I'm not really sure what you mean, unless you're talking about the game over (with kill stats) screen? If you want something like that you could just use a GUI frame with a button to close it.
Author of: