Tooltips in broadcast...possible?
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Tooltips in broadcast...possible?
If this is possible (to display tooltips within a broadcast message), could someone provide an example of this please?
Re: Tooltips in broadcast...possible?
broadcast outputs raw text, so if you include the HTML with a tool tip (can't use the t roll option) it will show your tool tip.
Code: Select all
[H: broadcast('<span title="this is my tooltip">This is my text</span>')]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Tooltips in broadcast...possible?
Hmm...I'm thinking more like being able to see the breakdown of somewhat complicated roll results.
Right now, for example, if you mouse over the total to hit roll in my frame work, you see the tool tip which breaks down...
the die roll
the attack bonus
the state bonus
misc bonus
and like 4 other things.
I'm trying to figure out how I could put THAT into your example.
Right now, for example, if you mouse over the total to hit roll in my frame work, you see the tool tip which breaks down...
the die roll
the attack bonus
the state bonus
misc bonus
and like 4 other things.
I'm trying to figure out how I could put THAT into your example.
Re: Tooltips in broadcast...possible?
Better example.
Current code puts together the output string like so...
[h : output = MisfortuneText + "<b>" + getName() + "</b> rolls a " + saveName + " save: " + "<b>" + sum(roll,saveValue,modifier,-stateMod,BuffSave) + "</b>"]
[g,s : ouput]
And when you mouse over this, you see the breakdown of the "sum" function.
Is that possible in a broadcast?
Current code puts together the output string like so...
[h : output = MisfortuneText + "<b>" + getName() + "</b> rolls a " + saveName + " save: " + "<b>" + sum(roll,saveValue,modifier,-stateMod,BuffSave) + "</b>"]
[g,s : ouput]
And when you mouse over this, you see the breakdown of the "sum" function.
Is that possible in a broadcast?
Re: Tooltips in broadcast...possible?
Yeah, you just need to write the html for it. Here's an old example of an attack macro I wrote for someone along with some other useful tidbits. All the output is saved to a variable.
http://forums.rptools.net/viewtopic.php ... ck#p233681
http://forums.rptools.net/viewtopic.php ... ck#p233681
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Tooltips in broadcast...possible?
Good stuff AM, thanks!
Re: Tooltips in broadcast...possible?
AliasMask, just wanted to give you a big "THANKS!" for pointing me the direction of that link. Although its going to take some work on my end, the end result of these changes are going to be great and there's no way I would have thought to do that without looking at the example you showed.
So again, THANKS!!!!
So again, THANKS!!!!
Re: Tooltips in broadcast...possible?
Glad to be of service
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Tooltips in broadcast...possible?
Now if you could just tell me where to get those "WotC Images" that are in your signature line and you'll be the Maptool hero of the week...
Re: Tooltips in broadcast...possible?
I posted new links as the last comment of the thread.xavram wrote:Now if you could just tell me where to get those "WotC Images" that are in your signature line and you'll be the Maptool hero of the week...
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Tooltips in broadcast...possible?
Thanks again AM, these will be very useful when i start digging into my next campaign.