Skip to content

Instantly share code, notes, and snippets.

@GhoulofGSG9
GhoulofGSG9 / shineplugin.lua
Last active Aug 27, 2016
long block comment (?) crashes shine
View shineplugin.lua
-- A Shine plugin to enable and disable server mods in-game.
--
-- The config will have a list of mod hexes, each with a string and a boolean attribute.
-- The config will pull mods from MapCycle.json or mods can be manually added to the config.
-- The config list is just so shine's gui has something to pull from.
-- Manually editing true/false will be overwritten at plugin load when it reads from MapCycle.json.
-- TODO: hookup shine's gui admin menu
-- TODO: remove boolean from config as it's useless for the end user
local Shine = Shine
View GUIMainMenuNews.lua
-- ======= Copyright (c) 2003-2013, Unknown Worlds Entertainment, Inc. All rights reserved. =====
--
-- lua\menu\GUIMainMenuNews.lua
--
-- Created by: Brian Cronin (brianc@unknownworlds.com)
--
-- ========= For more information, visit us at http://www.unknownworlds.com =====================
local widthFraction = 0.4
local newsAspect = 1.2/1