• Re: Custom menus

    From Analog@21:2/123 to Embalmed on Fri Feb 21 17:54:25 2020
    How do you get mystic to auto execute something once you land in a menu?

    look at the AFTER menu item

    |20|15┌─|16|08┤ |08De|07ad|15be|07a|08tz b|07b|15s
    |08└─┘├─┐ |08:>.|07A|08rk |0710|08:|07101|08/|0714|08.
    |04■ |08└|20|15─|16|08┘ |08:>.|10A|02gn |1046|08:|101|08/|10123|08.
    |04A|07n|15al|07o|08g |08:>.|12F|04sx |1221|08:|122|08/|12123|08. |04.p|08HENOM|04. |08:>.|15S|07ci |1577|08:|151|08/|15131|08. |04░▒░|08▒██▄▌|08:>.|11T|03qw |111337|08:|113|08/|1113|08.

    --- Mystic BBS v1.12 A45 2020/02/09 (Linux/64)
    * Origin: deadbeatz.org (21:2/123)
  • From g00r00@21:1/108 to Embalmed on Sat Feb 22 07:43:24 2020
    specific areas?

    Yes this is how you might use the lightbar menus. You make the background ANSI and then make your commands and put in the X/Y locations, and the non-selected and selected text.

    It works similarly to the pregenerared non-lightbar menu except it will plot each command in a specific location, allow users to move around using arrow keys or mouse clicks to select options (although I think mouse clicks might be broken at the moment in lightbar menus).

    Lightbar/Grid menus are a whole other complicated beast. In those you plot the locations but then you also have to tell it what exactly to do when a user does something on each specific menu option.

    Its kind of crazy because you can do logic like "If user presses left on option 1, do <these 10 things> but if user presses right on option 1 do <that>" so you can make some crazy scrolling interactive ANSI menus and all types of other crazy ideas but at the expense of it being harder to maintain the menus when you want to make changes.

    So in summary it might be something like:

    Standard menu - Set your options and let it generate a menu for you. Or replace it with your own custom ANSI. Traditional (similar to Renegade, Telegard, Remote Access, etc) and easy to maintain.

    Lightbar menu - Display a background ANSI and then plot where you want your options to be located, and Mystic will do the rest (user selection, hotkey jumping and mouse clicks). Requires some planning and moving X/Y locations when you want to make changes.

    Lightbar/Grid menu - Do all of the stuff Lightbar menus do but it gives you insane control over being able to decide what to do at a per-key and per-menu option level, allowing insane control but requires you to micromanage every detail. Most people probably do not even grasp how powerful this type is.

    Lightbar/Prompt - Gives you a compact style prompt where users can scroll through menu options using arrow keys or by typing, similar to that found in Searchlight BBS software.

    And then of course all of them allow things like auto execution, auto
    execution only after redraws, or after a menu command executes, or based on a timer (once, or a time-based interval, etc).

    Mystic's menu system is ridiculous lol

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/64)
    * Origin: Sector 7 (21:1/108)
  • From g00r00@21:1/108 to Embalmed on Sat Feb 22 07:49:57 2020
    background and a grid/lightbar setup. I need to draw the box/border on the ansi background i think, was hoping there was a kind of permanent
    box you could draw on top of a menu.

    Grid menus are the hardest to maintain but they give you the most flexibility because you can run events on user input based on what is highlight (like for example, if you want to do something specific whenever a user presses left arrow when " Item 1" is highlighted, you can).

    If you just want an ANSI background and you want to plot menu items around
    the screen, using the standard lightbar style menu is much easier to do.

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/64)
    * Origin: Sector 7 (21:1/108)
  • From Embalmed@21:4/166 to g00r00 on Fri Feb 21 18:33:56 2020
    Grid menus are the hardest to maintain but they give you the most flexibility because you can run events on user input based on what is highlight (like for example, if you want to do something specific
    whenever a user presses left arrow when " Item 1" is highlighted, you can).

    If you just want an ANSI background and you want to plot menu items
    around the screen, using the standard lightbar style menu is much easier to do.
    The problem I had with just doing standard lightbar is I can't seem to make
    the headings not part of the lightbar scrolling around. So i have say 4-5 lightbars set to the x,y coordinates and the grid up/downs are pointing to themselves and cycle over if you go up on the top one etc. That allowed me
    to create 2 other entries i used as headers that had no hotkeys. once i flip to just lightbar then those headers are 'stepped' through. The lightbar is neat, but I don't even really need it, i just want the menu items to be plottable on an ansi menu. They don't have to be up/down/left/right selectable. But if that's the only way/best way to do it then so be it :)

    When i used the vertical select lightbar (which is cool) it seemed to render that as a kind of submenu, and take over input. it wouldn't let me enter any keys other than choosing a lightbar selection, and then after it displayed
    the menu prompt and launched the appropriate app. So you could only really
    ever have 1 box active on any given page. I haven't experimented too much
    with the other types of boxes. I do like this kind of thing as you only have to really assign the first coordinate and then let the menu grow dynamically. Neat feature, I can think of a few ways to use it

    Also, thanks for that other mail with the extended menu descriptions that was very helpful.

    |07E|10m|07b|10a|07l|10m|07e|10d |12-----------------------------------------------------
    |09Black Lodge Research BBS |11blacklodgeresearch.org:4022
    |11fsx|08Net: |0721:4/166 |11sci|08Net: |0777:1/133

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Black Lodge Research BBS (21:4/166)
  • From ryan@21:1/168 to g00r00 on Fri Feb 21 19:59:40 2020
    Lightbar/Grid menu - Do all of the stuff Lightbar menus do but it gives you insane control over being able to decide what to do at a per-key and per-menu option level, allowing insane control but requires you to micromanage every detail. Most people probably do not even grasp how powerful this type is.

    Hey g00r00, have you seen the "lottabull" mod? It's available for download on the phenomprod site.

    It takes an array of options in a .ini file, dynamically generates a litebar screen where you can scroll through multiple pages with pgup/pgdown, left/right, but also just standard up/down to go one option at a time.

    Does Lightbar/Grid do the same thing?

    I repurposed much of the lottabull mod for my door game launcher but if
    there's a way to do the exact same thing with built-in Mystic menu features instead of a standalone mod, I'd prefer to do that.

    Thanks!

    --- Mystic BBS v1.12 A44 2020/02/04 (Linux/64)
    * Origin: monterey bbs (21:1/168)
  • From g00r00@21:1/108 to Embalmed on Sat Feb 22 14:55:44 2020
    make the headings not part of the lightbar scrolling around. So i have say 4-5 lightbars set to the x,y coordinates and the grid up/downs are pointing to themselves and cycle over if you go up on the top one etc. That allowed me to create 2 other entries i used as headers that had no hotkeys. once i flip to just lightbar then those headers are 'stepped' through. The lightbar is neat, but I don't even really need it, i just want the menu items to be plottable on an ansi menu. They don't have to be up/down/left/right selectable. But if that's the only way/best way
    to do it then so be it :)

    I think its an opinion what the best way is. But for what you're describing I'd probably just use a single ANSI file for the entire menu (which you can still edit from in Mystic's menu editor) and use a standard style menu.

    The lightbar is nice if you want to plot your commands. I don't really understand what you mean by headers getting selected. Normally you'd put anything you don't want selectable in the "background" ANSI and only the options you want selected as menu commands with an X/Y location.

    For Lightbar/Grid it won't even do anything unless you tell it to as far as selectable jumps.

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/64)
    * Origin: Sector 7 (21:1/108)
  • From g00r00@21:1/108 to ryan on Sat Feb 22 15:00:46 2020
    download on the phenomprod site.

    No, I haven't. Unfortunately I don't see many mods at all these days because
    I spend all my time working on things or answering messages.

    It takes an array of options in a .ini file, dynamically generates a litebar screen where you can scroll through multiple pages with pgup/pgdown, left/right, but also just standard up/down to go one option at a time.

    Sounds awesome!

    Does Lightbar/Grid do the same thing?

    It could, but it'd be a lot more work to do it using grid menus than what it sounds like you are doing with the mod.

    I repurposed much of the lottabull mod for my door game launcher but if there's a way to do the exact same thing with built-in Mystic menu features instead of a standalone mod, I'd prefer to do that.

    It wouldn't be dynamic and it'd be hard to manage, but I think it'd be doable technically. I wouldn't recommend it personally, if you already have a mod doing what you want and its maintainable.

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/64)
    * Origin: Sector 7 (21:1/108)
  • From Embalmed@21:4/166 to g00r00 on Sat Feb 22 01:04:50 2020
    The lightbar is nice if you want to plot your commands. I don't really understand what you mean by headers getting selected. Normally you'd put anything you don't want selectable in the "background" ANSI and only the options you want selected as menu commands with an X/Y location.
    I didn't want them in the background ansi, I wanted to be able to assign the text dynamically via the menu so i could use the ansi more places. It's not really that big of a deal though. So for the headers i just created another lightbar item that I don't want to activate and position it with the XY. It works but in default mode arrowing through them ends up selecting the column headers i setup also and they are not 'items'.

    |07E|10m|07b|10a|07l|10m|07e|10d |12-----------------------------------------------------
    |09Black Lodge Research BBS |11blacklodgeresearch.org:4022
    |11fsx|08Net: |0721:4/166 |11sci|08Net: |0777:1/133

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Black Lodge Research BBS (21:4/166)
  • From ryan@21:1/168 to g00r00 on Sat Feb 22 01:15:19 2020
    It wouldn't be dynamic and it'd be hard to manage, but I think it'd be doable technically. I wouldn't recommend it personally, if you already have a mod doing what you want and its maintainable.

    Cool, sounds good. Thanks man!

    --- Mystic BBS v1.12 A44 2020/02/04 (Linux/64)
    * Origin: monterey bbs (21:1/168)
  • From g00r00@21:1/108 to Embalmed on Sat Feb 22 16:25:12 2020
    the text dynamically via the menu so i could use the ansi more places. It's not really that big of a deal though. So for the headers i just created another lightbar item that I don't want to activate and position it with the XY. It works but in default mode arrowing through them ends

    I see. So to fix that you can make a EVERY hotkey menu command that automatically executes. And in it you can use the GT Display Text menu
    command to draw your headers.

    You could also probably draw them using the menu footer.

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/64)
    * Origin: Sector 7 (21:1/108)
  • From Embalmed@21:4/166 to g00r00 on Sat Feb 22 01:58:14 2020
    I see. So to fix that you can make a EVERY hotkey menu command that automatically executes. And in it you can use the GT Display Text menu command to draw your headers.

    You could also probably draw them using the menu footer.
    Cool I'll poke around with that setup :)

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Black Lodge Research BBS (21:4/166)