Roll20API icon indicating copy to clipboard operation
Roll20API copied to clipboard

Turn order

Open Deojuvente opened this issue 6 years ago • 5 comments

Hello Shdwjk

Is it possible the make a API that i can add for the Turn order tracker not to be visible to the player? or a auto hide like the chat setting as player. if you click the box it moves to the right and stays there until i like to see it (as a player) or under the map and not be visible. I am using roll20 on a table whit a beamer and the tracker is on the map/table its just not looking nice.

I am using 2 laptops one whit the DM view and one as player on the beamer. the turn order on the player laptop is just so annoying but a need for the DM.

thanks for you time Edwin

Deojuvente avatar Sep 08 '18 14:09 Deojuvente

I'm assuming you're talking about TurnMarker1?

It could be done. If you change lines 313, 425, 430 to set "gmlayer" instead of getting the layer from the token, it will always put the marker on the GM layer and never the player layer.

313                     "layer": obj.get("layer"),
425                         "layer": currentToken.get("layer")
430                     "layer": currentToken.get("layer"),

to

313                     "layer": "gmlayer",
425                         "layer": "gmlayer"
430                     "layer": "gmlayer",

shdwjk avatar Sep 08 '18 15:09 shdwjk

Hello Shdwjk

thanks for the fast reply.

I like to us it whit the TurnMarker1 but i meen the Roll20 Turn Order for the player(s) to switching it off http://prntscr.com/ks3arh

I like to know if its possible to do it whit a API or Macro. Sorry for my bad English i am Dutch

Deojuvente avatar Sep 08 '18 16:09 Deojuvente

Ah, I see. Since you are in control of the projected/beamed version of the game as well as the GM side, I would suggest either double clicking the title of the turn order on the projected/beamed screen to minimize it, or using a Chrome Bookmarklet to hide it:

javascript:$('#initiativewindow').parent().hide();

The API can't control who sees that window, the best it could do would be to make the turn order entries only visible to the GM (though a great deal of hackery, not easily).

You might find this page in the Roll20 wiki helpful: https://wiki.roll20.net/Using_Roll20_while_Playing_In-Person

shdwjk avatar Sep 08 '18 17:09 shdwjk

its not working. When the GM is reopening to TurnOrder its back But thnx for you help and time. i am goining to look at the post you gave me

Deojuvente avatar Sep 09 '18 13:09 Deojuvente

Sorry, I should have been more clear. With that Bookmarklet, you'd have to run it every time you open the Turn Order to re-hide it. It's kind of a hack. There might be a Stylus theme you could create that would keep it hidden, but without parent selectors in CSS and no distinguishing class or id on the Turn Order dialog, it would be hard to not hide other things you might want to retain.

shdwjk avatar Sep 09 '18 15:09 shdwjk