Guide on UI Modding?

Enginseer

Salientia of the Community Patch
Supporter
Joined
Nov 7, 2012
Messages
3,672
Location
Somewhere in California
Is there any guide on having a UI button appear similar to how InfoAddict does it? I can't seem to reverse engineer how InfoAddict does it.
 
You need this sort of thing, to add to the 'Additional Information' dropdown, if that's what you mean:

Code:
LuaEvents.AdditionalInformationDropdownGatherEntries.Add(function(entries)
table.insert(entries, {
	text=Locale.Lookup("TXT_KEY_MY_POPUP"),
	art = "DC45_Culture.dds", -- icon for EUI
	call=function() 
	    MyFunction() -- function that opens the Popup.
	end,
});
end);
	
LuaEvents.RequestRefreshAdditionalInformationDropdownEntries();
 
Perfect.

@LeeS, I'll looked over them(I have the UI made from his tutorial, but not the UI button), but couldn't find anything.
 
Top Bottom