Re: lightbar examples?
By: Nelgin to All on Mon May 08 2023 05:05 am
I want to write a script using the lightbar library but it's all a little confusing having never used it before and I came up short looking for documentation.
Does anyone have a small script they've already created or if someone is familiar with it, just get me going with a simple menu with one or two options available for a bar with one or two main options? I would most appreciate it.
Many of my mods use dd_lightbar_menu.js (which I wrote), which provides a lightbar menu class you can use in JS scripts.
I made a wiki page to document dd_lightbar_menu.js (at least, what it does and the functions it has, etc.):
http://wiki.synchro.net/custom:javascript:lib:ddlightbarmenu.js
DDMsgReader.js uses it, but for a smaller example, you could look at my area choosers, or perhaps DDFileLister or SlyVote.
DDFileLister:
https://gitlab.synchro.net/main/sbbs/-/tree/master/xtrn/ddfilelister
SlyVote:
https://gitlab.synchro.net/main/sbbs/-/tree/master/xtrn/slyvote
Nightfox
---
■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com