Posted: Wed Apr 11, 2007 7:36 am Post subject: Gumps and GF_SCRIPT_BTN
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.
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.
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
Posted: Thu Apr 12, 2007 3:43 am Post subject:
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.
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
Posted: Thu Apr 12, 2007 4:37 am Post subject:
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.
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.
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.
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.