ID:1245375
 
(See the best response by Super Saiyan X.)
Code:
mob/proc
NewCharacter()
set hidden = 1
winset(src,"Final.submit_char","is-disabled=\"true\"")


Problem description:
Alright so I've started using winsets and my load,delete, and hub buttons are fine it's just I can't get this one to show up after the MOB presses the button.

Is NewCharacter the button's command?

If so, it either needs to be a verb, or added to the mob's verb list.

What exactly do you want to happen when the button is pressed?
The verb is added to the mob's list, it's just needs to pop up a different screen when the button is pressed and it's not doing so.
Well, the parameter you're setting is, is-disabled
You probably want is-visible.

Probably? maybe.

Be sure you're using winset() on the correct window or control as well.
remove the
set hidden = 1

It should work perfectly after that.
EDIT: I also don't recall buttons using procs... turn it into a verb, then retry.
In response to Zohan98
Zohan98 wrote:
remove the
set hidden = 1

It should work perfectly after that.
That has absolutely nothing to do with it, he says he is using buttons. If the command is set to the proc, it should be fine. Setting it to hidden removes it from the stat panel, and stops it from appearing when you do command expansion in the input.

EDIT: I also don't recall buttons using procs... turn it into a verb, then retry.
No. He says he added the proc to the verbs list; the same effect as defining it as a verb.

I suppose I've misread.
Galactic Soldier wrote:
Super Saiyan X wrote:
No. He says he added the proc to the verbs list; the same effect as defining it as a verb.

That doesn't mean you should take his word for it. Guilty Zero, set up a log file and enable debug and run it to see and make sure an "undefined verb" doesn't pop up.

A run time error for undefined verb would appear with or without a log, or debug enabled. The error would be pretty much in your face, I mean, if he's missing the error, that's his fault.

It might be better see if the procedure/verb is actually being called; you know:
mob/proc/NewCharacter() world << "I'm being called!"


The error either stems from using winset() on the wrong controls and parameters, or the world not seeing it as a verb. I think it's the former.
    NewC()
set hidden=1
NewCharacter()

That's the VERB that the button uses, my problem is when the button is pressed, it doesn't pop the screen up.
In response to Super Saiyan X
Best response
Super Saiyan X wrote:
Well, the parameter you're setting is, is-disabled
You probably want is-visible.

Probably? maybe.

Be sure you're using winset() on the correct window or control as well.

Then, look at this.
Use winset to make the window appear.

winset(src, "window name here", "is-visible=true")

In response to Super Saiyan X
Lol, thank you.