
The tab I use most often, far more than those other two, doesn't have a shortcut!
Please make control-doubleclick open directly to the character sheet tab!
t.on("dblclick", function (e) { if (e.target && "text" == e.target.type) d20.engine.editText(e.target, e.pageX, e.pageY); else if (e.target && "image" == e.target.type && e.target.model) if ((e.e.e.shiftKey || e.e.e.altKey) && "" !== e.target.model.get("represents")) { console.log("Show token's character..."); var t = d20.Campaign.characters.get(e.target.model.get("represents")); if (t) { var n = t.get("inplayerjournals").split(","); (window.is_gm || -1 !== _.indexOf(n, "all") || window.currentPlayer && -1 !== _.indexOf(n, window.currentPlayer.id)) && t.view.showDialog() } e.e.e.altKey ? $(".dialog[data-characterid=" + e.target.model.get("represents") + "] .characterviewer ul.nav a[data-tab='attributesabilities']").trigger("click") : $(".dialog[data-characterid=" + e.target.model.get("represents") + "] .characterviewer ul.nav a[data-tab='bioinfo']").trigger("click") } else e.target.model.trigger("showtokeneditor") });I'm pretty sure a simple switch with a check for null (in the case the game doesn't use a character sheet) similar to below.
t.on("dblclick", function (e) { if (e.target && "text" == e.target.type) d20.engine.editText(e.target, e.pageX, e.pageY); else if (e.target && "image" == e.target.type && e.target.model) if ((e.e.e.shiftKey || e.e.e.altKey || e.e.e.ctrlkey) && "" !== e.target.model.get("represents")) { console.log("Show token's character..."); var t = d20.Campaign.characters.get(e.target.model.get("represents")); if (t) { var n = t.get("inplayerjournals").split(","); (window.is_gm || -1 !== _.indexOf(n, "all") || window.currentPlayer && -1 !== _.indexOf(n, window.currentPlayer.id)) && t.view.showDialog() } switch (e.e.e) { case altkey: $(".dialog[data-characterid=" + e.target.model.get("represents") + "] .characterviewer ul.nav a[data-tab='attributesabilities']").trigger("click") break; case shiftKey: $(".dialog[data-characterid=" + e.target.model.get("represents") + "] .characterviewer ul.nav a[data-tab='bioinfo']").trigger("click") break; case ctrlkey && $charsheet != null: $(".dialog[data-characterid=" + e.target.model.get("represents") + "] .characterviewer ul.nav a[data-tab='charsheet']").trigger("click") break; default: } } else e.target.model.trigger("showtokeneditor") });Not sure if that comparison operator needs to be != or !==. I know c#, not javascript.
We're at two years, I believe you have to get to 3 before your post gets recognized. I'm coming back to this though because frankly, I'm wasting hours of time writing macros to overcome the multiple clicks it takes to get to the Character Sheet.
Roll20 has made the Charctersheets such a fundamental part of Roll20, no more so with the Charactermancer. Yet they still do not offer a simple way to get to them. This is hands down my biggest pet-peeve with this platform, especially, when it seems to me, such a simple thing to overcome. When I run a game and I have multiple PCs and NPCs this is by far the biggest time waster I deal with.
I mean, they even have advanced hotkeys for simple things in the game. I just do not understand why adding a hotkey to open the character sheet of the selected token is so hard.
We're updating this behavior so that the alt+double click behavior is to open the character with the sheet tab selected if you're using a character sheet, otherwise default back to opening the Attributes and Abilities tab.
Steve K. said:
We're updating this behavior so that the alt+double click behavior is to open the character with the sheet tab selected if you're using a character sheet, otherwise default back to opening the Attributes and Abilities tab.
That's a nice quality of life change. Cool.
I just checked this out on Dev, you have no idea how happy this makes me. This is like an itch I could never reach finally being relieved. I'm beyond happy about this simple change.
Now, I'm probably pushing my luck here, and it's probably its own beast. But since we're on topic of opening character sheets; would there be anyway to make the character sheets autosize when they open for the first time? Below, you can see the default size on the left, and the typically adjusted size on the right. I know this seems to be predefined by the larger of the character sheets used (ie. the PC sheet), but was wondering if "auto-size" was an easy enough switch to add.
Please don't take that as being unsatisfied, I'm elated this has finally made it in!
Glad we could meet your needs!
For the resizing of character sheets, that seems like it's a separate suggestion, and one that might get some good traction. Would you be willing to make that as a separate thread?
Jeremy said:
I just checked this out on Dev, you have no idea how happy this makes me. This is like an itch I could never reach finally being relieved. I'm beyond happy about this simple change.
Now, I'm probably pushing my luck here, and it's probably its own beast. But since we're on topic of opening character sheets; would there be anyway to make the character sheets autosize when they open for the first time? Below, you can see the default size on the left, and the typically adjusted size on the right. I know this seems to be predefined by the larger of the character sheets used (ie. the PC sheet), but was wondering if "auto-size" was an easy enough switch to add.
Please don't take that as being unsatisfied, I'm elated this has finally made it in!
Stephanie B. said:
Glad we could meet your needs!
For the resizing of character sheets, that seems like it's a separate suggestion, and one that might get some good traction. Would you be willing to make that as a separate thread?
Jeremy said:
I just checked this out on Dev, you have no idea how happy this makes me. This is like an itch I could never reach finally being relieved. I'm beyond happy about this simple change.
Now, I'm probably pushing my luck here, and it's probably its own beast. But since we're on topic of opening character sheets; would there be anyway to make the character sheets autosize when they open for the first time? Below, you can see the default size on the left, and the typically adjusted size on the right. I know this seems to be predefined by the larger of the character sheets used (ie. the PC sheet), but was wondering if "auto-size" was an easy enough switch to add.
Please don't take that as being unsatisfied, I'm elated this has finally made it in!
I'm out of votes at the moment to create a new thread. And my next suggestion is going to be blocking player access to NPC attributes through macros most likely.