EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-07-2007, 11:00 AM
Migerus Migerus is offline
A Forest Scavenger
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 15
Default To send a tell

I initially sent this post to "help" section, but nobody answered. May be I 'll get answer here.

Let's say I want to add a "Send tell" button to the target window.
Is there a command to send a tell to a player ?

And another question, I was trying to add "Invite" button to friends page of the community window.
How I would get the name of the selected player?

Thank you.
Reply With Quote
  #2  
Unread 05-07-2007, 11:26 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

UI "commands" are the same as in game, so the command for sending a tell is, well, "tell".

Doesn't the community window already have an invite button? At least for the search results I'm fairly certain that it does. Otherwise you could make one yourself. Get the friend's name from the list's SelectedItem. The format is hopefully defined in some template file (can't check, am at work), telling you which parameter contains the name.

Grab the name and send it to the command line (command is "beginchatinput").

Happy modding!
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #3  
Unread 05-07-2007, 12:00 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

The friends list actually shows up in one of those dreaded Table things. There's a DataSourceContainer with three DataSources, one for Name, one for Location, and one for Notes. It might be possible to get the Name out of a Table, since it has a SelectedRow property. But it gets tricky because the Table can be sorted by clicking on the Header.

Hmm, after looking at the Community window I have a couple ideas to try with my tracking window kludge when I get a chance. I used a Dropdownbox to get into the DataSource there.
Reply With Quote
  #4  
Unread 05-07-2007, 12:23 PM
Migerus Migerus is offline
A Forest Scavenger
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 15
Default

Thank you very much for the fast answer. There is no invite or tell buttons on the friends page, only on search page.
Command "beginchatinput" is a piece that I was missing, but there is still something wrong.
When I add event OnPress :

beginchatinput tell namehere

it works, but line in the doesnt starts from '/' and it just says it in antonican.
When I try

beginchatinput /tell namehere

it just doesnt do anything. But anyway I am much closer now )
Reply With Quote
  #5  
Unread 05-07-2007, 12:38 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Try

OnPress="beginchatinput '/tell ' ## NAMEHERE"

Or maybe you need to put it like this (can't remember):

OnPress="ARG='/tell ' ## NAMEHERE
beginchatinput (ARG)"
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #6  
Unread 05-07-2007, 01:03 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

The real problem with grabbing the name is I don't know if there's any way to get it out of the Table directly. In a Dropdownbox you can get data from SelectedItem.Datatype but I don't know if there's any equivalent for Tables.

Maybe we can ask Zonx to request this for us.

Last edited by Othesus : 05-07-2007 at 01:15 PM.
Reply With Quote
  #7  
Unread 05-07-2007, 01:30 PM
Migerus Migerus is offline
A Forest Scavenger
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 15
Default

finally managed to make it work.

The OnPress line is pretty simple:

beginchatinput "/tell %t "

That enough to start tell to a target.

Actually it plays line in chat - /tell %t yourtexthere, but it sends to your current target. It works better then "/tell parent.Name2.LocalText" because if name has prefix, like "hunter", first variant still works.
Thanks again for you help )
Reply With Quote
  #8  
Unread 05-07-2007, 01:45 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

That's true for the target. For using names from the community window list you'll need the more complicated notation. And mine was the format you would write in the XML, I never use UIbuilder for that.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #9  
Unread 05-08-2007, 04:42 PM
Migerus Migerus is offline
A Forest Scavenger
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 15
Default

Thanks for Othesus, found out how to add "Invite" and "Tell" buttons to friends page. I wasnt able to take the value from the table, so I add dropdown connected to the name datasourse.
If somebody interested, here is the code. But the styles pretty messed up, so to make it work properly on your computer could take some additional efforts.
Attached Files
File Type: xml eq2ui_community.xml (25.6 KB, 248 views)
Reply With Quote
  #10  
Unread 05-09-2007, 09:16 AM
Migerus Migerus is offline
A Forest Scavenger
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 15
Default

enhanced version with additional files needed.
Attached Files
File Type: zip Community.zip (5.0 KB, 209 views)
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:07 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI