Add osay to local chat tab

This commit is contained in:
Matt Wagner 2021-06-20 15:06:27 -07:00
parent 869b627543
commit 3501809446
2 changed files with 24 additions and 4 deletions

View File

@ -75,6 +75,16 @@ function lotj.layout.resizeTabContents(parentContainer, tabContainer, contentsCo
contentsContainer:resize(nil, newHeight)
end
function setSizeOnResize()
local newBorder = math.floor(lotj.layout.rightPanel:get_width())
if getBorderRight() ~= newBorder then
setBorderRight(newBorder)
-- We could do this following line if we want the main window to set its text wrapping automatically.
-- As-is, players will need to edit their mudlet settings to control this.
-- setWindowWrap("main", getColumnCount("main")-3)
end
end
function lotj.layout.setup()
if lotj.layout.drawn then return end
@ -84,11 +94,9 @@ function lotj.layout.setup()
y = 0, height = "100%",
})
lotj.setup.registerEventHandler("sysWindowResizeEvent", function()
local newBorder = math.floor(lotj.layout.rightPanel:get_width())
if getBorderRight() ~= newBorder then
setBorderRight(newBorder)
end
setSizeOnResize()
end)
setSizeOnResize()
-- Upper-right pane, for maps

View File

@ -18,6 +18,14 @@
"pattern": "^'.*' you .*(say|ask|exclaim)(, in .+)?.$",
"type": "regex"
},
{
"pattern": "^\\(OOC\\) You say '.*'$",
"type": "regex"
},
{
"pattern": "^\\(OOC\\) .* says '.*'$",
"type": "regex"
},
{
"pattern": "^.+ speaks in your mind '.*'$",
"type": "regex"
@ -98,6 +106,10 @@
"pattern": "^CouncilNet\\[.*\\]: .*$",
"type": "regex"
},
{
"pattern": "^\\(R\\|P\\|C\\) .*: .*$",
"type": "regex"
},
{
"pattern": "^\\(R\\|P\\|C\\) .* '.*'$",
"type": "regex"