Jump to content

Recommended Posts

I want to add to my mod a setting using the CBA Setting Menu. I have followed the Wiki and so far I have done everything, but the Menu is not showing up.

 

On my config.cpp

class Extended_PreInit_EventHandlers
{
	class my_preInit
	{
		init="call compile preProcessFileLineNumbers 'myAddon\XEH_preInit.sqf'";
	};
};

And on my XEH_preInit.sqf:

[
    "My_ViewDistance",
    "SLIDER",
    "View Distance",
    "My Settings",
    [200, 15000, 5000, 0],
    true,
    {}
] call cba_settings_fnc_init;

Settings are just for testing that the menu is showing up.

 

What am I missing? I have been checking other mods that use the CBA, and I don't see nothing different. In Eden Editor CBA Settings Menu is empty. There no error showing up when starting arma or editor.

EDIT: I have been following this wiki: https://github.com/CBATeam/CBA_A3/wiki/CBA-Settings-System#create-a-custom-setting-for-mission-or-mod

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×