Picture-based Custom Menu

Hello! What brings me here today is a rather complex request (at least for my capabilities). I'm in need of a picture-based menu— I'm aware this can be done through eventing alone, but it's too advanced for me. So I'm wondering if someone could help me with a script instead. I can provide images for each item if needed, though this time I just need the following elements to be shown in the locations as the mockup below.

Mockup:

Spoiler: Mockup
deleted

Base features:

- When pressing ESC to go to the menu, only one picture as background appears. A "fade up" animation is optional.
- The diamond are buttons above the background picture, also picture-based. So 1 button means: 1 picture for selected, and 1 picture for unselected.
- The fields "character name", "lvl. number", and currency must change automatically when actor is renamed in-game, levels up, or gains or loses money.
- First bar is HP. I'm using KMS Generic Gauge which changes the aspect of bars.
- Second bar is MP. Same as above.
- Third bar is Warmth, a custom needs system by Apellonyx, also with KMS Gauge (compatibility patch by Roninator2). I can provide Apellonyx's script if needed in DMs since original link seems to be dead.
- Buttons with "custom" means they don't call any default scene. You can leave those aside. I only need for the moment the first button to call Inventory Scene, the second to call the Equip Scene and last one to call End Game.
- Game screen resolution is 640*480 (same as mockup).
- Game has 1 actor only.

Knowing this is a complex task, please hit me a DM if you need further information or PNGs for the elements! That's all, and to whoever chooses to help me: I owe you my life.
Bump!

Considering asking in a new thread for some sort of "customizable template" instead, more simple, so others can also use the script.
Well, how many heroes will be playable in your game? 1? 2? A few dozens? A couple of hundreds?
One.

Captura de pantalla (744).png
OK, which option do you prefer?
  • Draw windows.
  • Draw sprites without windows nor borders.
Without windows nor borders, just like the mockup.
This is what I've got so far.

actor_menu_ace001.jpg

Code No Longer Available.
OMG 😍 It's coming out so well, thank you! I won't use the faceset because I'll draw the character's face on the same background, but it's a nice addition. Maybe using the faceset can be turned on and off?

Spoiler
deleted
Set FACE_MODE to either
Ruby:
:face
or
Ruby:
:picture
and it will pick the right one for you.
Alright :ywink: Keep up the good work!
Ah OK, but don't get used to it. 😛
Normally, people pay for certain custom menus, I think.

actor_menu_ace002.jpg

Code No Longer Available.
Yeah, I was very lucky to receive your notification, almost giving up to see my vision of this menu come true since scripting is a mysterious art for me. Which I cannot thank you enough for you are taking the time to do this, even for free. I'll make sure to credit your work, it's the least I can do.

It's looking splendid so far. I'll try the changes tomorrow. Please ask me if you have any more questions!

Edit: @kyonides Tested it! This is how it looks (I'm not using TP, just 1 need from Apellonyx's script). Would be cool if there was an option to remove the gauge names and make the gauges thicker. If it's not possible, that's okay.

Spoiler
deleted
Third bar is Warmth, a custom needs system by Apellonyx
Did you rename one of the default values or make a new one?
There is no warmth, the default are Life, Food, Water, Rest, and Toxin
Sorry, I should have specified. Yes, I renamed Water to be Warmth.
Here's the new code after adapting it to Apellonyx's system and Roninator's patch.
By the way, you should go back to his patch to #comment out the draw_text lines you find there because those are the lines that make it possible for the script to draw the names of those stats.

Code No Longer Available.
Thanks man! Removing the text worked, though now HP and MP are gone and the window is visible, even though opacity is set to 0.

Spoiler
deleted

Ruby:
  FACE_MODE = :picture
  BACKDROP  = "menubackdrop"
  LEVEL     = "Lv. %s"
  NAME_FONT_SIZE = 28
  BACK_OPACITY = 0
  FACE_Y    = 40
  NAME_Y    = 275
  LEVEL_Y   = 300
  WIN_XY    = [230, 320]
  BAR_HP_Y  = 4
  BAR_MP_Y  = 30
  BAR_WM_Y  = 48
  GOLD_X    = 430
  GOLD_Y    = 420
That's not my fault. You gotta modify your settings in Apellonyx's script to make it disappear.
This means you gotta make 3 changes in total.
A little complicated with a vague response, but I'll try.
I supposed that you were kind of used to configuring Apellonyx's script, but you failed to include details like the warmth bar which I knew nothing about. How would I know that you weren't using TP as warmth?

In his script where it says FOODENABLE it should be set to true. The same is valid for warmth.

Where it says:
Ruby:
self.opacity = Anyx::WINOPACITY

(It's right above a call to the refresh method.)

Copy and paste it right below, but instead of opacity it should say self.back_opacity there.

And I don't have graphics similar to those buttons you described. I'd need something to work with so if you could provide me with those sprites, that'd help a lot.
Copy pasting self.back_opacity showed no results, as opposed to editing line 104 on my own account. Which solves the problem about the opacity of the Warmth window, but still doesn't remedy the fact that HP and MP aren't showing anymore.

In any case, on the detail about Warmth and TP, sorry for not specifying sooner, but I would have replied to you if you just asked. As I said on the original post, I'm open to any questions because I myself don't understand most of scripting. I don't want someone to give me unclear directions or assumptions about me when I have already stated that I am not a scripter. I just drew the icons, but at this point I'll get someone else to do the scripting for me.

Thank you for your time, Kyonides.

Original thread: https://forums.rpgmakerweb.com/threads/picture-based-custom-menu.166648/