Difference between revisions of "User:Zooka"

From Mudlet
Jump to navigation Jump to search
m (add nightly link)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Quick Links;
+
<syntaxhighlight lang="lua">
 +
-- first, determine the size of your screen
 +
local windowWidth, windowHeight = getMainWindowSize()
  
* [[Manual:Technical Manual|<big>Technical Manual</big>]]
+
-- create the miniconsole
**[[Manual:Lua Functions|<big>Manual:Lua Functions</big>]]
+
createMiniConsole("sys", windowWidth-650,0,650,300)
*** [[Manual:Database Functions]]
+
setBackgroundColor("sys",255,69,0,255)
*** [[Manual:Date/Time Functions]]
+
setMiniConsoleFontSize("sys", 8)
*** [[Manual:Mapper Functions]]
+
-- wrap lines in window "sys" at 40 characters per line - somewhere halfway, as an example
*** [[Manual:Miscellaneous Functions]]
+
setWindowWrap("sys", 40)
*** [[Manual:Mudlet Object Functions]]
 
*** [[Manual:Networking Functions]]
 
*** [[Manual:String Functions]]
 
*** [[Manual:Table Functions]]
 
*** [[Manual:Text to Speech Functions]]
 
*** [[Manual:UI Functions]]
 
*** [[Manual:Discord Functions]]
 
* [https://www.mudlet.org/geyser/files/geyser/Geyser.html <big>Geyser Reference Docs</big>]
 
  
* [https://make.mudlet.org/snapshots/?platform=linux&source=ptb <big>Linux Nightly Builds</big>]
+
echo("sys","Hello world!\n")
 +
cecho("sys", "<:OrangeRed>This is random spam with the same background\n")
 +
cecho("sys", "<blue:OrangeRed>and this is with a blue foreground. ")
 +
cecho("sys", "<bisque:BlueViolet>Lastly, this is with both a foreground and a background.\n")
 +
</syntaxhighlight>

Latest revision as of 03:26, 16 February 2026

-- first, determine the size of your screen
local windowWidth, windowHeight = getMainWindowSize()

-- create the miniconsole
createMiniConsole("sys", windowWidth-650,0,650,300)
setBackgroundColor("sys",255,69,0,255)
setMiniConsoleFontSize("sys", 8)
-- wrap lines in window "sys" at 40 characters per line - somewhere halfway, as an example
setWindowWrap("sys", 40)

echo("sys","Hello world!\n")
cecho("sys", "<:OrangeRed>This is random spam with the same background\n")
cecho("sys", "<blue:OrangeRed>and this is with a blue foreground. ")
cecho("sys", "<bisque:BlueViolet>Lastly, this is with both a foreground and a background.\n")