Page 1 of 1

dependencies and control.lua

Posted: Tue Aug 09, 2016 2:41 pm
by binbinhfr
Hi,

json dependencies garanty the order of data.lua loading, but is there a way to garanty the order of control.lua first events between mods when a save is loaded ?
(ex: garanty the order of on_config events, or on_init events ?)

My problem : how can I force the relative position of buttons in the top toolbar (between 2 mods that I developped).

Re: dependencies and control.lua

Posted: Tue Aug 09, 2016 4:38 pm
by orzelek
binbinhfr wrote:Hi,

json dependencies garanty the order of data.lua loading, but is there a way to garanty the order of control.lua first events between mods when a save is loaded ?
(ex: garanty the order of on_config events, or on_init events ?)

My problem : how can I force the relative position of buttons in the top toolbar (between 2 mods that I developped).
Only way I know off would be to use remote interfaces and inform one mod that other one is present first, then inform it after it did it's actions.