Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rfgoetz

    (@rfgoetz)

    The software routine to randomize which TopBar takes the priorities of all TopBars that can be shown and adds them up. Then it generates a random integer between 1 and that total number.

    It then loops through those TopBars in descending order of priority and then adds their priorities together to create a cumulative total. When the random integer is greater than the cumulative total, then that TopBar is shown and the loop ends.

    In your case, you have Priority of 1 and 2. So, the routine tries to select a random number between 1 and 3. I suspect that 1 is never being shown because the random number generator is selecting 2 or 3 most of the time.

    Try changing your priorities of your TopBar to be higher numbers, For example, if you used 100 and 75, then the TopBar with a priority of 100 would be shown about four times as often as the one with the priority of 75.

    Or change them both to 100 and randomly have them both show about the same amount of time.

    Bob

    Thread Starter kshirsat

    (@kshirsat)

    Hi Bob,

    Understand the working & changed the priority to 100 to show both to same amount.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘topbar priority is not working’ is closed to new replies.