• Opening the menu to Lua - Your contribution needed
    363 replies, posted
[QUOTE=Tobba;23385712]Working on a better startmenu -snip-[/QUOTE] That looks awesome, can't wait to see it in action.
Looks like a vista startmenu
:v: I know, i need a better design
Well,this is very nice. I couldn't get the chat working so I was just doing it manually(running the chat.php in chrome) but uh,had a slight accedint. Forgot the string was set and refreshed the page ... a few times. And it kinda spammed it. Sorry about that. ._.
[QUOTE=Swat player;23399391]Well,this is very nice. I couldn't get the chat working so I was just doing it manually(running the chat.php in chrome) but uh,had a slight accedint. Forgot the string was set and refreshed the page ... a few times. And it kinda spammed it. Sorry about that. ._.[/QUOTE] No problem, we will switch to a new chatsystem soon (sockets) so it does not really matter.
If your chat dosent work theres probbably an error, check the errors tab [editline]09:46AM[/editline] oh wait fuck errors tab isnt committed
[img]http://dl.dropbox.com/u/4838268/snapshot0011.jpg[/img] [img]http://dl.dropbox.com/u/4838268/snapshot0012.jpg[/img] [editline]01:41PM[/editline] On the second pic my mouse was over the LuaMenu icon, screenshot dosent catch mouse [editline]01:48PM[/editline] Maybe im overdoing it?
Well , do only have IRC , Console and chat in luamenu , did I do anything wrong , or plugins were removed?
Nope, but most is still in develoment
[QUOTE=Tobba;23402097]Nope, but most is still in develoment[/QUOTE] Bad , I really wanted to have "Itunes" and "appstore"
Yes, most other tabs is scrapped or in develoment, if you really want, heres my webbrowser: [code]PANEL = {} PANEL.Name = "Web Browser" PANEL.Desc = "Browse the web!" PANEL.TabIcon = "gui/silkicons/application" local Favorites = {} if file.Exists"luamenu/webbrowser/favorites.txt" then Favorites = glon.decode(file.Read"luamenu/webbrowser/favorites.txt") end function PANEL:Init() self:SetMouseInputEnabled(true) self:SetKeyboardInputEnabled(true) self.AddressBar = vgui.Create("DTextEntry", self) self.AddressBar.OnEnter = function() local text = self.AddressBar:GetValue() if string.sub(text, 1, 7) != "http://" and string.sub(text, 1, 8) != "https://" then text = "http://"..text end self.AddressBar:SetValue(text) self.Browser:OpenURL(text) end self.Refresh = vgui.Create("DImageButton", self) self.Refresh:SetImage"gui/silkicons/arrow_refresh" self.Refresh.DoClick = function() self.Browser:Refresh() end self.Refresh:SetTooltip"Refresh" self.Stop = vgui.Create("DImageButton", self) self.Stop:SetImage"gui/silkicons/check_off" self.Stop.DoClick = function() self.Browser:Stop() end self.Stop:SetTooltip"Stop" self.Favorites = vgui.Create("DImageButton", self) self.Favorites:SetImage"gui/silkicons/star" self.Favorites.DoClick = function() local menu = DermaMenu() for k, v in pairs(Favorites) do menu:AddOption(v[2], function() local url = v[1] if string.sub(url, 1, 7) != "http://" and string.sub(url, 1, 8) != "https://" then url = "http://"..url end self.Browser:OpenURL(url) end) end menu:AddOption("Add Favorite", function() local frame = vgui.Create"DFrame" frame:SetTitle"Add Favorite - Press enter to add" frame:MakePopup() local text1 = vgui.Create("DTextEntry", frame) text1:SetPos(2, 25) text1:SetWide(296) text1:SetValue(self.Browser.URL or "") local text2 = vgui.Create("DTextEntry", frame) text2:SetPos(2, 27 + text1:GetTall()) text2:SetWide(296) text2:SetValue("Name of favorite") text1.OnEnter = function() table.insert(Favorites, {text1:GetValue(), text2:GetValue()}) file.Write("luamenu/webbrowser/favorites.txt", glon.encode(Favorites)) frame:Close() end text2.OnEnter = text1.OnEnter frame:SetSize( 300, 31 + text1:GetTall() + text2:GetTall() ) frame:Center() end) local menu2 = menu:AddSubMenu("Remove Favorite") if #Favorites > 0 then for k, v in pairs(Favorites) do menu2:AddOption(v[2], function() table.remove(Favorites, k) file.Write("luamenu/webbrowser/favorites.txt", glon.encode(Favorites)) end) end else menu2:AddOption"None" end menu:Open() end self.Favorites:SetTooltip"Favorites" self.Browser = vgui.Create("HTML", self) self.Browser.OpeningURL = function(_, url) if !self.AddressBar:HasFocus() then self.AddressBar:SetValue(url) end end LuaMenu.Panel.WebBrowser = self end function PANEL:PerformLayout() self:StretchToParent(4,27,4,4) self.AddressBar:SetPos(2, 2) self.AddressBar:SetSize(self:GetWide()/2, 20) self.Refresh:SetSize(16, 16) self.Refresh:SetPos(self:GetWide()-26, 2) self.Refresh.m_Image:SetPos( 0, 0 ) self.Stop:SetSize(16, 16) self.Stop:SetPos(self:GetWide()-48, 2) self.Stop.m_Image:SetPos( 0, 0 ) self.Favorites:SetSize(16, 16) self.Favorites:SetPos(self:GetWide()-70, 2) self.Favorites.m_Image:SetPos( 0, 0 ) self.Browser:StretchToParent(2, 24, 2, 2) end function PANEL:Think() end function PANEL:Paint() end[/code] Paste in: garrysmod/lua/menu_plugins/luaconsole/tab_web.lua Note: every update the bat removes everything in that folder, you can get it again from the backups folder
I do install manualy.. Thanks alot
Does anyone have any request for tabs?
[QUOTE=Tobba;23402567]Does anyone have any request for tabs?[/QUOTE] Has the server browser thing been scrapped if not it might make a cool tab?
[QUOTE=superstepa;23402478]I do install manualy.. Thanks alot[/QUOTE] Why are you installing it manually? (just asking) You can exec the bat to copy everything needed (and I'm thinking of shipping an installer for you lazy guys) :l
[QUOTE=polkm;23402822]Has the server browser thing been scrapped if not it might make a cool tab?[/QUOTE] It used luasocket, OOSocks cant currently send NULL bytes i think, making it impossible
[QUOTE=Tobba;23402952]It used luasocket, OOSocks cant currently send NULL bytes i think, making it impossible[/QUOTE] What, no :S RCon is not possible due to oosocks, serverbrowser is possible, will come today I guess.
If i remember the server query packet contains a null, lemme check [editline]03:23PM[/editline] I was wrong, server query packet: [code]FF FF FF FF 54 53 6F 75 72 63 65 20 45 6E 67 69 ÿÿÿÿTSource Engi 6E 65 20 51 75 65 72 79 00 ne Query[/code] [editline]03:27PM[/editline] Basicly: "\255\255\255\255TSource Engine Query" Send that with UDP and with for response... [url]http://developer.valvesoftware.com/wiki/Server_queries#A2S_INFO[/url] [editline]04:17PM[/editline] Seems like a source engine query must end with a NULL, so its impossible currently
[QUOTE=The-Stone;23402825]Why are you installing it manually? (just asking) You can exec the bat to copy everything needed (and I'm thinking of shipping an installer for you lazy guys) :l[/QUOTE] Well , its easier to me , because , when I did install automatically last time , I didnt install correctly , and my gmod was crashing every 5 minutes [editline]07:19PM[/editline] By the way , can I disable typing my name every launch , this reaally makes me angry
It is supposed to save
[QUOTE=Tobba;23405191]It is supposed to save[/QUOTE] What the ?? Found the problem in 3 seconds
Browser finished: [img]http://dl.dropbox.com/u/4838268/rp_evocity_v2d0422.jpg[/img] [editline]10:17PM[/editline] Ignore the stuff in the background :v: [editline]10:23PM[/editline] And yes screenshot was jpeg raped
[img]http://img.luastoned.com/luasearch.png[/img]
Awsome
[img]http://img.luastoned.com/browser.png[/img] Gave the browser a quick review, everything's commited now! :D
[QUOTE=The-Stone;23410415][img_thumb]http://img.luastoned.com/browser.png[/img_thumb] Gave the browser a quick review, everything's commited now! :D[/QUOTE] :slick:
I see, this project is growing beyond any borders.
Yeah, this is pretty big.
-snip: Totally unnecessary.-
[QUOTE=The-Stone;23410415][img_thumb]http://img.luastoned.com/browser.png[/img_thumb] Gave the browser a quick review, everything's commited now! :D[/QUOTE] I see my browser helped out a bit. :v:
Sorry, you need to Log In to post a reply to this thread.