• GMod - What are you working on? - June 2014 (#34)
    818 replies, posted
[QUOTE=Robotboy655;45195388]Not as easily as you'd think since it uses DarkRP functions and stuff, but still somewhat easier I guess.[/QUOTE] Yea those functions do piss me off, but I did once remake my DarkRP edits as an addon and it did suprise me how much I could get done. I wish wiremod would let you edit things more externally, editing native E2 functions from an external addon is so damned tedious and not update friendly.
Yeah, it's extremely dependant on darkrp, especially the apartment system of course. [t]http://i.imgur.com/rOtXG56.png[/t] more useless statistics [IMG]http://i.imgur.com/GMKMEzd.png[/IMG] and ads but i should probably stop posting, not really gmod related really
My scoreboard [t]http://i.imgur.com/tDwJCdH.png[/t] Not Lua yet though, will report back when I've done that :)
ChicLeets! [video=youtube;FtdqRmDqQgE]http://www.youtube.com/watch?v=FtdqRmDqQgE[/video] TO EVERYONE: Sorry for causing a stir, I didn't intend for these problems, I was quite out of my head while writing because of things going on in my life. So I am sorry everybody, I hope you guys don't hate me too much.
Just added some more animations, real time previewing.. (video quality got worse at the end for some reason) [vid]http://puu.sh/9HkLX/e866beda07.webm[/vid]
[QUOTE=Cyberuben;45195727]My scoreboard [t]http://i.imgur.com/tDwJCdH.png[/t] Not Lua yet though, will report back when I've done that :)[/QUOTE] Aaaaand done! [t]http://i.imgur.com/nWyhpqq.jpg[/t] [t]http://i.imgur.com/8ljmUkO.jpg[/t] Might add a "header" row to add "R, Name, K, D" as some sort of legend. However, I'm not able to scroll. I'm using "DScrollPanel", just like the base gamemode does. It's inspired by Battlefield, using "Flat UI Colors". edit: can scroll now, didn't focus the panels...
[QUOTE=Cyberuben;45196529]scoreboard[/QUOTE] Yeah, very nice. I like it, but i don't like that scroll bar.
[QUOTE=xaviergmail;45181299][img]http://i.csiservers.com/KD44.png[/img] [img]http://i.csiservers.com/KYgp.png[/img] [img]http://i.csiservers.com/HXVi.png[/img] Sorry, I just... :suicide:[/QUOTE] Am I missing a joke?
[QUOTE=AirBlack;45196872]Yeah, very nice. I like it, but i don't like that scroll bar.[/QUOTE] Yeah, I agree. I'm not really sure how easy it is to customize it though.
[QUOTE=Cyberuben;45196923]Yeah, I agree. I'm not really sure how easy it is to customize it though.[/QUOTE] DPanelList.VBar.Paint should work I believe, if I'm recalling that correctly.. If not you can just get the children of the VGUI element with the function and paint those. [url]http://wiki.garrysmod.com/page/Panel/GetChildren[/url]
with minecraft on hiatus I've been playing dark souls, but I finally took a break and decided to revisit something I started a little while ago [img]http://puu.sh/9HHRb/06d45145c7.jpg[/img] ;)
[QUOTE=vrej;45195885]ChicLeets! [video=youtube;FtdqRmDqQgE]http://www.youtube.com/watch?v=FtdqRmDqQgE[/video] TO EVERYONE: Sorry for causing a stir, I didn't intend for these problems, I was quite out of my head while writing because of things going on in my life. So I am sorry everybody, I hope you guys don't hate me too much.[/QUOTE] I don't like your use of custom thumbnails.
[QUOTE=Pantho;45195541]I wish wiremod would let you edit things more externally, editing native E2 functions from an external addon is so damned tedious and not update friendly.[/QUOTE] You're not supposed to edit native E2 functions because that (potentially - depending on how much you edit them) breaks everyone's old E2s who play on your server. And confuses new users. Adding your own custom E2 functions is easy, so you can do that instead. If you want to edit native E2 functions because there's something wrong with them, post a pull request.
[QUOTE=Cyberuben;45196923]Yeah, I agree. I'm not really sure how easy it is to customize it though.[/QUOTE] Found this in my old VGUI. [lua] dPanelList.VBar.Paint = function() surface.SetDrawColor(70,70,70) surface.DrawRect(0,0,dPanelList.VBar:GetWide(),dPanelList.VBar:GetTall()) end dPanelList.VBar.btnGrip.Paint = function() surface.SetDrawColor(223,126,21) surface.DrawRect(0,0,dPanelList.VBar.btnGrip:GetWide(),dPanelList.VBar.btnGrip:GetTall()) end dPanelList.VBar.btnUp.Paint = function() draw.RoundedBox( 4, 0,0,dPanelList.VBar.btnUp:GetWide(),dPanelList.VBar.btnUp:GetTall(), Color( 223,126,21,200 ) ) end dPanelList.VBar.btnDown.Paint = function() draw.RoundedBox( 4, 0,0,dPanelList.VBar.btnDown:GetWide(),dPanelList.VBar.btnDown:GetTall(), Color( 223,126,21,200 ) ) end [/lua]
[QUOTE=AirBlack;45200017]Found this in my old VGUI. [lua] dPanelList.VBar.Paint = function() surface.SetDrawColor(70,70,70) surface.DrawRect(0,0,dPanelList.VBar:GetWide(),dPanelList.VBar:GetTall()) end dPanelList.VBar.btnGrip.Paint = function() surface.SetDrawColor(223,126,21) surface.DrawRect(0,0,dPanelList.VBar.btnGrip:GetWide(),dPanelList.VBar.btnGrip:GetTall()) end dPanelList.VBar.btnUp.Paint = function() draw.RoundedBox( 4, 0,0,dPanelList.VBar.btnUp:GetWide(),dPanelList.VBar.btnUp:GetTall(), Color( 223,126,21,200 ) ) end dPanelList.VBar.btnDown.Paint = function() draw.RoundedBox( 4, 0,0,dPanelList.VBar.btnDown:GetWide(),dPanelList.VBar.btnDown:GetTall(), Color( 223,126,21,200 ) ) end [/lua][/QUOTE] Could you please link me to some resources what all the possible settings and such? I'm new to vgui and I had no clue I could access the VBar. Am I able to disable the btnDown and btnUp, and extend the length of the scrollbar to match the height it'd have WITH the 2 buttons? If not, I think I have to create my own scrollbar, correct?
[QUOTE=Cyberuben;45200282]Could you please link me to some resources what all the possible settings and such? I'm new to vgui and I had no clue I could access the VBar. Am I able to disable the btnDown and btnUp, and extend the length of the scrollbar to match the height it'd have WITH the 2 buttons? If not, I think I have to create my own scrollbar, correct?[/QUOTE] [url]https://github.com/garrynewman/garrysmod/blob/ff51a59d5a821dec3c8f524631c86150b3e4744d/garrysmod/lua/vgui/dpanellist.lua[/url]
[QUOTE=Divran;45199112]You're not supposed to edit native E2 functions because that (potentially - depending on how much you edit them) breaks everyone's old E2s who play on your server. And confuses new users. Adding your own custom E2 functions is easy, so you can do that instead. If you want to edit native E2 functions because there's something wrong with them, post a pull request.[/QUOTE] Oh god no, nothing wrong with them. Might do a pull request with a blacklist feature maybe? I honestly hate using E2 on RP servers, but sadly I let my servers run wild and they're more of a mass build/e2 whore RP fest than true RP. But some features for E2 need restricting in order to keep it in check etc. Just personal preference for my gamemode really, I mean you can edit the gate functions externally so would just be nice if I could do the same for E2. And yes, I know you can add custom E2 functions as we have, and have had for many years now.
[QUOTE=Ott;45198280]I don't like your use of custom thumbnails.[/QUOTE] I know the thumbnail is bad because I made it in less than 10 mins. But recently I got photoshop, so I will end up remaking my garrysmod thumbnails.
Do any of you remember "don"? It's a table->string encoder I posted in WAYWO a while back. Today, I decided to rewrite it almost from scratch, by request from a guy on my friends list who wanted to use it. It's now more awesome than ever. Download: [url]https://dl.dropboxusercontent.com/u/15312597/lua/don2.lua[/url] Features: * Can automatically detect multiple references to the same table, and will define said tables at the top of the file. * Handles reference loops * Can encode functions (it's a bit messy and more of a hack. Encoding functions is disabled by default) * decoding is as easy as RunStringing the string because it outputs executable Lua code. Note: * I made this outside gmod, so don.decode uses a plain Lua method of executing strings, and not RunString. * Don't use this on strings you receive from the client without sandboxing your RunString, or they can take over the server. Here's some example inputs and outputs: Input 1 (multiple references) [code]local t2 = {1,2,3,4,5} local main = { ["one reference"] = { "hello", "world", ["three references"] = t2 }, ["three references a"] = t2, ["three references b"] = t2 } print(don.encode( main ))[/code] Output 1 [code]local table1 = { 1, 2, 3, 4, 5, } local main = { ["three references a"] = table1, ["three references b"] = table1, ["one reference"] = { [1] = "hello", [2] = "world", ["three references"] = table1, }, } return main[/code] Input 2 (function encoding) [code]local main = { ["table ception"] = { { { { ["function encoding for the lolz"] = PrintTable } } } } } print(don.encode( main, true ))[/code] Output 2 [code]local main = { ["table ception"] = { { { { ["function encoding for the lolz"] = function( t, indent, done ) done = done or {} indent = indent or 0 for key, value in pairs (t) do if ( type(value) == "table" and not done[value] ) then done [value] = true print( string.rep ("\t", indent) .. tostring(key) .. ":" ); PrintTable (value, indent + 2, done) else print( string.rep ("\t", indent) .. tostring (key) .. "\t=\t" .. tostring(value) ) end end end, }, }, }, }, } return main[/code] Input 3 (Loops) [code] local t2 = {} local main = { t2 } t2[1] = main print(don.encode( main ))[/code] Output 3 [code]local table1 = { } local main = { table1, } table1[1] = main return main[/code]
Just use YouTube's thumbnails. Using custom ones ruins the "authenticity" of a WAYWO post. The repetitive thumbnails make it seem like you're making a series. A series of videos that most likely nobody but WAYWO will care about. You're overdoing it.
[QUOTE=Cyberuben;45200282]Could you please link me to some resources what all the possible settings and such? I'm new to vgui and I had no clue I could access the VBar. Am I able to disable the btnDown and btnUp, and extend the length of the scrollbar to match the height it'd have WITH the 2 buttons? If not, I think I have to create my own scrollbar, correct?[/QUOTE] [URL="https://github.com/garrynewman/garrysmod/blob/ff51a59d5a821dec3c8f524631c86150b3e4744d/garrysmod/lua/vgui/dvscrollbar.lua"]Scrollbar VGUI element[/URL]
[QUOTE=Ott;45200721]Just use YouTube's thumbnails. Using custom ones ruins the "authenticity" of a WAYWO post. The repetitive thumbnails make it seem like you're making a series. A series of videos that most likely nobody but WAYWO will care about. You're overdoing it.[/QUOTE] Actually: [url]http://steamcommunity.com/groups/vrejgaming[/url]
I made pointshop work with my leveling system :3 [IMG]http://i.imgur.com/w0FuUgo.png[/IMG]
[QUOTE=vrej;45201355]Actually: [url]http://steamcommunity.com/groups/vrejgaming[/url] Also my Youtube channel and Facebook page. sooo =3[/QUOTE] Oh god we don't care fyi you are years late to basically every trend you are trying to "follow" with that
Anyone install a server today, from beta or dev appid 4020? My test server just keeps complaining about new GLIB requirements, but only if I use fresh garrysmod/bin files. If I use last weeks it's fine.
[QUOTE=Pantho;45203556]Anyone install a server today, from beta or dev appid 4020? My test server just keeps complaining about new GLIB requirements, but only if I use fresh garrysmod/bin files. If I use last weeks it's fine.[/QUOTE] [URL="http://facepunch.com/showthread.php?t=1348923&page=99"]I think you're in the wrong thread.[/URL] :rolleyes:
[QUOTE=Mors Quaedam;45203625][URL="http://facepunch.com/showthread.php?t=1348923&page=99"]I think you're in the wrong thread.[/URL] :rolleyes:[/QUOTE] Possibly, but asking the dev folks a question in regards to the dev branch isn't the worst idea. Maybe Next Update thread would have been more appropriate.
[QUOTE=LennyPenny;45203471]Oh god we don't care fyi you are years late to basically every trend you are trying to "follow" with that[/QUOTE] the better solution to all of this is to just stop replying to him, then he just posts his own things and who cares, at least he IS making something with lua.
[img]http://i.imgur.com/1QM0Fj3.png[/img] Working on an overlay style menu. Lock icon in the top right is to unlock the keyboard; The entire menu acts like a scoreboard until it's pressed, at which point it acts like a window with MakePopup.
[QUOTE=Lixquid;45205744][img]http://i.imgur.com/1QM0Fj3.png[/img] Working on an overlay style menu. Lock icon in the top right is to unlock the keyboard; The entire menu acts like a scoreboard until it's pressed, at which point it acts like a window with MakePopup.[/QUOTE] I love the glass style.
Sorry, you need to Log In to post a reply to this thread.