Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Styling macro dropdown popups? One-click buttons alternative?

1723238105

Edited 1723239110
Daniel S.
Pro
Marketplace Creator
Sheet Author
Compendium Curator
I'm pretty sure the answer is no or I would've found some info on the guides about how to do this, but I'm wondering if you're able to style the little macro popup thing, especially the dropdown menu. You know, this thing... So it could maybe look like this, or whatever else you have in mind. The dropdown menu method currently takes 3 clicks. One to click on the menu, one to make a selection, and another to click 'submit'. When you have multiple things in a row to select, or make a roll often, this gets really tedious fast. It'd be great if there was some option to make a 1 click button inside the macro popup. If there is, let me know! If not I'll move this to suggestions and ideas. I'm aware that this can be done with a roll template sent to chat, but that clutters up the chat and also is farther away to move over and click than a center screen popup. At any rate... I guess this is a few questions in one. 1. Can you style the macro popups from within the character sheet? 2. Can you have a one-click button, or multiple button options, instead of a drop-down menu, within a macro popup? 3. Can you change the text of the title to something more semantically appropriate, other than "input value" which is the un-immersive default? Thanks!
1723242880
GiGs
Pro
Sheet Author
API Scripter
No, you can't do that. A popup like that can include only one item. It would be very nice if we could include more things - I guarantee you'd see very rapid adoption of that feature.
1723251937
Mago
Sheet Author
well i got curious and did some inspecting, so to answer your questions: 1) possibly if you add css rules with sufficient specificity  to override roll20s style, this can be done for some elements outside the charsheet div, such as the navigation bar, i haven't tested this on the pop-ups, so it may not work however these are the classes that show up: body > div.ui-dialog.ui-widget.ui-widget-content.ui-corner-all.ui-draggable.ui-resizable.ui-dialog-buttons > div.ui-dialog-titlebar.ui-widget-header.ui-corner-all.ui-helper-clearfix.ui-draggable-handle 2) not possible within the current build, the drop down <select> html element is part of the roll20 UI html 3) see #1
1723258605

Edited 1723331467
GiGs
Pro
Sheet Author
API Scripter
Mago's post made me realise I hadn't answered those 3 questions specifically. So: 1. Can you style the macro popups from within the character sheet? 2. Can you have a one-click button, or multiple button options, instead of a drop-down menu, within a macro popup? 3. Can you change the text of the title to something more semantically appropriate, other than "input value" which is the un-immersive default? (1) No - the popup is not part of a character sheet, and styling is only for the character sheet. Actually, I'm not 100% about this - just 95% or so. mago gives some CSS descriptors to test. (2) As Mago says, no. This is the question I focussed on earlier, and didn't realise there was more. This question has been raised many times over the years, always with the same answer: you can only have one item in a query dropdown, and the instant it's possible to add more than one, people will start doing it. (3) I don't believe you can change anything about that frame that pops up (see #1), and that includes the title. That's another thing people will start doing in large numbers as soon as they can.
1723302361

Edited 1723302408
Daniel S.
Pro
Marketplace Creator
Sheet Author
Compendium Curator
Alas, that's what I was afraid of. At any rate, thanks for confirming! Perhaps this will be possible after the 'jumpgate' background code stuff gets finalized.
1723306617

Edited 1723306646
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I'll give a definitive answer. The character sheet css is only loaded in the iframe, and is also loaded in the game with legacy sanitation. The legacy sanitation means this cannot be done with standard sheet builds. Beacon sheets can do this.
1723327170
Daniel S.
Pro
Marketplace Creator
Sheet Author
Compendium Curator
Good to know! Thanks! I'll keep an eye out on the Beacon sheet development options, I see it's in testing for now.