I am creating a DLabel and the text is fairly long.
The text is "* =Warning, If you do it again, you get kicked, do it 3 times, banned. The time will depend on situation."
Yet it appears on my menu as * =Warn...
Could you please tell me what I am doing wrong?
here is the little snippet of lua from it.
Stream.RulesLabel1 = vgui.Create("DLabel", Stream.RulesPanel)
Stream.RulesLabel1:SizeToContents()
Stream.RulesLabel1:SetPos(5,123)
Stream.RulesLabel1:SetText( "* =Warning, If you do it again, you get kicked, do it 3 times, banned. The time will depend on situation." )
It is not because there more text the the panel (which there isn't). I have other ones on the same panel, and they all do it.
The more I added the shotter the text is. Now it is like this. "1) ..."
Could you please tell me what I am doing wrong?
Thanks a bunch.
-Kyle
Could you possibly take a screen shot of it? That way it would be easier for me to help
OK sure
Also, Since I am a bit of a derma noob, I couldn't get my multi lines working. I tried lots of diff. stuff. Nothing worked.
I have about 15 different DLabel's on the same page.
Would that have something to do with it?
Screenie coming in 1 min
Just post the screen shot so I can see what you mean exactly -.- The post you made is a little confusing.
Haha, I tried taking Screenie w/ F5. It failed. Only shows sights and not menus.
And the \n quote someone gave me failed too.
and that search is no good *nofear1999*
Ill screenie with prntscreen
[editline]07:46PM[/editline]
That failed aswell
only possible way I can now is with camera XD
Will be up in 1 min
No, Press Control + print screen then use control V in paint to paste it. Then you can crop it and post it on an image sharing website and post it here.
Just put SizeToContents after your SetText...
[lua]
Stream.RulesLabel1 = vgui.Create("DLabel", Stream.RulesPanel)
Stream.RulesLabel1:SetPos(5,123)
Stream.RulesLabel1:SetText( "* =Warning, If you do it again, you get kicked, do it 3 times, banned. The time will depend on situation." )
Stream.RulesLabel1:SizeToContents()
[/lua]
Add me on steam, it'll be easier to fix / communicate. Steam name is GUNH0G. And btw it isn't an O its a zero.
[QUOTE=blackops7799;18397410]Just put SizeToContents after your SetText...
[lua]
Stream.RulesLabel1 = vgui.Create("DLabel", Stream.RulesPanel)
Stream.RulesLabel1:SetPos(5,123)
Stream.RulesLabel1:SetText( "* =Warning, If you do it again, you get kicked, do it 3 times, banned. The time will depend on situation." )
Stream.RulesLabel1:SizeToContents()
[/lua][/QUOTE]
That didn't help at all
[editline]08:07PM[/editline]
NVM it did
Thanks a lot!
I loved how a reputable coder comes in and gives the quick fix, yet you continue to conversate with a random person who couldn't answer this simple question without his eyes physically seeing the problem...
Who would that be?
I appoligize, Gunhog was the one who didn't know what he was talking about. My bad :buddy:
Haha
You don't think I can make a simple derma menu with text on it? :<
Sorry, you need to Log In to post a reply to this thread.