I know next nothing about java javascript and/or programming but i'm here trying to make this work. The problem was that i wanted to be able to draw icons with Escape characters in the name of the map while using a custom name plugin. Mewgles changes the font to a custom font and size and changes the position of the text to a custom placing, but doens't allow the use of Escape Characters. Thx to @Lady_JJ and @Aesica's help i was able to understand that when you use DrawText , it won't allow to use them but if you use DrawTextEx it allows Escape characters.
So what i did with my basic understanding of programing (lol) is just looked for all the DrawText parts of the code and replaced them with DrawTextEx. And it worked! now i can use icons.... however the whole code doesn't affect the text now, so the position of the text is the standard map name and the font is the game font... so now i'm in the opposite situation where i now have the icons but the plugin doesn't affect the text at all. The text is not centered, the font won't change and the size won't change. it's all the standard. Everything else that doesn't have to do with the text works flawlessly
What do i have to do for the plugin to link all the coding into DrawTextEx instead of DrawText?
im attatching the modified and the original version.
So what i did with my basic understanding of programing (lol) is just looked for all the DrawText parts of the code and replaced them with DrawTextEx. And it worked! now i can use icons.... however the whole code doesn't affect the text now, so the position of the text is the standard map name and the font is the game font... so now i'm in the opposite situation where i now have the icons but the plugin doesn't affect the text at all. The text is not centered, the font won't change and the size won't change. it's all the standard. Everything else that doesn't have to do with the text works flawlessly
What do i have to do for the plugin to link all the coding into DrawTextEx instead of DrawText?
im attatching the modified and the original version.