Scrolling help window - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Archives (https://www.save-point.org/forum-105.html) +--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html) +---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html) +----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html) +------ Forum: Code Snippets & Others/Misc (https://www.save-point.org/forum-100.html) +------ Thread: Scrolling help window (/thread-6581.html) |
Scrolling help window - Jimmie - 04-08-2009 Scrolling help window by Jimmie Apr 8 2009 This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss. No support is given. If you are the owner of the thread, please contact administration. (It's the one at the bottom, in case you missed it) The screenshot pretty much explains itself. This is a window to which you pass the possible commands a player can perform. The window then shows the commands, scrolling if there is not enough space to show them all. Details The window uses icons to display the buttons. When you tell the window what commands to display, you send the icon names together with the description like so: Code: @c_window.set_commands(["CButton", "BButton", "AllArrows", ["LButton", "RButton"]], ["Select item", "Back to menu", "Navigate", "Change character"]) (These are the commands shown in the screenshot. Note that "Change character" has two buttons assigned to it.) Of course, icons should be in your icons folder. Installing Copy the code below into a new script slot above Main. Replace the window skin name on line 10 with the name of one you have. Then in any scene in which you want a help window, you'll have to do a few things.
x, y, width and height can be left out when callin #new. They will default to 0, 448, 640 and 32 respectively. Code: # By Nitt aka jimme reashu Caution This window was not designed to be moved around after creation. If it is, the background will be left behind. If you want this functionality, let me know and I'll add it. Resources Here are the icons and window skin I used, in case you want them: Icons.zip (Size: 7.24 KB / Downloads: 1) [i]Good luck, have fun! //Nitt |