PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Gumps and GF_SCRIPT_BTN
Goto page 1, 2  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Wed Apr 11, 2007 7:36 am    Post subject: Gumps and GF_SCRIPT_BTN Reply with quote

I know its limited to what you guys can do concerning gumps as it's mostly client side. I don't suppose it would be possible to add something like GF_SCRIPT_BTN to start a selected script without closing the gump.

Author Message
Barbeirosa



Joined: 01 Feb 2007
Posts: 43

PostPosted: Wed Apr 11, 2007 8:29 am    Post subject: Reply with quote

Ummm... do you know how gumps work?

Just put a button on it that causes a script to be started, and reload the gump.

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Wed Apr 11, 2007 9:03 am    Post subject: Reply with quote

Noticed your a bit rude and arrogant barb, just an observation.

It's for when i don't want to reload a gump, ie im on page 10 and just want a button that takes someone to a webpage or something.

Author Message
tartaros



Joined: 27 Mar 2007
Posts: 24

PostPosted: Wed Apr 11, 2007 6:44 pm    Post subject: Reply with quote

all the core could do is resend the gump automatically, with textentries pre-filled with the text that was filled into them meanwhile, and not trigger the usual gump resonse scripts... other than that, you can't tell the client to not close the gump upon pressing a non-page button.

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Wed Apr 11, 2007 9:11 pm    Post subject: Reply with quote

ah ok thanks.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Apr 11, 2007 9:21 pm    Post subject: Reply with quote

You can however, tell the gump to not close unless a closing type button is pressed.

Outside that, you can run the gump sending in a loop, that will resnd it etc after closed.

Author Message
Barbeirosa



Joined: 01 Feb 2007
Posts: 43

PostPosted: Wed Apr 11, 2007 11:20 pm    Post subject: Reply with quote

mr bubbles wrote:
Noticed your a bit rude and arrogant barb, just an observation.


Some people lack tact, others lack intelligence, yet others lack beauty, and still others lack creativity. Last time I checked, no one was perfect.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Thu Apr 12, 2007 3:43 am    Post subject: Reply with quote

From gumps.html in \pol\docs

Button [x] [y] [released-id] [pressed-id] [quit] [page-id] [return-value]
...
[quit] : This parameter is only to be found in buttons. It determines whether you want to exit the gump after clicking the button or not.


and some people research and post solutions for those who need them, and do it tactfully even if not perfectly.

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Thu Apr 12, 2007 4:29 am    Post subject: Reply with quote

but without it quitting can it be set to run a function when pressed?

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Thu Apr 12, 2007 4:37 am    Post subject: Reply with quote

Yes because when the button is pressed the gump will return a value (return-value in the doc snippet I posted) to the script and that value can be used to trigger a script.

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Thu Apr 12, 2007 5:22 am    Post subject: Reply with quote

Im feeling very stupid. How does it know when the buttons been pressed?

I've got a button set to not quit, but i cant figure out how to check if its been pressed already.

Nothing seems to be read until the gump actually closes, what have i missed
Sad

Author Message
tartaros



Joined: 27 Mar 2007
Posts: 24

PostPosted: Thu Apr 12, 2007 10:17 am    Post subject: Reply with quote

sadly, Yukiko is wrong in the assumption about the function of [quit].


Yukiko wrote:
Button... [quit] [page-id] [return-value]

if the [quit] is 1 and the button is pressed, the gump is closed, and response sent to the server with the [return-value] as the pressed button id. [page-id] is unused.

if [quit] is 0 and the button is pressed, it stays on screen,m only it switches to page [page-id]. Nothing is sent to the server, [return-value] is unused.


This is how the UO client works, nothing you can do about it from the side of the server. True story.

Author Message
Barbeirosa



Joined: 01 Feb 2007
Posts: 43

PostPosted: Thu Apr 12, 2007 10:39 am    Post subject: Reply with quote

Yukiko wrote:
...even if not perfectly.


Emphasis mine. It's often useful to have factually correct information. I would rather get correct information from an a$$hole than get erroneous information from a sweet grandmotherly type. The latter might make me feel all warm and fuzzy inside, but the former will actually, you know - be useful.

Different strokes for different blokes, though!

Author Message
mr bubbles



Joined: 18 Jan 2007
Posts: 91

PostPosted: Thu Apr 12, 2007 10:56 am    Post subject: Reply with quote

Well i'd rather get accidental wrong info from someone who tries to help without making me feel crap :/

Author Message
Barbeirosa



Joined: 01 Feb 2007
Posts: 43

PostPosted: Fri Apr 13, 2007 5:40 am    Post subject: Reply with quote

mr bubbles wrote:
Well i'd rather get accidental wrong info from someone who tries to help without making me feel crap :/


If asking you if you know how gumps work makes you feel like crap, then you're bound to feel like crap an awful lot in life, as people ask what your prior knowledge is before diving into an explanation.

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty