Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 12-23-2006, 06:20 PM   #1 (permalink)
Newbie
 
Join Date: Feb 2006
Posts: 23
Default Gumps, Buttons, Dragability.

Hello everyone,

I have been fiddling and fiddling, then moved on to searching and searching, but I have found nothing that can help me with my problem.

I am wondering if it is possible to make the GumpButton dragable? If you had a background, with a button in the middle, the button is obviously classed as an undragable region. I am wondering if it is possible to either...

A) Make a GumpButton dragable
B) Make another component that is dragable, have an OnResponse callback.

I hope that this isn't to vague, but thanks in advance.

Kind Regards

Celtic
Celtic is offline   Reply With Quote
Old 12-30-2006, 07:23 PM   #2 (permalink)
Forum Expert
 
nomad707's Avatar
 
Join Date: Mar 2003
Location: Santa Rosa, CA
Age: 21
Posts: 1,568
Send a message via AIM to nomad707 Send a message via MSN to nomad707 Send a message via Yahoo to nomad707
Default

dunno.
Look for jeff's new gump helper when it comes out, jeff is god, so expect nothing less then perfection from his work! (example CUO)
__________________
Northern Born, Livin in the ghetto
nomad707 is offline   Reply With Quote
Old 12-30-2006, 08:46 PM   #3 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

The only thing I can think of is to try to make a gump within a gump. I do not believe it is possible to have objects within the gump window movable, but I am not completely sure.
Malaperth is offline   Reply With Quote
Old 12-30-2006, 10:57 PM   #4 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Ask Lucid Nagual, he tried this a while back and I think he got an alternative working.
Joeku is offline   Reply With Quote
Old 12-31-2006, 01:10 PM   #5 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Smile

Quote:
Originally Posted by Joeku View Post
Ask Lucid Nagual, he tried this a while back and I think he got an alternative working.
What I did was make the art into a background. Then I added a tiny button in the corner. The art is dragable with no click functions til the button is pressed. Press the button and it locks the art and tells a bool that it is locked and the bool lays a button over the background for an OnResponse method.

My current problem is that the client won't tell the server that the gump moved. Once you logout and back in you have to move all your gumps back into position again. I have seen code for Sigil's Vanguard that is in beta phase and it tracks movement with the tip of the pointer. I'm hoping I can find a way to track a mouse (click/hold) and the movement of the pointer and save it into the server side.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment.

Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse."


My Customs:
Lucid Nagual is offline   Reply With Quote
Old 12-31-2006, 01:23 PM   #6 (permalink)
Account Terminated
 
Admin Drizzt's Avatar
 
Join Date: Jul 2006
Location: Behind You
Age: 16
Posts: 386
Default

anything is possiblle, but if you are a begginer at this then i would suggest starting with something a little easier, but you never know you might figure out something. Good luck to you.
Admin Drizzt is offline   Reply With Quote
Old 12-31-2006, 02:08 PM   #7 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

hrumm...

@LN: if you were really desperate, you could have the user tell you the X and Y location s/he wants the gump to show up at...(via another gump). That's a "whatever works" kinda fix, tho...

@Celtic: If you're looking to specifically make buttons draggable, the only way I know how to do that is to create multiple sub-gumps. It wouldn't be too hard to do programmatically. The OnResponse for these gumps would call a method in the main gump class to do whatever actions you need done.
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 12-31-2006, 04:54 PM   #8 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Smile

Quote:
Originally Posted by TMSTKSBK View Post
hrumm...

@LN: if you were really desperate, you could have the user tell you the X and Y location s/he wants the gump to show up at...(via another gump). That's a "whatever works" kinda fix, tho...

@Celtic: If you're looking to specifically make buttons draggable, the only way I know how to do that is to create multiple sub-gumps. It wouldn't be too hard to do programmatically. The OnResponse for these gumps would call a method in the main gump class to do whatever actions you need done.
I'm looking at making the gump dragable. Adding X and Y positions is the generic way and not dragable at all. I would like to get it's X and Y position after draging it not by adding it manually.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment.

Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse."


My Customs:
Lucid Nagual is offline   Reply With Quote
Old 01-01-2007, 12:09 AM   #9 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

Yarr. I realize what you *want* to do, I'm trying to find a fix that doesn't require boatloads of work for you... (but isn't nearly as cool, either :-\)
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5