Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local defaultConfig = {activeColor = "black", inactiveColor = "black", activeBorder = "green", activeText = "green", inactiveText = "grey", background = "black", windowBorder = "green", title = "green"}
- local emco = require("EMCOChat.emco")
- emco.cmdLineStyleSheet = nil
- auror = auror or {}
- auror.helpers = auror.helpers or {}
- auror.config = auror.config or defaultConfig
- local baseStyle = Geyser.StyleSheet:new(f [[
- border-width: 2px;
- border-style: solid;
- ]])
- local activeStyle = Geyser.StyleSheet:new(f [[
- border-color: {auror.config.activeBorder};
- background-color: {auror.config.activeColor};
- ]], baseStyle)
- local inactiveStyle = Geyser.StyleSheet:new(f [[
- border-color: {auror.config.inactiveColor};
- background-color: {auror.config.inactiveColor};
- ]], baseStyle)
- local adjLabelStyle = Geyser.StyleSheet:new(f[[
- background-color: rgba(0,0,0,100%);
- border: 4px double;
- border-color: {auror.config.windowBorder};
- border-radius: 4px;]])
- local default_constraints = {name = "aurorInfoContainer", x = "-25%", y = "-60%", width = "25%", height = "60%", titleText = "AUROR"}
- function auror.gui.resetToDefaults()
- default_constraints.adjLabelstyle = adjLabelStyle:getCSS()
- auror.container = auror.container or Adjustable.Container:new(default_constraints)
- auror.config = defaultConfig
- auror.info = emco:new({
- name = "Auror",
- x = "50%",
- y = 0,
- height = "100%",
- width = "50%",
- consoles = {"Items","Players","Asdf","Why","five","six","seven"},
- allTab = true,
- allTabName = "All",
- blankLine = true,
- blink = true,
- bufferSize = 500,
- deleteLines = 500,
- fontSize = 12,
- font = "Ubuntu Mono",
- consoleColor = auror.config.background,
- activeTabCSS = activeStyle:getCSS(),
- inactiveTabCSS = inactiveStyle:getCSS(),
- activeTabFGColor = auror.config.activeText,
- inactiveTabFGColor = auror.config.inactiveText,
- gap = 3,
- commandLine = true,
- }, auror.container)
- aurorEMCO = auror.info
- auror.gui.retheme()
- end
- function auror.gui.retheme()
- activeStyle:set("background-color", auror.config.activeColor)
- activeStyle:set("border-color", auror.config.activeBorder)
- inactiveStyle:set("background-color", auror.config.inactiveColor)
- inactiveStyle:set("border-color", auror.config.inactiveColor)
- adjLabelStyle:set("border-color", auror.config.windowBorder)
- local als = adjLabelStyle:getCSS()
- auror.container.adjLabelstyle = als
- auror.container.adjLabel:setStyleSheet(als)
- auror.container:setTitle(auror.container.titleText, auror.config.title)
- aurorEMCO.activeTabCSS = activeStyle:getCSS()
- aurorEMCO.inactiveTabCSS = inactiveStyle:getCSS()
- aurorEMCO:setActiveTabFGColor(auror.config.activeText)
- aurorEMCO:setInactiveTabFGColor(auror.config.inactiveText)
- aurorEMCO:setConsoleColor(auror.config.background)
- aurorEMCO:switchTab(aurorEMCO.currentTab)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement