logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Oh Mighty Skywing, I SUMMON THEE!

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
ashtefere



Joined: 01 Oct 2010
Posts: 4

PostPosted: Tue Jun 04, 2013 5:56    Post subject: Oh Mighty Skywing, I SUMMON THEE! Reply with quote

Crossposting from the deadish obsidian forums:

Hey Skywing, I have a question/feature request if I may, and if you still work on this?

Are you able to code in new GUI commands with the client extension? For example something similar to ExecuteServerScript() ui command?

I know there is currently a sendmesagetopc server command, but I would like something instantaneous based on a UI action on the player side.

Would you be able to add in a ClearCurrentTarget gui command that I could call in a custom GUI?

This would be the same as setting the current target to OBJECT_INVALID.

Or even just the client command of selecting nothing (e.g. the ground) as a target.

Thanks!
Back to top
View user's profile Send private message
Skywing



Joined: 03 Jan 2008
Posts: 321

PostPosted: Wed Aug 07, 2013 4:04    Post subject: Reply with quote

It is possible to manipulate the GUI through the CE, although it can easily be a significant amount of work depending on what you have in mind. Traditionally, this has been done by adding specially formatted server notices that you can send to a CE client with SendMessageToPC, which request that various actions can be taken. If you wanted to activate these from a GUI XML, it would have to then be in the form of a RunScript request for a gui_ script.

One of these is already available in the latest CE release, to set the caret to the end of the chat input box in-game.

Have you already searched the shipping GUI XML's for any functions that might clear the target already, first, however?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group