When I saw Alan H. 's Dungeon Buddies collection I really liked them and started to talk with Aaron about what fun things could be done with them. At some point we kicked around the idea of speech balloons. It appears if you try to set the font-family property of a text object to a font that is not in the text editing menu you will get a mono-spaced font by default (this is true for Chrome at least.) That enables a pretty good guess at the text box size (which is based on the amount/size of the text itself when created by API. Another helpful thing is "\n" will provide a new line in a text area. Using a few small PNG files, properly stack in the _zorder, sized based on the amount of text lines, center and flipped in the proper location/orientation based on the selected token... you get a pretty good speech balloon. "!makebubble " + some text .....text will be word wrapped and sized. "!makebubble Ok, before we go any further in the dungeon, what are your stats?" "!makebubble --show|" + macro stuff + "~" for space + "::" for new line ...macro text will not be word wrapped (28 characters wide by default, and height based on number of new lines.) "!makebubble --show|•STR|@{selected|Strength}~~~•AGL|@{selected|Agility}~~~•STM|@{selected|Stamina}::•PER|~@{selected|Personality}~~~•INT|~@{selected|Intelligence}" "!bustBubble" ...forces the bubble to collapse to the corner of the map on the GM layer (ahead of its auto expire.)
You must select a token for this function. Example below (macro printed above was shorted for the posting here. A longer macro was used in the illustration.) Link to the PNGs: <a href="https://drive.google.com/file/d/0B7d47ZZymuXPY3d0Z" rel="nofollow">https://drive.google.com/file/d/0B7d47ZZymuXPY3d0Z</a>... Code will be posted in this thread soon! (I would have had it up already but Aaron has this notion that code should be stable and functionally working before posting. I think we should get Alan H. to make a Dungeon Buddy of Aaron...."Something Something of the JSLint clan.")