Lady_Blackpearl

Villager
Member
Joined
May 25, 2018
Messages
27
Reaction score
18
First Language
Italian
Primarily Uses
RMMV
Hi I'm new,
until now I have searched for tutorials on youtube or google but seem can't find anything I need. I'm also new in javascript or programming, tho with guides and some of my ideas I'm making my own custom menu. Looking for tutorials how to create text inside the custom menu and place it everywhere I want. For example I made a info bar image and on top I want text " This is a potion" or "You can change equipment here" or showing items/equip info. Buts eem can't find anything for a beginner like me. Thank you!
 

Poryg

Dark Lord of the Castle of Javascreeps
Regular
Joined
Mar 23, 2017
Messages
4,233
Reaction score
11,316
First Language
Czech
Primarily Uses
RMMV
You won't find plugin making tutorials. The programming part of RM community is so small that it's not worth it to try.

Nevertheless, you'll be looking for this function call:

Code:
Window_CustomMenu.prototype.drawItem = function () {
this.drawText(text, x, y, width, align)
}.
The last two parameters are optional.

The best way to learn is to read the rpg_windows script and see how the text drawing is handled in different menus.

I won't be explaining this in detail though.
 

Lady_Blackpearl

Villager
Member
Joined
May 25, 2018
Messages
27
Reaction score
18
First Language
Italian
Primarily Uses
RMMV
Oh I was looking that part before so I have try different way to draw the text, but none worked. Tho while most of the try reported a error undefined or such, only one didnt bring any errors. But also didnt show any text. It was with the _commandWindow. Problem is if it showed any text it was out the visible area and this._commandWindow.visible = false; ...but I have try for the other scene and no luck mmh. I could also make 8 png images with the text and load it no problem, tho this wasn't the solution for learn soemthing. XD
 

mobiusclimber

Regular
Regular
Joined
May 3, 2018
Messages
422
Reaction score
206
First Language
english
Primarily Uses
RMMV
There's a lot of "how to script" tutorials on Youtube. Not sure if any of them will have the solution you're looking for but it's worth a shot:

Also, I know next to nothing about scripting, but I believe for menus and the like, there's more than one place that you have to add stuff to in order for it to show up in the menu. I'd suggest looking around at where all the menu items are at in the script and going from there.
 

Lady_Blackpearl

Villager
Member
Joined
May 25, 2018
Messages
27
Reaction score
18
First Language
Italian
Primarily Uses
RMMV
Oh yes I'm looking a lot of tutorials in youtube but haven't found any example of it for now. Of course I will check for more. Worst case can live without, it was most for learn in case I need it for real. :p thanks!

EDIT: oh right Im following that video tutorial you linked me anyway. Thats how I'm making my custom menu following the guide and adding my few knowledge.

EDIT2: this._commandWindow.drawText("Hello World", 0, 0); apparently this line is working and it was invisible due to this._commandWindow.visible = true; now remain the problem tho.I really want keep the command invisible but also keep the drawText visible ahaha
 
Last edited:

mobiusclimber

Regular
Regular
Joined
May 3, 2018
Messages
422
Reaction score
206
First Language
english
Primarily Uses
RMMV
Some Random Dude also has a good series on changing the menu. Here's the first part of it:

 

Lady_Blackpearl

Villager
Member
Joined
May 25, 2018
Messages
27
Reaction score
18
First Language
Italian
Primarily Uses
RMMV
Ah yes that one is also what i was following. Now Im trying to remake the commands images because didn't like the one I amde and then I need to go back modify the size of the menu status window because is not fitting inside the background coulmn I made. As for the text eh it work for the _commandWindow and _goldWindow as I try, but with _infoBarSprite that I made for add the image I get undefined error. @.@
 

Latest Threads

Latest Posts

Latest Profile Posts

Obvious One.gif
Meet my new mascot. He's also a mimic! No prizes for guessing this guy's name, though, haha
BANNER2.png
I put out a new pack and I swear, I did not realize how it looks like the ones on the right are scared/nervous of the one on the left until way after o_O I just wanted to showcase some of them randomly xD
Well, if anyone has a funny, simple, easy RM game they want me to playtest/review, I would love it.
Someone close to me straight up told me they didn't think my relationship with my girlfriend would last. No lead up, very bluntly. Like it's obvious or something. Trying not to let it get to my head, but it's hard.
The distraction would be a life saver.
QuestMZPlugin.png

My first foray into a plugin that I plan to release. Working on something for those who want to set up a Dragon Quest style battle HUD with minimal fuss. Includes the ability to round the battleback corners to fit your windowskin and, of course, front-view animations.

QuestMZPLugin_CustomWindow.png
Do you ever wonder where the heck everyone is going at 9:00 at night? Like... guys, go home! Get some sleep! Me? Oh, I'm out to get pizza 'cause I decided supper time was 9:30 tonight.

Forum statistics

Threads
134,756
Messages
1,250,344
Members
177,516
Latest member
uglychristmassweaterbio
Top