Hi
I'm trying to show the window frame/skin around the 'Mini Labels from Yanfly's YEP_EventMiniLabel.
I'd post the code, but I'm not sure I'm allowed to.
Making them visible was easy, cause I could just edit "this.opacity" to 255 or something.
But the problem for me, is that when the label is hidden (plugin command: HideMiniLabel), the window stays visible.
I tried imitating the original code by adding this.opacity similar places, but it didn't have any effect.
And that's about as far as my (lack of) coding skills got me.
So in short, I'd like to:
1. make the mini-label "window" be visible
2. Make it Show/Hide just like the label does
But the current problem is:
When the label is hidden the window frame stays visible
I'm trying to show the window frame/skin around the 'Mini Labels from Yanfly's YEP_EventMiniLabel.
I'd post the code, but I'm not sure I'm allowed to.
Making them visible was easy, cause I could just edit "this.opacity" to 255 or something.
But the problem for me, is that when the label is hidden (plugin command: HideMiniLabel), the window stays visible.
I tried imitating the original code by adding this.opacity similar places, but it didn't have any effect.
And that's about as far as my (lack of) coding skills got me.
Code:
Window_EventMiniLabel.prototype.show = function() {
if (this.contentsOpacity >= 255) return;
this.contentsOpacity += 16;
this.Opacity += 16; //edited
this.visible = true;
};
Window_EventMiniLabel.prototype.hide = function() {
if (this.contentsOpacity <= 0) {
if (this.visible) this.visible = false;
return;
}
this.contentsOpacity -= 16;
this.Opacity -= 16; //edited
So in short, I'd like to:
1. make the mini-label "window" be visible
2. Make it Show/Hide just like the label does
But the current problem is:
When the label is hidden the window frame stays visible