Difference between revisions of "User:Zooka"

From Mudlet
Jump to navigation Jump to search
 
(One intermediate revision 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()
  
* [https://gitspartv.github.io/lua-patterns/ Lua string-library patterns]
+
-- 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)
  
* [[Manual:Technical Manual|Technical Manual]]
+
echo("sys","Hello world!\n")
**[[Manual:Lua Functions|Manual:Lua Functions]]
+
cecho("sys", "<:OrangeRed>This is random spam with the same background\n")
*** [[Manual:Database Functions]]
+
cecho("sys", "<blue:OrangeRed>and this is with a blue foreground. ")
*** [[Manual:Date/Time Functions]]
+
cecho("sys", "<bisque:BlueViolet>Lastly, this is with both a foreground and a background.\n")
*** [[Manual:Mapper Functions]]
+
</syntaxhighlight>
*** [[Manual:Miscellaneous Functions]]
 
*** [[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 Geyser Reference Docs]
 
 
 
* [https://make.mudlet.org/snapshots/?platform=linux&source=ptb Linux Nightly Builds]
 

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")