Skip to content

Commit

Permalink
up verson
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogpod committed Feb 7, 2021
1 parent 13e1734 commit 2b6bb50
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 37 deletions.
18 changes: 0 additions & 18 deletions lua/menu2/mainmenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
39 changes: 20 additions & 19 deletions lua/menu2/menu.lua
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -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
Expand All @@ -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")

0 comments on commit 2b6bb50

Please sign in to comment.