Forged Alliance Forever Forged Alliance Forever Forums 2013-02-03T18:14:48+02:00 /feed.php?f=37&t=2931 2013-02-03T18:14:48+02:00 2013-02-03T18:14:48+02:00 /viewtopic.php?t=2931&p=29214#p29214 <![CDATA[Re: Re-ally after death]]> Statistics: Posted by Duck_42 — 03 Feb 2013, 18:14


]]>
2013-02-01T02:58:17+02:00 2013-02-01T02:58:17+02:00 /viewtopic.php?t=2931&p=29023#p29023 <![CDATA[Re: Re-ally after death]]>
Edit: Ok, this does not work. Upped it to FAF, game is unresponsive from start on. Removed the file again.

Statistics: Posted by mead — 01 Feb 2013, 02:58


]]>
2013-02-01T00:39:34+02:00 2013-02-01T00:39:34+02:00 /viewtopic.php?t=2931&p=29015#p29015 <![CDATA[Re: Re-ally after death]]>
The following code should change the UI behavior so that the diplomacy button is not disabled after death.

Create /phantomxhook/lua/ui/game/tabs.lua with the following code
Code:
local POriginalOnGameOver = OnGameOver
function OnGameOver()
   POriginalOnGameOver()
    --Re-enable diplomacy tab after death.
    --This way, players will be able to re-ally
    for i, tab in controls.tabs do
        if tab.Data.content == 'diplomacy' and SessionIsMultiplayer() then
            tab:Enable()
        end
    end
end

Statistics: Posted by Duck_42 — 01 Feb 2013, 00:39


]]>
2013-01-30T03:37:34+02:00 2013-01-30T03:37:34+02:00 /viewtopic.php?t=2931&p=28853#p28853 <![CDATA[Re-ally after death]]>
Code:
UI_Lua import("/lua/ui/game/tabs.lua").BuildContent("diplomacy")

Statistics: Posted by Duck_42 — 30 Jan 2013, 03:37


]]>