Any custom menu tutorials out there?

As the name says, I'm wondering if there are any good tutorials for creating custom menus from scratch, or creating submenus for the original menu.

What I'm specifically interested in is:

• How to create a very simple window (or a few of them) and put in a text, an icon, maybe change the background or put a picture

• How to create the most basic choice options

• How to call the menu you've made

• How to make the menu disappear when you press cancel

I don't need any advanced or specific stuff (although it's always welcome), I just need the simplest way to script the basic functional menu and keep learning and building from there. Something in rank of a one window screen that has an option to make Switch X on or off and displays some text and a maybe an icon and a picture. I'm trying to get it by myself but all the calling of stuff that is calling other stuff that is then calling some more other stuff from various scripts is just too overwhelming for me. 🙁  I've found a tutorial for that some time ago but I don't remember where and I can't find it anymore, so if anyone knows of a good menu tutorial I'd be grateful for a link or any help. 🙂
I started learning with this: http://www.diamondandplatinum3.net/tutorials/ruby-tutorials/rgss3-tutorials/

If you dont mind watching videos, it will be very good.
I don't mind videos, I just hope to find something simple and straight to the point because the menu part of scripting is extremely alien and hard to cope for me. Thanks for the reply. 🙂

Edit: Wow, this is great... 😀 Hopefully It'll help me with menu basics. 🙂
I also recommend GubiD's tutorials.
Hahahaha, funny, I just wanted to edit my original post saying that I found one of his videos creating a basic command window and then I see your post Archeia. 😀

Sad thing is he never got past that one so it basically only creates 3 functionless commands, but it's a start. 😀 Still hate all the defining and calling stuff for 10 times through 3-4 scripts... 😛
Ok, I got some of the very basics of creating a window but one thing bugs me and I didn't find it anywhere.

How do you close the bugging window when you once create it? I tried copy-pasting some text and edit stuff from standard scripts but all threw errors so I just deleted it all. Can anyone help me with that? The preferable closing method would be just pressing cancel like in the menu, but any other way is ok.

Here's the simple window I've created if anyone's interested.

Spoiler
class MyText < Scene_Base

def start
super
@TextWindow = MyWindow.new
end
end


class MyWindow < Window_Base
def initialize
super(0, 0, 250, 500)
refresh
end

def refresh
draw_text(x, y, 80, line_height, "Weeeeeee!")
end

end
The easiest way would be to use the set_handler method.

This method was created in Window_Selectable. So you need to make your Window inherit from Window_Selectable:

class MyWindow < Window_SelectableAfter that you need to activate the Window. Window_Base have a method for this, you can call it in you initialize method:

def initialize super(0, 0, 250, 500) refresh activate # here endNow you need to set the handlers in your Scene:

def start super @TextWindow = MyWindow.new @TextWindow.set_handler🙂cancel, method🙂return_scene)) endAlternativaly you can call the cancel method without handlers in the Scenes update method:

Code:
class MyText < Scene_Base  def start    super    @TextWindow = MyWindow.new  end    def update    super    return_scene if Input.trigger?(:  # return_scene is a Scene_Base method look it up if you want to know how it works  end  endclass MyWindow < Window_Base    def initialize    super(0, 0, 250, 500)    refresh  end  def refresh    draw_text(x, y, 80, line_height, "Weeeeeee!")  endend
In the meanwhile I managed to make the window disappear but not on command. That helped ALOT, eugene222, now I finally have it working and I kinda understand how it all works! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/any-custom-menu-tutorials-out-there.25654/