Results 1 to 10 of 12

Thread: Macro Menu Bars

Hybrid View

  1. #1
    Player
    Almagnus1's Avatar
    Join Date
    Mar 2015
    Location
    Ul'Dah
    Posts
    941
    Character
    Maley Oakensage
    World
    Behemoth
    Main Class
    White Mage Lv 100
    I'm doing something similar, but it's using a lot of macros with the ones that open the bars being:

    Code:
    /hotbar copy THM 1 share 9
    /hotbar display 10 off
    /hotbar display 9 on
    and the actual job switch looking like:

    Code:
    /micon "Soul of the Paladin" item
    /gearset change 1
    /hotbar display 9 off
    Main thing I'm looking to do is wipe and repopulate the hotbar (in this case shared 9 and 10) so I am not reliant upon using THM 1-7 as the "storage" for the bars. It's working now basically doing what you've described, but I'm looking to do something for the role icons more like:
    Code:
    if(shared 9 visible){hide shared 9}
    else{
        populate shared 9
        show shared 9
    }
    Edit:
    Now that I think a bit through the conditions to check for, the if statement would need to be a bit more complicated than just checking if the bar was visible... and it's wandering into needing global variables of some kind. Either way, I'd still be interested to know if there's a way to populate a hotbar without doing a copy.
    (0)
    Last edited by Almagnus1; 07-29-2021 at 01:58 AM.

  2. #2
    Player
    Rongway's Avatar
    Join Date
    Aug 2013
    Posts
    4,167
    Character
    Cyrillo Rongway
    World
    Hyperion
    Main Class
    Black Mage Lv 100
    Quote Originally Posted by Almagnus1 View Post
    Main thing I'm looking to do is wipe and repopulate the hotbar (in this case shared 9 and 10) so I am not reliant upon using THM 1-7 as the "storage" for the bars. It's working now basically doing what you've described, but I'm looking to do something for the role icons more like:
    Code:
    if(shared 9 visible){hide shared 9}
    else{
        populate shared 9
        show shared 9
    }
    There are two ways to hide a bar. A bar's Display setting can be set or toggled with /hotbar display. A bar's Sharing state can be set or toggled with /hotbar share. If there is nothing in current 9, turning Sharing off for 9 will show the blank current 9 bar; or if nothing in share 9, turning Sharing on for 9 will show the blank share 9 bar. The direct method is preferred if all you need to do is hide the bar, but the second method is useful for setups that do things like using a bar for job actions during combat but using the same bar for only-out-of-combat actions (e.g., mounts) when out of combat.

    The quoted conditional structure can be refactored thus:
    Code:
    populate share9
    if (share9.visible)
        hide share9
    else
        show share9
    which of course could be further refactored:
    Code:
    populate share9
    toggle share9

    In game commands, that would look like this:
    Code:
    /mlock
    /hotbar copy thm 1 share 9
    /hotbar display 9
    (0)
    Last edited by Rongway; 07-29-2021 at 10:18 AM.
    Error 3102 Club, Order of the 52nd Hour