[XP] Custom Menu script

Started by Memor-X, December 15, 2010, 06:31:43 pm

Previous topic - Next topic

Memor-X

i'm looking for someone to code this for me, i know how it should works but how to code it

anyway, what i want is a script that allows one to create a menu, in the center of the screen you have your current option, on the left and right of the screen you have arrows and the background should be an image (not the windowskin of any kinda, a picture as in the Pictures folder)

now for configuring the script you should be able to have infinate number of options, i know you can do this by having the image name followed by the menu index so the first option would be for example "pic0", option 386 should be "pic386", you get how that works

each option can either have a call script (like say $scene = Scene_Status.new or Addon.fullscreen()) or nothing, so when you go to it it just shows the image and hitting the confirm button wont work (like if you was making a slideshow or book), could use something like this


case id
   when 0 then return $scene = Scene_Item.new
   when 2 then return $scene = Scene_Load.new
end
return nil


where id is the menu index, if the index returns nil (so in the example above it's index 1), it just shows the image and you can use the confirm button on it, that's probably the only bit of code i know that could be used in this script

when you hit the cancel button, you should be able to return to the previous scene, whether it was Scene_Map or Scene_Menu (encase you use this as a menu inside a CMS)

also, there should be 3 call scripts functions, disable, hide and enable
the disable function should "grey out" the image (use an alternate image instead eg. "pic1_grey") and plus the buzzer noise if you try and use the confirm button on it (ofcause if the confrim button is set not to work on that option no sound should be played anyway)
The hide function should hide the option all together, so when you scroll across, say you was on option 1 and you hid option 2, when you move from 1 to 2, instead of 2 showing up 3 should show up instead
the enable function should undo both disable and hide by revealing the image if hidden or "un greying" the option (so using the original image).

this script can be used to create books where you unlock pages as you go or even your own CMS (provided that you know what script call to make for all options in a normal menu)

if someone can code this for me i would greatly appreciate this as i want this script to create an option in my game's menu where you can run a series of tutorials since i know people don't like long tutorials so giving them the option to see them outweighs that fact they are long (cause the only tutorial you have to sit though is the intro level introducing controls and that)