Hey there! I've been at this for hours, I have been defeated, the namebox window is simply too powerful for me, i require assistance.
So for context: I'm using DK_Message_Busts to show the characters during dialogue, but the namebox would always be on top of the bust, causing this obvious problem:
After researching for a while I find out RPG maker handles layering depending on which window function was called first, so I look into the JS files and spot the Window_NameBox function in rmmz_scenes.js. I swap it around with the Window_Message function, which is what I assumed the plugin linked the busts to, and sure enough, the namebox is behind the portrait now! Awesome!
New problem: Now the namebox window is generated even if there is no name to show. Man.
So how do I get rid of that? Is there a check somewhere in the message window function that I should move over to the namebox function? how likely is that to make the whole engine explode considering I don't know javascript very well?
Second, most important new problem: now the bust covers the text. Well it'd look good if the text was aligned to the right, or if I added padding to the left! Should be easy, right? (narrator: it was not easy)
There is a padding parameter in the code, but that's padding in all directions, which doesn't work here. I've tried paddingLeft in a js file, nope, i've tried newLineX, tried a bunch of other things, nothing. So big question two, how do I add 272 pixels of left padding to the namebox text, so it appears to the right of the bust?
So for context: I'm using DK_Message_Busts to show the characters during dialogue, but the namebox would always be on top of the bust, causing this obvious problem:
After researching for a while I find out RPG maker handles layering depending on which window function was called first, so I look into the JS files and spot the Window_NameBox function in rmmz_scenes.js. I swap it around with the Window_Message function, which is what I assumed the plugin linked the busts to, and sure enough, the namebox is behind the portrait now! Awesome!
New problem: Now the namebox window is generated even if there is no name to show. Man.
So how do I get rid of that? Is there a check somewhere in the message window function that I should move over to the namebox function? how likely is that to make the whole engine explode considering I don't know javascript very well?
Second, most important new problem: now the bust covers the text. Well it'd look good if the text was aligned to the right, or if I added padding to the left! Should be easy, right? (narrator: it was not easy)
There is a padding parameter in the code, but that's padding in all directions, which doesn't work here. I've tried paddingLeft in a js file, nope, i've tried newLineX, tried a bunch of other things, nothing. So big question two, how do I add 272 pixels of left padding to the namebox text, so it appears to the right of the bust?