I've been looking for an MOTD that scrolls at the top of the screen. I know I've seen free versions of it but now I can't seem to find any. Maybe its my wording for the addon. But pretty much its this: [url]https://www.youtube.com/watch?v=f5ZgP-G_b48[/url]
Picture wise as an example:[url=http://postimg.org/image/3tca8arkr/][img]http://s17.postimg.org/3tca8arkr/sdadasdd.jpg[/img][/url]
Here, I whipped something up real quick ( A completed tutorial deal ); let me know if you need me to post it.
But, try to solve the puzzle first!
Look into string.sub ( to split up the string ), string concatenation ( to join two seams together ), modulus ( % for wrapping the sentence so it appears seamless when it starts over ), surface.SetFont, surface.GetTextSize, draw.SimpleText and that's really all it is...
Why not just use render.SetScissorRect and sacrifice drawing it twice to make it "wrap" instead of bothering with all those string operations?
[QUOTE=Acecool;44407016]Here, I whipped something up real quick ( A completed tutorial deal ); let me know if you need me to post it.
But, try to solve the puzzle first!
Look into string.sub ( to split up the string ), string concatenation ( to join two seams together ), modulus ( % for wrapping the sentence so it appears seamless when it starts over ), surface.SetFont, surface.GetTextSize, draw.SimpleText and that's really all it is...[/QUOTE]
Id be really awesome if you could help me out with the tutorial. I'm familiar with coding, but not to the extent of creating it.
Here is some 3d2d Sliding MOTD source code I've made.
[media]http://www.youtube.com/watch?v=jjJTn12_D4I[/media]
Source Code: [url]http://pastebin.com/ARtj3zXf[/url]
This is interesting, Not exactly what I'm looking for but definitely something worth while.
Thanks.
This looks exactly like it
[URL="https://github.com/Chessnut/pistachio/blob/master/gamemode/main/modules/ticker/cl_main.lua"]https://github.com/Chessnut/pistachio/blob/master/gamemode/main/modules/ticker/cl_main.lua[/URL]
Here's the file:
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/scrolling_motd_math_and_text_principles.lua[/url]
It doesn't do smoothing though. The letters get cut off, you could easily fix that with a 1 character buffer zone on both ends.
Sorry, you need to Log In to post a reply to this thread.