Bingles
Chieftain
I wrote up a help menu for my mod using Whoward's guide and everything is working perfectly. Except for one thing: The help menu pops up when I start a new game. I do not want this to happen. Surely the fix is an easy one but right now I feel a little burnt out. Any suggestions on the couple of lines that need editing to fix this will be greatly appreciated.
Thanks in advance!
Code:
function OnOK()
ContextPtr:SetHide(true)
end
Controls.OK:RegisterCallback(Mouse.eLClick, OnOK)
function OnDiploCornerPopup()
ContextPtr:SetHide(false)
end
function OnAdditionalInformationDropdownGatherEntries(additionalEntries)
table.insert(additionalEntries, {
text=Locale.ConvertTextKey("TXT_KEY_LEADER_TRAITS_TITLE"),
call=OnDiploCornerPopup
})
end
LuaEvents.AdditionalInformationDropdownGatherEntries.Add(OnAdditionalInformationDropdownGatherEntries)
LuaEvents.RequestRefreshAdditionalInformationDropdownEntries()
Thanks in advance!