Forged Alliance Forever Forged Alliance Forever Forums 2018-01-31T23:00:49+02:00 /feed.php?f=53&t=15366 2018-01-31T23:00:49+02:00 2018-01-31T23:00:49+02:00 /viewtopic.php?t=15366&p=160171#p160171 <![CDATA[Re: Displaying info in a dialog]]>

New idea: Is it possible to run mod code "from a map"? So not invoking it from the map script, but having code be invoked as if it was a mod. Basically shipping the mod with the map and automatically including it when it is played? If this is not possible at the moment, perhaps this is something that can be made possible relatively easily, and open up a lot of cool possibilities for map makers?


Following

Statistics: Posted by Franck83 — 31 Jan 2018, 23:00


]]>
2018-01-25T03:34:23+02:00 2018-01-25T03:34:23+02:00 /viewtopic.php?t=15366&p=159839#p159839 <![CDATA[Re: Displaying info in a dialog]]> Statistics: Posted by EntropyWins — 25 Jan 2018, 03:34


]]>
2017-12-09T22:08:55+02:00 2017-12-09T22:08:55+02:00 /viewtopic.php?t=15366&p=157824#p157824 <![CDATA[Re: Displaying info in a dialog]]> Statistics: Posted by EntropyWins — 09 Dec 2017, 22:08


]]>
2017-10-30T09:36:08+02:00 2017-10-30T09:36:08+02:00 /viewtopic.php?t=15366&p=155740#p155740 <![CDATA[Re: Displaying info in a dialog]]> https://wiki.faforever.com/index.php?ti ... Sim_and_UI

So you cant alter functions in UI from the map script. You would need a mod for that.

Statistics: Posted by speed2 — 30 Oct 2017, 09:36


]]>
2017-10-29T23:46:50+02:00 2017-10-29T23:46:50+02:00 /viewtopic.php?t=15366&p=155734#p155734 <![CDATA[Re: Displaying info in a dialog]]> Statistics: Posted by EntropyWins — 29 Oct 2017, 23:46


]]>
2017-10-29T10:54:30+02:00 2017-10-29T10:54:30+02:00 /viewtopic.php?t=15366&p=155712#p155712 <![CDATA[Re: Displaying info in a dialog]]>
This bug with missing letters should be fixed in the next patch (you can try it in the faf develop mod)

Else this is currently the only way to to display text from sim instead of ugly printtext.

Some time ago I was trying to display a text like in the missions, just without the video. It was somehow working, just the duration after it should collapse again was bit random and I didn't manage to finish it.

This is the UI-side code for this dialogue https://github.com/FAForever/fa/blob/develop/lua/ui/game/simdialogue.lua

Statistics: Posted by speed2 — 29 Oct 2017, 10:54


]]>
2017-10-29T06:42:35+02:00 2017-10-29T06:42:35+02:00 /viewtopic.php?t=15366&p=155705#p155705 <![CDATA[Displaying info in a dialog]]> PrintText calls.

I stumbled upon CreateDialogue which at first glance seems great. It gives me a box to put the info in, and the box can have a close button so the user can get rid of it if they don't want to see it.

It seems like dialogs have a problem with multi line text though, at least if the text is long. The following code shows a dialog with messed up text:

Code:
local d = CreateDialogue([[a kinda long is line that is kinda long ish
MJHAU]], {"Close"}, "right")


Text shown:


a kinda long is line that is kinda long is
MJHA


The first line is missing some stuff in the center and the last letter and the second line misses the last letter. Kinda bizzare behavior.

I've also been trying to change the dialog width, to no avail. One thing I tried was more text on the button, though this just leads to the text spilling out of the button rather than the thing resizing >_>

Anyone know how to display info to the players in a decent way, preferably one where they can choose to hide it?

Statistics: Posted by EntropyWins — 29 Oct 2017, 06:42


]]>