Skip to content

Instantly share code, notes, and snippets.

@V1NDs1
Created July 19, 2023 10:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Config for pause menu
config = {}
config.debug = false -- If debugging messages should be sent (FOR DEVELOPERS IF ERRORS OCCUR)
config.identifier = "license" -- Which identifier to use to store information // "steam", "discord", "license" (ONLY TOUCH IF YOU KNOW WHAT YOU'RE DOING)
config.toggleCooldown = 100 -- Min milliseconds between each toggle (ONLY TOUCH IF YOU KNOW WHAT YOU'RE DOING)
config.playtimeBackupCountdown = 60 -- Seconds between each save of playtime table (ONLY TOUCH IF YOU KNOW WHAT YOU'RE DOING)
config.locale = "en" -- "en" = English & "da" = Danish // Language of the script
config.timeSystem = "12" -- 12 or 24 hour clock
config.discordLink = "https://discord.com/" -- Discord link (Join discord button redirects to)
-- Colors
config.colors = {
mainColor = "#27293D", -- Main color
secondaryColor = "#454864", -- Secondary color
tertiaryColor = "#5C5E79", -- Tertiary color
firstPlaceColor = "#FFD700", -- Playtime leaderboard first place color
secondsPlaceColor = "#C0C0C0", -- Playtime leaderboard second place color
thirdPlaceColor = "#CD7F32" -- Playtime leaderboard third place color
}
-- Locales
config.locales = {}
-- English // "en"
config.locales["en"] = {
["OsLocale"] = "en_US", -- Time format
["MinutesSession"] = "minutes - this session", -- Text in top right corner for session time
["ExitGame"] = "You've exited the game, we hope you had a good time!", -- Exit message when leaving server by exit button
["BackToGame"] = "Back to game", -- Resume game button
["Maps"] = "Maps", -- Map button title
["MapsDescription"] = "Shows the map", -- Map button description
["Settings"] = "Settings", -- Settings button title
["SettingsDescription"] = "Opens the settings", -- Settings button description
["NewWindow"] = "Open new window", -- New window title
["NewWindowDescription"] = "Opens a new window", -- New window description
["ExitGameButton"] = "Exit game", -- Exit button title
["OpenPlaytimeWindow"] = "My playtimes", -- My playtime window button title
["OpenPlaytimeWindowDescription"] = "Opens your playtimes", -- My playtime window button description
["playtimeTitle"] = "Playtimes", -- My playtime window title
["playtimesGraphFormat"] = "minutes", -- My playtime graph format
["OpenPlaytimeLeaderboardWindow"] = "Playtime leaderboard", -- Playtime leaderboard window button title
["OpenPlaytimeLeaderboardWindowDescription"] = "Opens playtime leaderboard", -- Playtime leaderboard window button description
["playtimeLeaderboardTitle"] = "Playtime leaderboard", -- Playtime leaderboard window title
["day"] = "day", -- Day
["days"] = "days", -- Days
["hour"] = "hour", -- Hour
["hours"] = "hours", -- Hours
["minute"] = "minute", -- Minute
["minutes"] = "minutes", -- Minutes
["second"] = "second", -- Second
["seconds"] = "seconds", -- Seconds
["Discord"] = "Join discord", -- Join discord button title
["DiscordDescription"] = "Opens discord invite", -- Join discord button description
["Placement"] = "Placement", -- Playtime leaderboard placement
["Name"] = "Name", -- Playtime leaderboard name
["Playtime"] = "Playtime", -- Playtime leaderboard playtime
["OnlinePlayers"] = "%s/%s players online" -- Online players text
}
-- Danish // "da"
config.locales["da"] = {
["OsLocale"] = "da_DK", -- Time format
["MinutesSession"] = "minutter - denne session", -- Text in top right corner for session time
["ExitGame"] = "Du forlod vores server, vi håber din nød din tid her!", -- Exit message when leaving server by exit button
["BackToGame"] = "Fortsæt spil", -- Resume game button
["Maps"] = "Kortet", -- Map button title
["MapsDescription"] = "Åbner kortet", -- Map button description
["Settings"] = "Indstillinger", -- Settings button title
["SettingsDescription"] = "Åbner indstillinger", -- Settings button description
["NewWindow"] = "Åbn nyt vindue", -- New window title
["NewWindowDescription"] = "Åbner et nyt vindue", -- New window description
["ExitGameButton"] = "Forlad server", -- Exit button title
["OpenPlaytimeWindow"] = "Mine spilletider", -- My playtime window button title
["OpenPlaytimeWindowDescription"] = "Åbner dine spilletider", -- My playtime window button description
["playtimeTitle"] = "Spilletider", -- My playtime window title
["playtimesGraphFormat"] = "minutter", -- My playtime graph format
["OpenPlaytimeLeaderboardWindow"] = "Spilletids leaderboard", -- Playtime leaderboard window button title
["OpenPlaytimeLeaderboardWindowDescription"] = "Åbner spilletids leaderboarded", -- Playtime leaderboard window button description
["playtimeLeaderboardTitle"] = "Spilletids leaderboard", -- Playtime leaderboard window title
["day"] = "dag", -- Day
["days"] = "dage", -- Days
["hour"] = "time", -- Hour
["hours"] = "timer", -- Hours
["minute"] = "minut", -- Minute
["minutes"] = "minutter", -- Minutes
["second"] = "sekund", -- Second
["seconds"] = "sekunder", -- Seconds
["Discord"] = "Tilslut discord", -- Join discord button title
["DiscordDescription"] = "Åben discord invitation", -- Join discord button description
["Placement"] = "Placering", -- Playtime leaderboard placement
["Name"] = "Navn", -- Playtime leaderboard name
["Playtime"] = "Spilletid", -- Playtime leaderboard playtime
["OnlinePlayers"] = "%s/%s spillere online" -- Online players text
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment