Skip to content

Commit

Permalink
Update base emco, added proper option for command line, added note to…
Browse files Browse the repository at this point in the history
… power users
  • Loading branch information
TheLastDarkthorne committed Mar 14, 2023
1 parent 3649eac commit eeb9230
Show file tree
Hide file tree
Showing 7 changed files with 269 additions and 188 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Will start on the right side, attached to the right border. Resize, move, adjust
* set whether it should blink
* `act timestamp <true|false>`
* set whether it should add a timestamp at the front
* `act commandLine <true|false>`
* set whether it should show command lines
* `act blankLine`
* set whether it should automatically add a newline to things echoed.
* `act gaglist`
Expand Down Expand Up @@ -59,3 +61,6 @@ Will start on the right side, attached to the right border. Resize, move, adjust
* updates the package to the latest version
* `act reset|act reset color`
* resets the chat window to defaults/resets chat colors only (remember to 'act save' after to save the defaults into the config file)

## Power Users
EMCO is a highly customizable chat script with a plethora of options to make it better/smarter/good looking that are by no means not limited by only these aliases! If you want to further customize your chat box and its behavior refer to the [EMCO API](https://demonnic.github.io/mdk/current/classes/EMCO.html).
2 changes: 1 addition & 1 deletion mfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"package": "AchaeaChatTabs",
"version": "1.3.0",
"version": "1.3.1",
"author": "Erikka, Demonnic",
"title": "Chat tabs for Achaea",
"outputFile": true
Expand Down
6 changes: 3 additions & 3 deletions src/aliases/AchaeaChatTabs/act.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else
else
chatEMCO:setFont(value)
end
elseif table.contains({"blink", "blankLine", "timestamp"}, option) then
elseif table.contains({"blink", "blankLine", "timestamp", "commandLine"}, option) then
value = EMCO:fuzzyBoolean(value)
if value then
if option == "timestamp" then
Expand All @@ -42,7 +42,7 @@ else
elseif option == "blink" then
chatEMCO:enableBlink()
elseif option == "commandLine" then
chatEMCO:enableCommandLine()
chatEMCO:enableAllCmdLines()
end
else
if option == "timestamp" then
Expand All @@ -52,7 +52,7 @@ else
elseif option == "blink" then
chatEMCO:disableBlink()
elseif option == "commandLine" then
chatEMCO:disableCommandLine()
chatEMCO:disableAllCmdLines()
end
end
else
Expand Down
1 change: 1 addition & 0 deletions src/aliases/AchaeaChatTabs/act_usage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ local aliases = {
["act blink <true|false>"] = "turn blinking on/off",
["act blankLine <true|false>"] = "turn inserting a blank line between messages on/off",
["act timestamp <true|false>"] = "turn timestamps on/off",
["act commandLine <true|false>"] = "turn command lines on/off",
["act show"] = "show AchaeaChatTabs",
["act hide"] = "hide AchaeaChatTabs",
["act gaglist"] = "prints out the list of gag patterns",
Expand Down
2 changes: 1 addition & 1 deletion src/aliases/AchaeaChatTabs/aliases.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"name": "act",
"regex": "^act (save|load|font|fontSize|blink|blankLine|timestamp|show|hide)(?: (.+))?$"
"regex": "^act (save|load|font|fontSize|blink|blankLine|timestamp|show|hide|commandLine)(?: (.+))?$"
},
{
"name": "act gag",
Expand Down
Loading

0 comments on commit eeb9230

Please sign in to comment.