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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...