YEP.40 – Event Mini Label little Modify

Hello, this plugin (Yep Event Mini Label) is amazing, but i really need a modify because i want show Label based on XY position of the screen not the map, i know there's 


<Mini Label Y Buffer: +x><Mini Label Y Buffer: -x>


But in my case this is not a solution, because i'm making a custom menù with parallel process, and you cant know in wich position of the map player open the menu


so, i need to show the result in XY variabiles based on screen


I try to modify in line 411 this 


Window_EventMiniLabel.prototype.meetsFacingRequirements = function() {
if (!this._character) return true;
if (!this._reqFacing) return true;
var direction = $gamePlayer.direction();
var playerX = $gamePlayer.x;
var playerY = $gamePlayer.y;
var eventX = this._character.x;
var eventY = this._character.y;


 into This


Window_EventMiniLabel.prototype.meetsFacingRequirements = function() {
if (!this._character) return true;
if (!this._reqFacing) return true;
var direction = $gamePlayer.direction();
var playerX = $gamePlayer.x;
var playerY = $gamePlayer.y;
var eventX = 110;
var eventY = 80;


But the result is above event head... how can i fix that?

Best
Here's the edited plugin for you. You can now use <Mini Label Screen X: x> or <Mini Label Screen Y: y> to adjust the position of the label. Good luck!


Download: http://pastebin.com/pp75m9kR
@Kadafi Wow thank you very Much!!! 

Thank you!


EDIT:
 


@Kadafi I try it but the text appear onsly 1 second on the screen then disappear, with the same comment in event and old script it works (without position obviously)
Is correct?
 


Comment:
<Mini Label Screen X: 20>
<Mini Label Screen Y: 10>
<Mini Label: LoremIpsum sin amerth a abbas aoha>


Best
I just updated the plugin. You can redownload it from my pastebin.
Thank you is perfect now!!!



Thank you very much, i appreciate that.

All the best


EDIT 2😛


Dear @Kadafi I will not take advantage of your kindness, but if you can do that i need the last modify 🙂
I'll explain my situation, in my project i want use your plugin for show dynamic text based by event, that event it will be updated during the game, so i need to use a common event instead copy and paste the same event in every map, even if i want copy and paste it will be impossibile because in order to create a complete game that will be crazy to do.

If is not difficult to do, can you update it?

All the best
Hmm. Is it to show the mini label through common event?
Yes it will be perfect!
Is possible?


Maybe 1 common event for a text, i dont pretend who can recognize text inside conditional branch, i can use a common event for any text
The mini label needs an event on the map to show it. You can add <CoEvNote: commonEventId> to the event's note box to add all the common event 'Note' to the event. So you don't have to copy the note to any events, just use the notetag. You can redownload the updated plugin from my pastebin.
Thank you Kadafi !

All the best!
Hi Kadafi. I downloaded your plugin, but I keep getting this error: "Cannot read property CoEvNote of undefined".
@CaptainGameMaker this thread is more then 6 years old (almost 7).
and it should work, it's better to make your own thread, as I think you
made a typo or the plugin is outdated (or wrong YEP_plugin order).
Ok. Thanks ShadowDragon! I will give the ALOE_YEP plugin a shot. I'll post here after I see what shakes loose.

Original thread: https://forums.rpgmakerweb.com/threads/yep-40-event-mini-label-little-modify.64422/