Forged Alliance Forever Forged Alliance Forever Forums 2016-11-20T16:06:52+02:00 /feed.php?f=3&t=13490 2016-11-20T16:06:52+02:00 2016-11-20T16:06:52+02:00 /viewtopic.php?t=13490&p=139404#p139404 <![CDATA[Re: Adding a UI element in a map]]> Statistics: Posted by EntropyWins — 20 Nov 2016, 16:06


]]>
2016-11-14T12:47:32+02:00 2016-11-14T12:47:32+02:00 /viewtopic.php?t=13490&p=139054#p139054 <![CDATA[Re: Adding a UI element in a map]]> I made it possible to add mods for your map that are automatically used when those maps are played.
These mods would be saved inside your map folder, so they basically become part of your map.
See: https://github.com/FAForever/fa/pull/1680

Statistics: Posted by KeyBlue — 14 Nov 2016, 12:47


]]>
2016-11-14T12:27:01+02:00 2016-11-14T12:27:01+02:00 /viewtopic.php?t=13490&p=139053#p139053 <![CDATA[Re: Adding a UI element in a map]]>
biass wrote:
:/ i think stuff comes up when a player dies or triggers a wave :/


Thanks for suggesting to look there.

Ah yeah indeed. That's quite different though, as it's just a text message. I know how to do that, but that does not help me here.

Statistics: Posted by EntropyWins — 14 Nov 2016, 12:27


]]>
2016-11-14T12:25:06+02:00 2016-11-14T12:25:06+02:00 /viewtopic.php?t=13490&p=139052#p139052 <![CDATA[Re: Adding a UI element in a map]]>
speed2 wrote:
Afaik this is currently not possible without a mod.


I'm going to sleep now and am hoping to return tomorrow and find you've pulled a solution out of your magic hat :)

Seriously though, is there really no way around this? I'm fine if the thing does not automatically update like normal things do and I need to poke it every second or so.

Statistics: Posted by EntropyWins — 14 Nov 2016, 12:25


]]>
2016-11-14T12:25:02+02:00 2016-11-14T12:25:02+02:00 /viewtopic.php?t=13490&p=139051#p139051 <![CDATA[Re: Adding a UI element in a map]]> Statistics: Posted by biass — 14 Nov 2016, 12:25


]]>
2016-11-14T12:22:31+02:00 2016-11-14T12:22:31+02:00 /viewtopic.php?t=13490&p=139050#p139050 <![CDATA[Re: Adding a UI element in a map]]>
biass wrote:
I suggest you go to the the scripts for "Wave of death" they have very basic UI elements built into the map already :)


Can you be a bit more specific? I just fired up Wave of Death and did not see any such UI elements. Also quickly looked at the code and did not spot such elements, though then I probably would not, given it's 2kloc of procedural code partially written in French.

Statistics: Posted by EntropyWins — 14 Nov 2016, 12:22


]]>
2016-11-14T12:14:06+02:00 2016-11-14T12:14:06+02:00 /viewtopic.php?t=13490&p=139049#p139049 <![CDATA[Re: Adding a UI element in a map]]> Statistics: Posted by speed2 — 14 Nov 2016, 12:14


]]>
2016-11-14T11:48:37+02:00 2016-11-14T11:48:37+02:00 /viewtopic.php?t=13490&p=139048#p139048 <![CDATA[Re: Adding a UI element in a map]]>

Statistics: Posted by biass — 14 Nov 2016, 11:48


]]>
2016-11-14T11:40:28+02:00 2016-11-14T11:40:28+02:00 /viewtopic.php?t=13490&p=139046#p139046 <![CDATA[Adding a UI element in a map]]>
As far as I can tell, this needs to be done via a UserSync "OnSync" hook (at hook/lua/ui/UserSync.lua). However such hooks don't seem to get invoked for maps (it does for mods). So is there a way to do this with just a map?

Statistics: Posted by EntropyWins — 14 Nov 2016, 11:40


]]>