1. Is there a way to center the content (text) of the DTextEntry element?
2. How to get rid of the current language thing? ([URL="https://wiki.garrysmod.com/page/Panel/SetDrawLanguageIDAtLeft"][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Panel/SetDrawLanguageIDAtLeft]Panel:SetDrawLanguageIDAtLeft[/url][/URL])
Thanks in advance.
1. no
2. [url]http://wiki.garrysmod.com/page/Panel/SetDrawLanguageID[/url]
[QUOTE=Shadow45;51982716]1. no[/QUOTE]
There is ways to do this, yes.
[QUOTE=Klaes4Zaugen;51982760]There is ways to do this, yes.[/QUOTE]
If you tell me you can do this by rewriting the painting function I will redefine the size of your anus.
[QUOTE=Shadow45;51982816]If you tell me you can do this by rewriting the painting function I will redefine the size of your anus.[/QUOTE]
I'm ready!
Then again I cheated. I didn't rewrite the Paint function as that's impossible without losing functionality, so I made a work around :^)
[t]http://i.imgur.com/YoXCqBD.gif[/t]
[url]https://hastebin.com/irijolecof.lua[/url]
[QUOTE=CupCakeR;51982685]1. Is there a way to center the [b]CONTENT (TEXT)[/b] of the [b]DTextEntry ELEMENT[/b]?[/QUOTE]
[QUOTE=Klaes4Zaugen;51983237]Then again I cheated[/QUOTE]
Which lube do you wanna use?
Anyway; my answer is correct but good job even though I'd never do it this way. I'd rather redo the paint function instead of making a super class which only function is to center a dtextentry :)
You can't center it due to the DrawTextEntryText thingy is made in C.
¯\_(ツ)_/¯
[editline]19th March 2017[/editline]
The only thing that works, that I am aware of is, is the workaround I did
Sorry, you need to Log In to post a reply to this thread.