diff --git a/lua/menu2/mainmenu.lua b/lua/menu2/mainmenu.lua index 11a8c37..7386266 100644 --- a/lua/menu2/mainmenu.lua +++ b/lua/menu2/mainmenu.lua @@ -77,24 +77,6 @@ function CreateGames() end end ---[[local Timestamp = os.time() -local TimeString = os.date( "%H:%M:%S - %d/%m/%Y" , Timestamp ) -NewsList_Backup = NewsList -NewsList = {} -LoadNewsList(); - - -timer.Simple(2, function() - NewsList = {{ - Date = TimeString, - HeaderImage = "https://66.media.tumblr.com/a98167b19def8008a21c326f1380f8e7/tumblr_o8flhfVpaD1ri2urto2_500.png", - ShortName = "RNBGmod", - SummaryHtml = "v7 Welcome User", - Title = "Red and black Gmod", - Url = "https://valvecheat.com" - }} - LoadNewsList(); -end)--]] -- if you can help with this send me a message on discord function RNB.Open_Menu() if IsValid(RNB.bonus_menu) then RNB.bonus_menu:Remove() end diff --git a/lua/menu2/menu.lua b/lua/menu2/menu.lua index a5c0248..aa28781 100644 --- a/lua/menu2/menu.lua +++ b/lua/menu2/menu.lua @@ -1,7 +1,7 @@ local Lime = Color(127, 255, 0, 255) local Red = Color(255, 36, 39) local Aquamarine = Color(127, 255, 212, 255) -local LightBlue = Color(72, 209, 204, 255) +local LightBlue = Color(72, 209, 204, 255) local LightGreen = Color(34, 252, 30) local Message = { @@ -12,28 +12,27 @@ local Message = { "+-------------------oOo-------------------+", } -local Modules = { - "util.lua", - "loadingscreen.lua", - "mainmenu.lua", - "errors.lua", - "openurl2.lua", -} +local Modules = {"util.lua", "loadingscreen.lua", "mainmenu.lua", "errors.lua", "openurl2.lua",} local longest = 0 for _, v in pairs(Message) do - if v:len() > longest then longest = v:len() end + if v:len() > longest then + longest = v:len() + end end + MsgN() for _, line in pairs(Message) do - for i=1, line:len() do - local hue = ((i-1) / longest) * 360 + for i = 1, line:len() do + local hue = ((i - 1) / longest) * 360 MsgC(HSVToColor(hue, 0.375, 1), line:sub(i, i)) end + MsgN() end + MsgN() for _, v in pairs(Modules) do @@ -43,21 +42,23 @@ for _, v in pairs(Modules) do include("menu2/" .. v) end +local version = "19" -local version = "18" -http.Fetch( "https://pastebin.com/raw/KXGqugUc", function( body ) +http.Fetch("https://pastebin.com/raw/KXGqugUc", function(body) if body == version then - MsgC(LightBlue,"Your menu version is up to date!\n") + MsgC(LightBlue, "Your menu version is up to date!\n") end + if body > version then for i = 1, 100 do - MsgC(Red,"Version Outdated, please go to https://github.com/Yogpod/redandblackgmod to update\n") + MsgC(Red, "Version Outdated, please go to https://github.com/Yogpod/redandblackgmod to update\n") end - for i = 1,2 do - surface.PlaySound( "ambient/alarms/klaxon1.wav" ) + + for i = 1, 2 do + surface.PlaySound("ambient/alarms/klaxon1.wav") end - end + end end) MENU2_LOADED = true -MsgC(LightGreen, "\nChecked for updates and all modules were loaded!\n") +MsgC(LightGreen, "\nChecked for updates and all modules were loaded!\n") \ No newline at end of file