Jump to content


Photo

Professional Menu Scripts!


  • Please log in to reply
180 replies to this topic

#161 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 20 February 2010 - 08:19 PM

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?

There is a variable for this. It's in the big initiation script, with all the variables and the fancy commentary.
  • 0

#162 Archangel7x

Archangel7x

    GMC Member

  • GMC Member
  • 233 posts
  • Version:Unknown

Posted 22 February 2010 - 06:08 PM

I get an error when trying to use an input that you mentioned in a previous post with a few changes:
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.

  • 0

#163 Archangel7x

Archangel7x

    GMC Member

  • GMC Member
  • 233 posts
  • Version:Unknown

Posted 26 February 2010 - 06:04 PM

bump :/
  • 0

#164 SuperBlizHedgehog

SuperBlizHedgehog

    GMC Member

  • GMC Member
  • 17 posts

Posted 13 March 2010 - 03:51 PM

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?

There is a variable for this. It's in the big initiation script, with all the variables and the fancy commentary.


Oh yeah sorry just found the variable before you told me. :) Thanks anyways!
  • 0

#165 SuperBlizHedgehog

SuperBlizHedgehog

    GMC Member

  • GMC Member
  • 17 posts

Posted 13 March 2010 - 07:57 PM

And also I wanted to ask you, will there ever be a tutorial for making objects do the same actions as the text?
  • 0

#166 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 14 March 2010 - 01:03 AM

And also I wanted to ask you, will there ever be a tutorial for making objects do the same actions as the text?

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.
  • 0

#167 SuperBlizHedgehog

SuperBlizHedgehog

    GMC Member

  • GMC Member
  • 17 posts

Posted 14 March 2010 - 08:14 PM

And also I wanted to ask you, will there ever be a tutorial for making objects do the same actions as the text?

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.


Oh sorry I meant sprites... Is that the method you don't like?
  • 0

#168 lordhazil

lordhazil

    GMC Member

  • New Member
  • 2 posts

Posted 16 March 2010 - 12:39 PM

i want to use it for level selecting
how can i make it so i have 5 options in one line, and only then start a new line?
  • 0

#169 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 19 March 2010 - 10:39 PM

You'll have to figure this one out yourself, hazil.

Oh sorry I meant sprites... Is that the method you don't like?

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.
  • 0

#170 SuperBlizHedgehog

SuperBlizHedgehog

    GMC Member

  • GMC Member
  • 17 posts

Posted 27 March 2010 - 03:42 AM

You'll have to figure this one out yourself, hazil.

Oh sorry I meant sprites... Is that the method you don't like?

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 well thanks for giving me the tip! :medieval:
  • 0

#171 Leingod

Leingod

    GMC Member

  • New Member
  • 10 posts

Posted 07 July 2010 - 11:16 PM

This looks insanely cool. Gonna give it a go and try a little customization.
  • 0

#172 icicle.flame

icicle.flame

    CyntaxGames

  • New Member
  • 283 posts

Posted 16 July 2010 - 05:20 AM

this looks great! Unfortunately I already went through my whole process of making an animated menu (using arrays) and easier to understand for me. In the .txt file you should add what the script do and their arguments instead of just having it all in the scripts.

Glad to see your still supporting this three years later lol,
~IF~

P.S. my menu script is the same as my inventory... ?
  • 0

#173 goldage5

goldage5

    GMC Member

  • GMC Member
  • 152 posts

Posted 17 July 2010 - 02:51 PM

this is so cool. exactly what ive been looking for for a while. sorta complicated though.

Edited by goldage5, 17 July 2010 - 09:57 PM.

  • 0

#174 Glen

Glen

    GMC Member

  • GMC Member
  • 840 posts
  • Version:GM:Studio

Posted 27 July 2010 - 01:41 AM

Just want to say that I'm once again using your scripts as a basis to my main menu in my current project. Everytime I look to make a menu, the first thing I do is download a copy of your menu scripts. They're perfect for a nice and organized menu. They provide easy navigation, smooth transactions, and beautiful presentation. Right now I'm trying to implement a system for adding text boxes in the menu scripts. That way I can make a login screen using these scripts.


[EDIT]
I've done it. :D Had to use seperate objects for the text boxes though. Here's a screenshot:
Posted Image

Edited by Glen, 27 July 2010 - 03:01 AM.

  • 0

#175 thechronicler

thechronicler

    GMC Member

  • New Member
  • 39 posts

Posted 27 October 2010 - 11:24 AM

Everything Mordi does is Awesome! ::lmao::
  • 0

#176 rumpleduskin1972

rumpleduskin1972

    GMC Member

  • New Member
  • 2 posts

Posted 23 December 2010 - 12:47 AM

I realize this is an old topic but I really like this menu for what i'm working on. Ive been through the code trying to figure out how I could position the start button in one spot without it scrolling in. I cant seem to do it, very new to gml.

Was wondering if anyone had a way to get it to work without the scroll in?
  • 0

#177 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 24 December 2010 - 08:32 AM

Was wondering if anyone had a way to get it to work without the scroll in?

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]".
  • 0

#178 rumpleduskin1972

rumpleduskin1972

    GMC Member

  • New Member
  • 2 posts

Posted 24 December 2010 - 06:25 PM

Looking for what you suggested I still couldnt figure it out,
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. :)
  • 0

#179 LeDanishDude

LeDanishDude

    GMC Member

  • New Member
  • 1 posts
  • Version:GM8

Posted 24 February 2012 - 09:42 AM

Hey Mordi :D

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
  • 0

#180 The Rock Abdo

The Rock Abdo

    GMC Member

  • GMC Member
  • 50 posts
  • Version:GM8

Posted 10 March 2012 - 06:17 PM

you are the one .. thanks man :woot:
  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users