There is a variable for this. It's in the big initiation script, with all the variables and the fancy commentary.This is very cool! I added a bunch of new menus and customization options involving colors and backgrounds! But I have one question: How do I make so that the keyboard is disabled and the mouse enabled?
Professional Menu Scripts!
#161
Posted 20 February 2010 - 08:19 PM
#162
Posted 22 February 2010 - 06:08 PM
sc_menu_add_button("Players","sc_show_keygrab('Press a key','Players','global.numofplayers')",0,"","","key_down_str1");
Error:
___________________________________________
ERROR in
action number 1
of Step Event
for object obj_menu:
In script sc_menu_process:
In script sc_menu_input:
Error in code at line 11:
variable_local_set(b_variable[b_button, b_menu],global.key_str[keyboard_lastkey])
^
at position 65: Unknown variable key_str or array index out of bounds
Am I doing something wrong or is it an error with the script?
btw im using gm8
Edited by Archangel7x, 12 March 2010 - 06:19 PM.
#163
Posted 26 February 2010 - 06:04 PM
#164
Posted 13 March 2010 - 03:51 PM
There is a variable for this. It's in the big initiation script, with all the variables and the fancy commentary.This is very cool! I added a bunch of new menus and customization options involving colors and backgrounds! But I have one question: How do I make so that the keyboard is disabled and the mouse enabled?
Oh yeah sorry just found the variable before you told me.
#165
Posted 13 March 2010 - 07:57 PM
#166
Posted 14 March 2010 - 01:03 AM
You mean making the buttons be objects instead of just variables and text? There are menus that do this, but I don't like that method.And also I wanted to ask you, will there ever be a tutorial for making objects do the same actions as the text?
#167
Posted 14 March 2010 - 08:14 PM
You mean making the buttons be objects instead of just variables and text? There are menus that do this, but I don't like that method.And also I wanted to ask you, will there ever be a tutorial for making objects do the same actions as the text?
Oh sorry I meant sprites... Is that the method you don't like?
#168
Posted 16 March 2010 - 12:39 PM
how can i make it so i have 5 options in one line, and only then start a new line?
#169
Posted 19 March 2010 - 10:39 PM
Oh. Nah, sprites are good. If you want to use sprites you'll have to look in the draw-script. Where I draw the button-variables text and whatnot.Oh sorry I meant sprites... Is that the method you don't like?
#170
Posted 27 March 2010 - 03:42 AM
Oh well thanks for giving me the tip!You'll have to figure this one out yourself, hazil.
Oh. Nah, sprites are good. If you want to use sprites you'll have to look in the draw-script. Where I draw the button-variables text and whatnot.Oh sorry I meant sprites... Is that the method you don't like?
#171
Posted 07 July 2010 - 11:16 PM
#172
Posted 16 July 2010 - 05:20 AM
Glad to see your still supporting this three years later lol,
~IF~
P.S. my menu script is the same as my inventory... ?
#173
Posted 17 July 2010 - 02:51 PM
Edited by goldage5, 17 July 2010 - 09:57 PM.
#174
Posted 27 July 2010 - 01:41 AM
[EDIT]
I've done it.
Edited by Glen, 27 July 2010 - 03:01 AM.
#175
Posted 27 October 2010 - 11:24 AM
#176
Posted 23 December 2010 - 12:47 AM
Was wondering if anyone had a way to get it to work without the scroll in?
#177
Posted 24 December 2010 - 08:32 AM
One way of doing this would be to just set the variable that controls the scroll to 0 (or 1?). Not sure what the variable is called off the top of my head, but it should be something like "b_scroll", "m_scroll", or just "scroll". Might also be "scroll[x]".Was wondering if anyone had a way to get it to work without the scroll in?
#178
Posted 24 December 2010 - 06:25 PM
but I stumbled upon this line,
yy = b_y[menu]+(scroll[m_c]-10)*40;
changed it to this, and somehow it worked.
yy = b_y[menu]+(scroll[m_c]-0)*0;
Seems to work great, thanks for the reply tho.
#179
Posted 24 February 2012 - 09:42 AM
As the noob that I am (with 1 days of experience), I'm of course having trouble with this.
It's about the arguments when running the scripts in the events. When the dialog is up with the input, there's only displayed 5 arguments.
http://piclair.com/e1vs6
I've tried to search for some kind of solution, but haven't found any.
I guess that I'm doing something wrong :s
#180
Posted 10 March 2012 - 06:17 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











