mirror of
https://github.com/Cherry/3D2D-Textscreens.git
synced 2025-03-04 03:13:15 -05:00
chore: bump actions versions
This commit is contained in:
parent
d907b01631
commit
3bfaee70bc
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -6,7 +6,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Download GLuaLint
|
- name: Download GLuaLint
|
||||||
run: curl -o glualint.zip -L https://github.com/FPtje/GLuaFixer/releases/download/$GLUALINT_VERSION/glualint-$GLUALINT_VERSION-x86_64-linux.zip
|
run: curl -o glualint.zip -L https://github.com/FPtje/GLuaFixer/releases/download/$GLUALINT_VERSION/glualint-$GLUALINT_VERSION-x86_64-linux.zip
|
||||||
env:
|
env:
|
||||||
|
@ -1,154 +1,154 @@
|
|||||||
textscreenFonts = {}
|
textscreenFonts = {}
|
||||||
|
|
||||||
local function addFont(font, t)
|
local function addFont(font, t)
|
||||||
if CLIENT then
|
if CLIENT then
|
||||||
t.size = 100
|
t.size = 100
|
||||||
surface.CreateFont(font, t)
|
surface.CreateFont(font, t)
|
||||||
t.size = 50
|
t.size = 50
|
||||||
surface.CreateFont(font .. "_MENU", t)
|
surface.CreateFont(font .. "_MENU", t)
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(textscreenFonts, font)
|
table.insert(textscreenFonts, font)
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
Custom fonts - requires server restart to take affect -- "Screens_" will be removed from the font name in spawnmenu
|
Custom fonts - requires server restart to take affect -- "Screens_" will be removed from the font name in spawnmenu
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
-- Default textscreens font
|
-- Default textscreens font
|
||||||
addFont("Coolvetica outlined", {
|
addFont("Coolvetica outlined", {
|
||||||
font = "coolvetica",
|
font = "coolvetica",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = true
|
outline = true
|
||||||
})
|
})
|
||||||
|
|
||||||
addFont("Coolvetica", {
|
addFont("Coolvetica", {
|
||||||
font = "coolvetica",
|
font = "coolvetica",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = false
|
outline = false
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Trebuchet
|
-- Trebuchet
|
||||||
addFont("Screens_Trebuchet outlined", {
|
addFont("Screens_Trebuchet outlined", {
|
||||||
font = "Trebuchet MS",
|
font = "Trebuchet MS",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = true
|
outline = true
|
||||||
})
|
})
|
||||||
|
|
||||||
addFont("Screens_Trebuchet", {
|
addFont("Screens_Trebuchet", {
|
||||||
font = "Trebuchet MS",
|
font = "Trebuchet MS",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = false
|
outline = false
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Arial
|
-- Arial
|
||||||
addFont("Screens_Arial outlined", {
|
addFont("Screens_Arial outlined", {
|
||||||
font = "Arial",
|
font = "Arial",
|
||||||
weight = 600,
|
weight = 600,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = true
|
outline = true
|
||||||
})
|
})
|
||||||
|
|
||||||
addFont("Screens_Arial", {
|
addFont("Screens_Arial", {
|
||||||
font = "Arial",
|
font = "Arial",
|
||||||
weight = 600,
|
weight = 600,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = false
|
outline = false
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Roboto Bk
|
-- Roboto Bk
|
||||||
addFont("Screens_Roboto outlined", {
|
addFont("Screens_Roboto outlined", {
|
||||||
font = "Roboto Bk",
|
font = "Roboto Bk",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = true
|
outline = true
|
||||||
})
|
})
|
||||||
|
|
||||||
addFont("Screens_Roboto", {
|
addFont("Screens_Roboto", {
|
||||||
font = "Roboto Bk",
|
font = "Roboto Bk",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = false
|
outline = false
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Helvetica
|
-- Helvetica
|
||||||
addFont("Screens_Helvetica outlined", {
|
addFont("Screens_Helvetica outlined", {
|
||||||
font = "Helvetica",
|
font = "Helvetica",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = true
|
outline = true
|
||||||
})
|
})
|
||||||
|
|
||||||
addFont("Screens_Helvetica", {
|
addFont("Screens_Helvetica", {
|
||||||
font = "Helvetica",
|
font = "Helvetica",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = false
|
outline = false
|
||||||
})
|
})
|
||||||
|
|
||||||
-- akbar
|
-- akbar
|
||||||
addFont("Screens_Akbar outlined", {
|
addFont("Screens_Akbar outlined", {
|
||||||
font = "akbar",
|
font = "akbar",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = true
|
outline = true
|
||||||
})
|
})
|
||||||
|
|
||||||
addFont("Screens_Akbar", {
|
addFont("Screens_Akbar", {
|
||||||
font = "akbar",
|
font = "akbar",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = false
|
outline = false
|
||||||
})
|
})
|
||||||
|
|
||||||
-- csd
|
-- csd
|
||||||
addFont("Screens_csd outlined", {
|
addFont("Screens_csd outlined", {
|
||||||
font = "csd",
|
font = "csd",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = true
|
outline = true
|
||||||
})
|
})
|
||||||
|
|
||||||
addFont("Screens_csd", {
|
addFont("Screens_csd", {
|
||||||
font = "csd",
|
font = "csd",
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = false
|
outline = false
|
||||||
})
|
})
|
||||||
|
|
||||||
if CLIENT then
|
if CLIENT then
|
||||||
|
|
||||||
local function addFonts(path)
|
local function addFonts(path)
|
||||||
local files, folders = file.Find("resource/fonts/" .. path .. "*", "MOD")
|
local files, folders = file.Find("resource/fonts/" .. path .. "*", "MOD")
|
||||||
|
|
||||||
for k, v in ipairs(files) do
|
for k, v in ipairs(files) do
|
||||||
if string.GetExtensionFromFilename(v) == "ttf" then
|
if string.GetExtensionFromFilename(v) == "ttf" then
|
||||||
local font = string.StripExtension(v)
|
local font = string.StripExtension(v)
|
||||||
if table.HasValue(textscreenFonts, "Screens_" .. font) then continue end
|
if table.HasValue(textscreenFonts, "Screens_" .. font) then continue end
|
||||||
print("-- " .. font .. "\n" .. [[
|
print("-- " .. font .. "\n" .. [[
|
||||||
addFont("Screens_ ]] .. font .. [[", {
|
addFont("Screens_ ]] .. font .. [[", {
|
||||||
font = font,
|
font = font,
|
||||||
weight = 400,
|
weight = 400,
|
||||||
antialias = false,
|
antialias = false,
|
||||||
outline = true
|
outline = true
|
||||||
})
|
})
|
||||||
]])
|
]])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for k, v in ipairs(folders) do
|
for k, v in ipairs(folders) do
|
||||||
addFonts(path .. v .. "/")
|
addFonts(path .. v .. "/")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
concommand.Add("get_fonts", function(ply)
|
concommand.Add("get_fonts", function(ply)
|
||||||
addFonts("")
|
addFonts("")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user