Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Fri Dec 08, 2006 10:18 am   

[1.21] button states
 
create multistate button with 2 states.

button name = @target

state 0: #var target 2
state 1: #var target 3


button remains at state 0, unable to select state 1.


subnote: on restart of cmud, but only once, it deleted the button itself, but left all the states saved seperatly in the package root.


ive recreated this problem 4 times consistantly.
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Dec 08, 2006 9:39 pm   
 
I need the *exact* procedure that you are using to create the button and the states. Give me a step-by-step procedure of exactly what you click on and what you type. There are lots of ways to create multistate buttons, and I'm not getting any problem here, so I must not be using the same procedure that you are.
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Fri Dec 08, 2006 9:50 pm   
 
okie dokie.

1- click new button
2- enter the name as variable @testName
3- select multistate
4- click save to bring up the default 1st state.
5- enter a name for state 1: test 1
6- enter the script : #var testName 1 in the state0 settings.
7- click new button state 2
8- enter a name for state 2: test 2
9- enter script: #var testName 2
10- save
11- create variable @testName

button exists, drops down the list fine with the entered options, but neither select onclick.

edited for typo
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Dec 08, 2006 10:13 pm   
 
I assume you are clicking the button in the main mud window and not the sample button in the package editor, right?

When I followed your instructions it worked fine for me here. When I selected state 1 it actually turned the button black, that that's a different bug. But the variable was properly set to the value of 1.
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Fri Dec 08, 2006 10:16 pm   
 
yup.. the button on my main window.

Its doing it even if i create a new package for it, i tried that incase it was some currupt setting from a previous bug.

Running 1.21 update from fresh install of 1.17
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Dec 08, 2006 10:29 pm   
 
Do not create a new package for it. Buttons don't work in packages yet. They need to be created within the actual window that will display the button. The problem with buttons in packages is that currently a button only has a single instance, so it can only be displayed in one window.

I'll keep playing with your instructions to see if I can get it to fail. I've already fixed some other bugs that might have caused this.
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Fri Dec 08, 2006 10:34 pm   
 
ok that cured it.. thanks Zugg.

I dont have any issues with any other types of buttons in packages, so Im guessing that its ok to leave those as is.
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: Sat Dec 09, 2006 3:48 am   
 
Ok I'm missing something. When one opens a new session as I understand it, a default package is created for the session. In my case, I play Foxmud, so a Foxmud session is created. So when I open the settings editor, I see Foxmud as the package with a window in the settings (on the left of the editor) called Foxmud, I then add classes and such underneath it. Some of the things underneath it (As I have opened my zmud .mud file) are buttons. By Zugg's last response, I should create those buttons "within the actual window that will display the button". The way I read this is that I need to create the button within the Foxmud package, under the Foxmud window as a button... Correct? If so, the buttons I have, are having the same multistate problems still even though the buttons are"within the actual window that will display the button". If it sounds like my buttons, or ones that I create in the foxmud window of the foxmud package are not going in the right place, does anyone have a procedure that could be posted or sent to me with how to do this...? Sorry if this issue is addressed elsewhere but I'm confused... :(
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Sat Dec 09, 2006 11:34 am   
 
zugg means to create the multistate buttons in the main window module, rather than an imported package.. that module will have the tab label charname.mud, unless youve changed it.

If youve already created those buttons elsewhere, you can drag them into the window module no problem at all, theyll fix instantly.
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net