Jump to content

Recommended Posts

Posted

Hello again. I need help adding a new keyboard shortcut for opening the Character Detail Window, for example, because if I add a new shortcut and in its action field I put 

ShowWindow Name=WINDOWNAME

nothing happens. What should I put into the new shortcut action?

 

Thanks for reading!

Posted

seems its interface, well u can add there ur custom "shortcut", like "OpenMyWindow", and in shortcut.uc >

function HandleShortcutCommand( String a_Param )
{
	local String Command;
	
	if( ParseString( a_Param, "Command", Command ) )
	{
		switch( Command )
		{
		case "OpenMyWindow":		
			if ( IsShowWindow("WhatEverWindow") )
			{
				HideWindow(WhatEverWindow);
			} else {
				ShowWindow(WhatEverWindow);
			}
			break;
	}
}

atleast like this for interlude, gl!

  • Thanks 1
Posted
16 hours ago, adr.bot said:

seems its interface, well u can add there ur custom "shortcut", like "OpenMyWindow", and in shortcut.uc >


function HandleShortcutCommand( String a_Param )
{
	local String Command;
	
	if( ParseString( a_Param, "Command", Command ) )
	{
		switch( Command )
		{
		case "OpenMyWindow":		
			if ( IsShowWindow("WhatEverWindow") )
			{
				HideWindow(WhatEverWindow);
			} else {
				ShowWindow(WhatEverWindow);
			}
			break;
	}
}

atleast like this for interlude, gl!

 

Thanks for replying!

I really appreciate it. I didnt know you could add a function to be handled here by shortcuts. Thanks a lot!

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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock