Jump to content

Extra_rc.hpp doesn't do its job [Wrong Section! Move]


Recommended Posts

Well, to keep it simple. I added group manager and deploy bike. I make a extra_rc.hpp and make the proper class. (btw never have had an issue like this.) Bottom of Description.ext I add #include "extra_rc.hpp" its located in the root of my mission folder. I spend forever looking for spelling mistake or class ExtraRc being defined already. Find nothing. There is almost nothing installed on the server....wtf?

This is the bottom of my description.ext

//Custom
#include "extra_rc.hpp"
#include "custom\snap_pro\snappoints.hpp"
#include "dzgm\groupManagement.hpp"
extra_rc.hpp

class ExtraRc {
  class ItemRadio {
     class GroupManagement {
        text = "Group Management";
        script = "execVM 'dzgm\loadGroupManagement.sqf'";
     };
  };
};
I removed the deploy bike part of it for testing.
Link to comment
Share on other sites

Hi,

Just checking, have you created a custom ui_selectSlot.sqf and put this section?

	// Add extra context menus
	_erc_cfgActions = (missionConfigFile >> "ExtraRc" >> _item);
	_erc_numActions = (count _erc_cfgActions);
	if (isClass _erc_cfgActions) then {
		for "_j" from 0 to (_erc_numActions - 1) do 
		{
			_menu = 	_parent displayCtrl (1600 + _j + _numActions);
			_menu ctrlShow true;
			_config = 	(_erc_cfgActions select _j);
			_text = 	getText	(_config >> "text");
			_script = 	getText	(_config >> "script");
			_height = _height + (0.025 * safezoneH);
			uiNamespace setVariable ['uiControl', _control];
			_menu ctrlSetText _text;
			_menu ctrlSetEventHandler ["ButtonClick",_script];
		};
	};
	_pos set [3,_height];

    near the bottom, just above:

	_group ctrlShow true;
	ctrlSetFocus _group;
	_group ctrlSetPosition _pos;
	_group ctrlCommit 0;
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...