![]() You can place labels anywhere within then main display, also als overlays over the main displays e.g. If fillBackground = 0, the background will be hidden, if fillBackground = 1 the background will be shown i.e. setLabelClickCallback( labelName, myLabelOnClickFunction ) your function will get called if the user clicks on the label with the mouse. ![]() labels are clickable and if you specify a callback function with Labels are intended for very small variable or prompt displays or images. ![]() ![]() TODO createButton - TLuaInterpreter::createButton cannot be shown on the screen intended for temporary buffer work Creates a named buffer for formatted text, much like a user terminal window, but the buffer replace("This line has been moved to the chat window!") line on the main screen to a user window (mini console) named chat and gags the output on until it gets overwritten by another copy operation. the selected text including all its format codes like colors, fonts etc. This function operates on rich text, i.e. Copies the current selection to the clipboard. This is typically used in alias scripts. The command variable holds initial user command e.g. TODO clearWindow - TLuaInterpreter::clearUserWindowįunction closeUserWindow( windowName) end Clears the user window or a mini console with the name given as argument.įunction clearUserWindow( windowName) end Function for detecting AFK status on Aardwolf mud. The channel102 table is used by Aardwolf mud for returning various information about you state. setMiniConsoleFontSize("map", font_size) Create a miniConsole that is 45 letters in length and 25 letters in height for font size 7 as the miniConsoles currently only work with the default font for the sake of portability. usage is for calculating the needed dimensions of a miniConsole, it doesn't accept a font argument. This returns you the height and the length of letters for the given font size. Pastes the previously copied rich text (including text formats like color) into user window name. ensure that those function will not get defined Hopefully that was all clear, glad to provide more info or answer questions if needed.- (file holds LuaDoc for all function implemented with in Mudlet Core) Someone else on Discord pointed it out, but the issue only seems to be a problem for tempTimers created with an initial time of 20 seconds or greater. To make things even more curious, this issue does not occur for all values provided to the tempTimer. This 0.4 second difference (+/- a few milliseconds, which I'm not worried about as that's kind of to be expected) is perhaps not large, but I have found the error from rounding to be an issue in some work I'm doing. Instead, it fires at 18 hours 34 minutes 14.602 seconds. If it truly was made with the time I told it to use (30.6 seconds in the example shown), I would expect it to fire at 18 hours 34 minutes 14.215 seconds (+/- a handful of milliseconds). Again, the remaining time is GREATER than what I tried creating timer_1 with.įor the example shown, timer_1 was created at 18 hours 33 minutes 43.615 seconds. However, after being created, timer_1 shows the time remaining as GREATER than the time I provided at initialization.Ġ.3 seconds later, as expected, timer_2 fires and its code executes, showing the remaining time left on timer_1. The output from a sample run of this function looks like the following:Īs expected, the timer creations and initial message echoes all occur simultaneously. Remaining time on timer_1 = ".remainingTime(timer_1)."s\n") end) Local timer_2 = tempTimer(0.3, function() cecho("timer_2 firing. Local timer_1 = tempTimer(time, function() cecho("Done!\n") end)Ĭecho("After timer_1 is made with remaining time = ".remainingTime(timer_1)."s\n") Cecho("Before timer_1 = ".time."s is made\n")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |