mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Trying to refresh the menus
This commit is contained in:
parent
ce61e8d859
commit
abbb59efb9
@ -731,6 +731,7 @@ function DATABASE:_EventOnBirth( Event )
|
|||||||
end
|
end
|
||||||
if Event.IniObjectCategory == 1 then
|
if Event.IniObjectCategory == 1 then
|
||||||
Event.IniUnit = self:FindUnit( Event.IniDCSUnitName )
|
Event.IniUnit = self:FindUnit( Event.IniDCSUnitName )
|
||||||
|
Event.IniGroup = self:FindGroup( Event.IniDCSGroupName )
|
||||||
local PlayerName = Event.IniUnit:GetPlayerName()
|
local PlayerName = Event.IniUnit:GetPlayerName()
|
||||||
self:E( { "PlayerName:", PlayerName } )
|
self:E( { "PlayerName:", PlayerName } )
|
||||||
if PlayerName ~= "" then
|
if PlayerName ~= "" then
|
||||||
@ -740,6 +741,7 @@ function DATABASE:_EventOnBirth( Event )
|
|||||||
end
|
end
|
||||||
local Settings = SETTINGS:Set( PlayerName )
|
local Settings = SETTINGS:Set( PlayerName )
|
||||||
Settings:SetPlayerMenu( Event.IniUnit )
|
Settings:SetPlayerMenu( Event.IniUnit )
|
||||||
|
MENU_INDEX:Refresh( Event.IniGroup )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user