Skip to content

Commit

Permalink
fix(emco): 💄 style tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
iLPdev committed May 24, 2023
1 parent 99c711d commit 4e7702a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions prs-chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PRSchat.triggers = PRSchat.triggers or {}

local EMCO = require("PRS.emco")

function PRSchat.tabs()
function PRSchat.tabs()
local title_text
if gmcp and gmcp.Char and gmcp.Char.player then
title_text = "Procedural Realms - "..gmcp.Char.player.name
Expand All @@ -12,7 +12,7 @@ function PRSchat.tabs()
registerAnonymousEventHandler("gmcp.Char.player.name", function() PRSchat.UW:setTitle("Procedural Realms - "..gmcp.Char.player.name) end, true)
end

PRSchat.UW = Geyser.UserWindow:new({name = "Chat", titleText = title_text, y="50%", docked = true, width="25%", height="75%"})
PRSchat.UW = Geyser.UserWindow:new({name = "Chat", titleText = title_text, y = "50%", docked = true, width = "25%", height = "75%",})
local stylesheet = [[background-color: rgb(80,80,80,255); border-width: 1px; border-style: solid; border-color: black; border-radius: 0px;]]
local istylesheet = [[background-color: rgb(60,60,60,255); border-width: 1px; border-style: solid; border-color: black; border-radius: 0px;]]
PRSchat.EMCO = EMCO:new({
Expand All @@ -36,6 +36,9 @@ function PRSchat.tabs()
},
mapTabName = "Map",
mapTab = true,
tabBold = true,
activeTabFGColor = "white",
inactiveTabFGColor = "gray",
activeTabCSS = stylesheet,
inactiveTabCSS = istylesheet,
preserveBackground = true,
Expand Down Expand Up @@ -186,5 +189,5 @@ function PRSchat.initialize()
end)
end
end

PRSchat.initialize()

0 comments on commit 4e7702a

Please sign in to comment.