I'm working on customizing the message window in my project and I need to offset the text vertically.
Where does the code set the y position of the text in the message window? I looked for drawtext in the code but couldn't seem to find it as it relates to the message window.
My problem is a bit complex because I have increased the vertical size of the message window in order to accommodate a larger face picture, but as a result the text itself is moved upwards. Decreasing the size of the window brings the text down to where I want it, but then part of the face picture is cut off.
I basically would like to know of any way to reposition the text in the message window vertically. I need a method that does not move the face picture. Thus, moving the entire window is out of the question.
I am using yanfly message core along with its extensions.
Quick question: When I create a var within a notetag, can that var be used outside that notetag?
Example:
<Custom Initiate Effect>
var stuff = 420;
$gameMessage.add('happy ' + stuff);
</Custom Initiate Effect>
<Custom Conclude Effect>
stuff += 1;
</Custom Conclude Effect>
This is just a random example I made up, it has nothing to do w/ wut I'm making. I just want to know if the var will persist outside the notetage it was created in, which in this case is <Custom Initiate Effect>
How do I reference attackTimes+ in a damage formula? I've tried "user.attackTimesAdd()" but it doesn't work... I'm just looking for the correct syntax to reference this trait. Thx.
Uuuh, JS quick question...
Is there a way to measure text width without creating a new bitmap?
I know Bitmap.measureTextWidth, but I just need the text width in pixel to update in real time.
Why are you creating a new bitmap just to use it? Presumably if you have something that's displaying text, there's already a Bitmap object there that can call it.
While I'm here, I have a question not worth it's own thread:
How can I add Text to a scene without using windows. Like a simple HUD Text such as "Player Name" on the Map Scene. Is there a way to create a Text Sprite, which has the same properties as a Image Sprite?
For example, something like this:
weaponImage = new Sprite(ImageManager.loadMenuWeapon("weapons_ar_goliath_inspect"));
SceneManager._scene.addChild(weaponImage);
But with a costum, free floating, non-Window, Text.