Jump to content
PingWing

EDEN - Disable [ENTER] to start mission

Recommended Posts

So - I like the 3DEN editor and all, but the amount of times I accidentaly started a mission, by pressing [ENTER]  is more than the amount of times that I actually wanted preview the mission.

Is there a way to disable the ENTER key from loading the mission?
I already checked the "Controls" but couildn't find it there.

Share this post


Link to post
Share on other sites
1 hour ago, PingWing said:

So - I like the 3DEN editor and all, but the amount of times I accidentaly started a mission, by pressing [ENTER]  is more than the amount of times that I actually wanted preview the mission.

Is there a way to disable the ENTER key from loading the mission?
I already checked the "Controls" but couildn't find it there.

 

Hm. If I press Enter, I get mostly into some options of some unknown object, which is mostly not interested for me  :grinning:  Be happy, you are a lucky guy that your Enter works as it should :drinking:

Share this post


Link to post
Share on other sites

The code for the activation via enter button is baked into the config:

// cfg3den, line 3555
class MissionPreviewSP
{
  text="$STR_3DEN_Display3DEN_MenuBar_MissionPreviewSP_text";
  data="MissionPreview";
  shortcuts[]={28,156}; //28 = ENTER ; 156 = NUMPAD ENTER
};

And:

class ctrlShortcutButton: ctrlDefaultButton
{
...
	shortcuts[]=
	{
		"0x00050000 + 0",
		28,
		57,
		156
	};
...
};

class ButtonPlay: ctrlShortcutButton
{
	...
};

Which means that you'd have to modify the config itself with a mod:

https://steamcommunity.com/sharedfiles/filedetails/?id=1420348567

 

Spoiler

config.cpp


class CfgPatches
{
	class TER_disableMissionPreviewShortcut
	{
		author="Terra";
		name="Disable Mission Preview Shortcut";
		url="";
		requiredAddons[]={3den};
		requiredVersion=0.1;
		units[]={};
		weapons[]={};
	};
};

class ctrlMenuStrip;
class ctrlShortcutButton;
class Display3den
{
	class Controls
	{
		class MenuStrip: ctrlMenuStrip
		{
			class Items
			{
				class MissionPreviewSP
				{
					shortcuts[]={};
				};
			};
		};
		class ButtonPlay: ctrlShortcutButton
		{
			
			shortcuts[]=
			{
				"0x00050000 + 0",
				57
			};
		};
	};
};

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

There is always EdenKeybinds never officially released, although I have mentioned it before on the forum. I'm still messing with it from time to time and there are a few binds that do not work currently but is good enough to change different play/preview binds and change things like the hard coded panel buttons so you can move your camera keys etc.

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

×