I may go with form submit buttons with images because they're more responsive when clicked, but not necessarily better looking.

I'm curious how that would work. I like the responsiveness of the buttons as well (ie if I don't have the dialog in focus when I click and it still goes off) I've not had much success in controlling <input type="image" since it appears to not let you scale the image. Can you put an image on a regular submit button? If so what does the html look like? Can you scale it with width/height?

I may go with form submit buttons with images because they're more responsive when clicked, but not necessarily better looking.

I'm curious how that would work. I like the responsiveness of the buttons as well (ie if I don't have the dialog in focus when I click and it still goes off) I've not had much success in controlling <input type="image" since it appears to not let you scale the image. Can you put an image on a regular submit button? If so what does the html look like? Can you scale it with width/height?

Instead of using an image for the link, it would be a submit button with an image. There are a couple of ways to do that, but putting html in the value of the submit it how I have done it.

I may go with form submit buttons with images because they're more responsive when clicked, but not necessarily better looking.

I'm curious how that would work. I like the responsiveness of the buttons as well (ie if I don't have the dialog in focus when I click and it still goes off) I've not had much success in controlling <input type="image" since it appears to not let you scale the image. Can you put an image on a regular submit button? If so what does the html look like? Can you scale it with width/height?

Instead of using an image for the link, it would be a submit button with an image. There are a couple of ways to do that, but putting html in the value of the submit it how I have done it.

Because the built in button format are really skewed 12px margin, I used tinyLaf and default.theme to change that to 4px so button look a little better with text and images.

Thanks for the tip.

I just tested it and it works (except you need to swap in single quotes around the asset). The only thing weird about it is when you click the button, the passed macro args are a big long asset string. I can work with it though.

If you're worried about what is submitting, don't check the value, but check for the name. You can put values in other input fields (ie type=hidden). Generally speaking, there are at least two ways to handle form submits. First, the whole form is submitted and the value of submit isn't relevant. The other is you have multiple types of submits or multiple forms going to the same processing page. You can either use the value of a same named submit button, hide a value within a tag of the submit value and pull it out with regex (strfind) or check for the existence of a variable name.

I think my Forms are the point that slows down my macros the most. My Form display changes depending on class and feats, but it's the same Form calling the same macro to process the form. Therefore it checks for quite a bit of data before continuing.

One trick is to dump the json as a string property list. Just be careful about ; in your data. If you don't have that, then it's safe to do. Otherwise, depending on what it represents, you can do a replace first.

To put it into another campaign file, save a copy of the Lib:PathfinderRPG token, the button image tokens (there are several of these in stacked) and the campaign properties. Then drop the lib and image tokens in your new campaign, and load the new properties. As long as you have the Libs, Images, and props, you're good to go.

All the properties are hidden and accessed through getProperty() and setProperty(), which is why you only see the one prop in the campaign props. They get initialized when you run the "setup token" button, so nothing will work until you have set up the token.

I am very interested in trying this but also very new to using MapTools as anything than just mapping software. I have all of the Tokens exported but am unclear on how to save a copy of the properties and then in turn import them into my campaign.

I am very interested in trying this but also very new to using MapTools as anything than just mapping software. I have all of the Tokens exported but am unclear on how to save a copy of the properties and then in turn import them into my campaign.

In the MapTools menu, go to Edit->Campaign Properties, and click "Export" near the lower left of the dialog box. "Import" is right next to it.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum