Compare commits

..

No commits in common. "714e4f787bb8a2838782160fe4e09e502c417a86" and "979646cd78b30a9593b0ebf4b8d4fa3b8b80d813" have entirely different histories.

4 changed files with 9 additions and 39 deletions

View file

@ -131,24 +131,13 @@ local function BeatrunHUD()
surface.SetFont("DebugFixedSmall")
local tw, _ = surface.GetTextSize("v" .. VERSIONGLOBAL)
surface.SetTextColor(255, 255, 255, 20)
local vtext = VERSIONGLOBAL
local tw, _ = surface.GetTextSize(vtext)
surface.SetTextColor(255, 255, 255, 15)
surface.SetTextPos(scrw - tw, 0)
surface.DrawText("v" .. VERSIONGLOBAL)
surface.DrawText(vtext)
surface.SetFont("BeatrunHUD")
if file.Exists("beatrun/version.txt", "DATA") then
local latest_version = file.Read("beatrun/version.txt", "DATA")
if latest_version ~= VERSIONGLOBAL then
local notlatest_w, _ = surface.GetTextSize("Update available!")
surface.SetTextColor(255, 255, 255, 30)
surface.SetTextPos(scrw - notlatest_w, 10)
surface.DrawText("Update available!")
surface.SetFont("BeatrunHUD")
end
end
local pl = ply:GetNW2Int("PLoss")
local CT = CurTime()

View file

@ -2,22 +2,4 @@ include("shared.lua")
for _, v in ipairs(file.Find("gamemodes/beatrun/gamemode/cl/*.lua", "GAME")) do
include("cl/" .. v)
end
http.Fetch("https://raw.githubusercontent.com/JonnyBro/beatrun/main/version.txt", function(body, size, headers, code)
if code == 200 then
if not file.Exists("beatrun/version.txt", "DATA") then
file.Write("beatrun/version.txt", body)
end
if body ~= VERSIONGLOBAL then
file.Write("beatrun/version.txt", body)
else
print("Latest version already")
end
else
print("Error while checking version:\n" .. body)
end
end, function(e)
print("Error while checking version:\n" .. e)
end)
end

View file

@ -1,11 +1,11 @@
VERSIONGLOBAL = "1.0.8"
VERSIONGLOBAL = "v1.0.7"
DeriveGamemode("sandbox")
GM.Name = "Beatrun"
GM.Author = "N/A"
GM.Email = "N/A"
GM.Website = "github.com/JonnyBro/beatrun"
GM.Author = "who cares"
GM.Email = "whocares@noone.com"
GM.Website = "www.mirrorsedge.com xd"
include("player_class/player_beatrun.lua")

View file

@ -1 +0,0 @@
1.0.8