Patch 674: Change to DiploCorner

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,723
Location
Near Portsmouth, UK
The DiploCorner in the standard game (post patch 674) now has a mechanism for adding new entries into the drop-down, which in theory makes the custom diplo corner mods (here and here) redundant.

To add a new entry, use the following template code

Code:
function OnDiploCornerPopup()
  -- Display your mod here
end

function OnAdditionalInformationDropdownGatherEntries(additionalEntries)
  table.insert(additionalEntries, {
    text=Locale.ConvertTextKey("TXT_KEY_MY_ADDIN_NAME"), 
    call=OnDiploCornerPopup
  })
end
LuaEvents.AdditionalInformationDropdownGatherEntries.Add(OnAdditionalInformationDropdownGatherEntries)
LuaEvents.RequestRefreshAdditionalInformationDropdownEntries()
 
Would I be causing any issues (likely CTDs) if I have modified the diplocorner files in my mod given these changes?
 
possibly - you should merge your changes into the new version of diplocorner.lua and not just replace the new version with "the old version plus your changes"
 
Back
Top Bottom