Skip to content

Commit

Permalink
EMCO: Added the ability to create tabs on echo (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bornasm committed Aug 4, 2023
1 parent bb94c00 commit 21f2dc4
Show file tree
Hide file tree
Showing 15 changed files with 710 additions and 698 deletions.
12 changes: 6 additions & 6 deletions doc_table_template
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
-- </thead>
-- <tbody>
-- <tr>
-- <td class="tg-1"></td>
-- <td class="tg-1"></td>
-- <td class="tg-1"></td>
-- <td></td>
-- <td></td>
-- <td></td>
-- </tr>
-- <tr>
-- <td class="tg-2"></td>
-- <td class="tg-2"></td>
-- <td class="tg-2"></td>
-- <td></td>
-- <td></td>
-- <td></td>
-- </tr>
--</tbody>
--</table>
4 changes: 2 additions & 2 deletions ldoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,5 @@ pre .url { color: #272fc2; text-decoration: underline; }
font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;word-break:normal;}
.tg th{background-color:#000000;border-color:#ccc;border-style:solid;border-width:1px;color:#FFF;
font-family:Arial, sans-serif;font-size:14px;font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
.tg .tg-2{background-color:#797979;border-color:inherit;text-align:left;vertical-align:top;color:#DDD}
.tg .tg-1{background-color:#8b8b8b;border-color:#ccc;border-style:solid;border-width:1px;color:#000;text-align:left;vertical-align:top}
.tg tr:nth-child(odd) > td { background-color:#8b8b8b;border-color:#ccc;text-align:left;vertical-align:top;color:#000 }
.tg tr:nth-child(even) > td { background-color:#797979;border-color:inherit;text-align:left;vertical-align:top;color:#DDD }
54 changes: 27 additions & 27 deletions src/resources/chyron.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,49 +30,49 @@ local Chyron = {
-- </thead>
-- <tbody>
-- <tr>
-- <td class="tg-1">text</td>
-- <td class="tg-1">The text to scroll on the label</td>
-- <td class="tg-1">""</td>
-- <td>text</td>
-- <td>The text to scroll on the label</td>
-- <td>""</td>
-- </tr>
-- <tr>
-- <td class="tg-2">updateTime</td>
-- <td class="tg-2">Milliseconds between movements (one letter shift)</td>
-- <td class="tg-2">200</td>
-- <td>updateTime</td>
-- <td>Milliseconds between movements (one letter shift)</td>
-- <td>200</td>
-- </tr>
-- <tr>
-- <td class="tg-1">displayWidth</td>
-- <td class="tg-1">How many chars wide to display the text</td>
-- <td class="tg-1">28</td>
-- <td>displayWidth</td>
-- <td>How many chars wide to display the text</td>
-- <td>28</td>
-- </tr>
-- <tr>
-- <td class="tg-2">delimiter</td>
-- <td class="tg-2">This character will be inserted with a space either side to mark the stop/start of the message</td>
-- <td class="tg-2">"|"</td>
-- <td>delimiter</td>
-- <td>This character will be inserted with a space either side to mark the stop/start of the message</td>
-- <td>"|"</td>
-- </tr>
-- <tr>
-- <td class="tg-1">enabled</td>
-- <td class="tg-1">Should the chyron scroll?</td>
-- <td class="tg-1">true</td>
-- <td>enabled</td>
-- <td>Should the chyron scroll?</td>
-- <td>true</td>
-- </tr>
-- <tr>
-- <td class="tg-2">font</td>
-- <td class="tg-2">What font to use for the Chyron? Available in Geyser.Label but we define a default.</td>
-- <td class="tg-2">"Bitstream Vera Sans Mono"</td>
-- <td>font</td>
-- <td>What font to use for the Chyron? Available in Geyser.Label but we define a default.</td>
-- <td>"Bitstream Vera Sans Mono"</td>
-- </tr>
-- <tr>
-- <td class="tg-1">fontSize</td>
-- <td class="tg-1">What font size to use for the Chyron? Available in Geyser.Label but we define a default.</td>
-- <td class="tg-1">9</td>
-- <td>fontSize</td>
-- <td>What font size to use for the Chyron? Available in Geyser.Label but we define a default.</td>
-- <td>9</td>
-- </tr>
-- <tr>
-- <td class="tg-2">autoWidth</td>
-- <td class="tg-2">Should the Chyron resize to just fit the text?</td>
-- <td class="tg-2">true</td>
-- <td>autoWidth</td>
-- <td>Should the Chyron resize to just fit the text?</td>
-- <td>true</td>
-- </tr>
-- <tr>
-- <td class="tg-1">alignment</td>
-- <td class="tg-1">What alignment(left/right/center) to use for the Chyron text? Available in Geyser.Label but we define a default.</td>
-- <td class="tg-1">"center"</td>
-- <td>alignment</td>
-- <td>What alignment(left/right/center) to use for the Chyron text? Available in Geyser.Label but we define a default.</td>
-- <td>"center"</td>
-- </tr>
-- </tbody>
-- </table>
Expand Down
84 changes: 42 additions & 42 deletions src/resources/demontools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1083,29 +1083,29 @@ end
-- </thead>
-- <tbody>
-- <tr>
-- <td class="tg-1">format</td>
-- <td class="tg-1">What format to return the text as? 'h' for html, 'c' for cecho, 'a' for ansi, 'd' for decho, and 'x' for hecho</td>
-- <td class="tg-1">"d"</td>
-- <td>format</td>
-- <td>What format to return the text as? 'h' for html, 'c' for cecho, 'a' for ansi, 'd' for decho, and 'x' for hecho</td>
-- <td>"d"</td>
-- </tr>
-- <tr>
-- <td class="tg-2">win</td>
-- <td class="tg-2">what console/window to dump the buffer of?</td>
-- <td class="tg-2">"main"</td>
-- <td>win</td>
-- <td>what console/window to dump the buffer of?</td>
-- <td>"main"</td>
-- </tr>
-- <tr>
-- <td class="tg-1">start_line</td>
-- <td class="tg-1">What line to start dumping the buffer from?</td>
-- <td class="tg-1">0</td>
-- <td>start_line</td>
-- <td>What line to start dumping the buffer from?</td>
-- <td>0</td>
-- </tr>
-- <tr>
-- <td class="tg-2">end_line</td>
-- <td class="tg-2">What line to stop dumping the buffer on?</td>
-- <td class="tg-2">Last line of the console</td>
-- <td>end_line</td>
-- <td>What line to stop dumping the buffer on?</td>
-- <td>Last line of the console</td>
-- </tr>
-- <tr>
-- <td class="tg-1">includeHtmlWrapper</td>
-- <td class="tg-1">If the format is html, should it include the front and back portions required to make it a functioning html page?</td>
-- <td class="tg-1">true</td>
-- <td>includeHtmlWrapper</td>
-- <td>If the format is html, should it include the front and back portions required to make it a functioning html page?</td>
-- <td>true</td>
-- </tr>
-- </tbody>
-- </table>
Expand All @@ -1125,49 +1125,49 @@ end
-- </thead>
-- <tbody>
-- <tr>
-- <td class="tg-1">cols</td>
-- <td class="tg-1">Number of columsn wide to display the colors in</td>
-- <td class="tg-1">4</td>
-- <td>cols</td>
-- <td>Number of columsn wide to display the colors in</td>
-- <td>4</td>
-- </tr>
-- <tr>
-- <td class="tg-2">search</td>
-- <td class="tg-2">If not the empty string, will check colors against string.find using this property.<br>IE if set to "blue" only colors which include the word 'blue' would be listed</td>
-- <td class="tg-2">""</td>
-- <td>search</td>
-- <td>If not the empty string, will check colors against string.find using this property.<br>IE if set to "blue" only colors which include the word 'blue' would be listed</td>
-- <td>""</td>
-- </tr>
-- <tr>
-- <td class="tg-1">sort</td>
-- <td class="tg-1">If true, sorts alphabetically. Otherwise sorts based on the color value</td>
-- <td class="tg-1">false</td>
-- <td>sort</td>
-- <td>If true, sorts alphabetically. Otherwise sorts based on the color value</td>
-- <td>false</td>
-- </tr>
-- <tr>
-- <td class="tg-2">echoOnly</td>
-- <td class="tg-2">If true, colors will not be clickable links</td>
-- <td class="tg-2">false</td>
-- <td>echoOnly</td>
-- <td>If true, colors will not be clickable links</td>
-- <td>false</td>
-- </tr>
-- <tr>
-- <td class="tg-1">window</td>
-- <td class="tg-1">What window/console to echo the colors out to.</td>
-- <td class="tg-1">"main"</td>
-- <td>window</td>
-- <td>What window/console to echo the colors out to.</td>
-- <td>"main"</td>
-- </tr>
-- <tr>
-- <td class="tg-2">removeDupes</td>
-- <td class="tg-2">If true, will remove snake_case entries and 'gray' in favor of 'grey'</td>
-- <td class="tg-2">true</td>
-- <td>removeDupes</td>
-- <td>If true, will remove snake_case entries and 'gray' in favor of 'grey'</td>
-- <td>true</td>
-- </tr>
-- <tr>
-- <td class="tg-1">columnSort</td>
-- <td class="tg-1">If true, will print top-to-bottom, then left-to-right. false is like showColors</td>
-- <td class="tg-1">true</td>
-- <td>columnSort</td>
-- <td>If true, will print top-to-bottom, then left-to-right. false is like showColors</td>
-- <td>true</td>
-- </tr>
-- <tr>
-- <td class="tg-2">justText</td>
-- <td class="tg-2">If true, will echo the text in the color and leave the background black.<br>If false, the background will be the colour(like showColors).</td>
-- <td class="tg-2">false</td>
-- <td>justText</td>
-- <td>If true, will echo the text in the color and leave the background black.<br>If false, the background will be the colour(like showColors).</td>
-- <td>false</td>
-- </tr>
-- <tr>
-- <td class="tg-1">color_table</td>
-- <td class="tg-1">Table of colors to display. If you provide your own table, it must be in the same format as Mudlet's own color_table</td>
-- <td class="tg-1">color_table</td>
-- <td>color_table</td>
-- <td>Table of colors to display. If you provide your own table, it must be in the same format as Mudlet's own color_table</td>
-- <td>color_table</td>
-- </tr>
-- </tbody>
-- </table>
Expand Down
Loading

0 comments on commit 21f2dc4

Please sign in to comment.