View previous topic :: View next topic |
Author |
Message |
bis_senchi
Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Fri Jul 22, 2011 10:08 am Post subject: After some tests... |
|
|
Ok,
I've made some tests and swap menu items appears to be what I need. The only thing left that I still not manage to do is to find my invisible item and turn its bitest "hide if disabled" off.
Could someone tell me how to do it with an example?. The invisible menu item I would like to make visible again is on slot 2 under custom.
Thanks in advance very much for your help! _________________ It's time to make games! |
|
Back to top |
|
|
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue Jul 26, 2011 11:23 am Post subject: |
|
|
Hi, sorry for the slow response. You are completely right about what the problem is. Menu items are numbered in a very confusing and annoying way: first the visible menu items are numbered, and then the invisible ones follow. So the invisible menu items are temporarily sorted to the end of the menu (but they remember their true ordering when you unhide them). For example, if these are the menu items as they appear in Custom, and the ones marked with * are hidden, then they are numbered as follows:
Code: | 0 - Slot1
1 - unused
8 - *data info slot1
2 - Slot2
3 - unused
9 - *data info slot2
4 - Slot3
5 - unused
10 - *data info slot3
6 - Slot4
7 - unused
11 - *data info slot4 |
Unfortunately there is no script command that lets you retrieve a menu item based on its order in Custom: you have to use the temporary ordering "by visibility" as I described above when using "menu item by slot". (Changing the value of the "visible only" argument does not help!) So I just added a new command: "menu item by true slot"! It should appear in the nightlies if you wait a day. Alternatively, you could try using "find item caption" to find the right menu item.
And I recommend that you use a recent nightly anyway, because of some bugs that were fixed. The bugs cause the numbering of menu items to not be updated immediately.
As for unselectable menu items: they are a lot of work to implement, and I haven't finished them yet. Hopefully in the next couple of days. _________________ "It is so great it is insanely great." |
|
Back to top |
|
|
bis_senchi
Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Fri Aug 12, 2011 4:29 am Post subject: how come that... |
|
|
menu item by true slot was what I needed! Thanks for implementing it.
I only have a little problem left. When the bitset is turned off and the switch operation is finished there is still a line in more with a menu item which is hidden.
How come the menu items we put invisible under custom does not appear at all in the menu and the menu items which we turned invisible using plotscripting are still here as a blank line?
Thanks for your help! menu item by true slot will certainly become very handy! Thanks again for implementation! _________________ It's time to make games! |
|
Back to top |
|
|
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sat Aug 13, 2011 2:23 am Post subject: |
|
|
Sorry, I don't think I understand the question. You tried to hide a menu item using scripting, but it's still visible? How did you try to hide it? "set menu item bit", or "set tag" or "set menu item tag", or several of these? _________________ "It is so great it is insanely great." |
|
Back to top |
|
|
bis_senchi
Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun Sep 04, 2011 1:08 am Post subject: Well in fact... |
|
|
You don't need to apologise. I'm very good at making myself misunderstood.
My problem is the following :
I managed to make the menu item, which was visible at the beginning of the game invisible using "menu item by true slot" (It's a great thing to have implemented this command)
The little problem left is that a blank line appears where there was the menu item and that I would also like this line to disappear. Any idea about how I could do?
As always thanks a lot for your help! _________________ It's time to make games! |
|
Back to top |
|
|
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon Sep 05, 2011 12:07 am Post subject: |
|
|
That should not happen, it sounds like an engine bug. But I doubt that it is...
I thought that you have blank items in your menu, right? Are you sure that you're not accidentally causing one of these to appear? Also, could you post your script? _________________ "It is so great it is insanely great." |
|
Back to top |
|
|
|