• lightbar examples?

    From Nelgin@EOTLBBS to All on Monday, May 08, 2023 05:05:56
    Hi all,

    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.

    Thanks,
    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From Nightfox@DIGDIST to Nelgin on Monday, May 08, 2023 08:20:18
    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
  • From Nelgin@EOTLBBS to Nightfox on Monday, May 08, 2023 10:44:14
    Re: lightbar examples?
    By: Nightfox to Nelgin on Mon May 08 2023 08:20:18

    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 did think about using that but I wanted something "comes with" Synchronet.

    That said, I'll keep that as my backup option in case I can't work it out.

    Thanks,
    Nigel
    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From Nightfox@DIGDIST to Nelgin on Monday, May 08, 2023 10:27:14
    Re: lightbar examples?
    By: Nelgin to Nightfox on Mon May 08 2023 10:44 am

    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 did think about using that but I wanted something "comes with" Synchronet.

    dd_lightbar_menu.js is in the Synchronet code repository (in exec/load), so it comes with Synchronet as much as any of the other JS scripts in there - so I'm not quite sure what you mean?

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From MRO@BBSESINF to Nelgin on Monday, May 08, 2023 13:11:17
    Re: lightbar examples?
    By: Nelgin to Nightfox on Mon May 08 2023 10:44 am

    Re: lightbar examples?
    By: Nightfox to Nelgin on Mon May 08 2023 08:20:18

    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 did think about using that but I wanted something "comes with" Synchronet.

    what does that even mean? it's using code that works with synchronet.
    you could atleast learn from it.

    also that lightbar script is in the file repo.
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From Nelgin@EOTLBBS to Nightfox on Sunday, May 14, 2023 14:24:02
    Re: lightbar examples?
    By: Nightfox to Nelgin on Mon May 08 2023 10:27:14

    dd_lightbar_menu.js is in the Synchronet code repository (in exec/load), so it comes with Synchronet as much as any of the other JS scripts in there - so I'm not quite sure what you mean?

    Good point.
    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com