PDA

View Full Version : Font color replacement for Saves Extension Done



dellanx
June 25th, 2020, 11:17
Here it is, thanks Trenloe and everyone. Thank you valeros for letting me modify your code.


Here is the image, the extension has better colors and is now uses bold font.
37161

Here is the spell save extension v.1.1 with “License: CC-BY-NC”.
37493 [FG Forge] (https://forge.fantasygrounds.com/shop/items/233/view)


Extension Updated

Trenloe
June 25th, 2020, 11:35
I was wondering how you were going to filter out just the saves. :) Nice one! Thanks for sharing with the community.

Kelrugem
June 25th, 2020, 13:52
Cool, thank you :)

dellanx
June 25th, 2020, 15:07
What would be some good colors for this?

[SUCCESS]
[FAILURE]
[AUTOMATIC SUCCESS]
[AUTOMATIC FAILURE]

Trenloe
June 25th, 2020, 15:10
Red is normally stop/bad and green is normally go/good. So I'd go for something like green for success and maybe red for automatic failure. Perhaps a dark yellow (amber) for failure, and then blue for automatic success?

dellanx
June 25th, 2020, 15:32
Red is normally stop/bad and green is normally go/good. So I'd go for something like green for success and maybe red for automatic failure. Perhaps a dark yellow (amber) for failure, and then blue for automatic success?

How is that above?

Trenloe
June 25th, 2020, 15:37
How is that above?
Looks good to me! How readable is that in the FG chat?

dellanx
June 25th, 2020, 15:44
Looks good to me! How readable is that in the FG chat?

I will see tonight, concerned about the amber. The font may be scaled. Yellow is hard to see at #16 font, 24 is big, and takes up too much room. Also as one changes the color of the screen background, the colors may look different. May make the font Bold.

What would be some good colors for this?

[SUCCESS]
[FAILURE]
[AUTOMATIC SUCCESS]
[AUTOMATIC FAILURE]

Trenloe
June 25th, 2020, 15:47
Also as one changes the color of the screen background, the colors may look different.
Yep.

mozmonar
June 26th, 2020, 05:41
This looks very cool. I will have to try it out.

I hope this isn't too much of a derail, but I think it might be cool to have PC names have different colors...not for the entire string just the name. It might even be possible to use the players dice color as the defining color although that has the potential to make some poorly contrasted text/background. The use case for this would be to quickly identify PCs in the wall of text after a party roll.

dellanx
June 26th, 2020, 10:20
This looks very cool. I will have to try it out.

I hope this isn't too much of a derail, but I think it might be cool to have PC names have different colors...not for the entire string just the name. It might even be possible to use the players dice color as the defining color although that has the potential to make some poorly contrasted text/background. The use case for this would be to quickly identify PCs in the wall of text after a party roll.

Feel free to tackle that project, I am still a newbie when it comes to this stuff. I would be satisfied if a border may be added to the [AUTOMATIC SUCCESS] and [AUTOMATIC FAILURE] text, but what O tried did not work. Also I wonder if there is a way to influence color based on the "CL CHECK" dice roll, for this string?

Trenloe
June 26th, 2020, 10:47
I hope this isn't too much of a derail, but I think it might be cool to have PC names have different colors...not for the entire string just the name. It might even be possible to use the players dice color as the defining color although that has the potential to make some poorly contrasted text/background. The use case for this would be to quickly identify PCs in the wall of text after a party roll.
You can only use one font, one size, one colour per line in the chat window. So, unless the PC name is displayed purely on its own line, this isn't possible.

Talen
June 26th, 2020, 11:01
Nice extension! Thank you for sharing. Perhaps you have considered and decided on the current approach - but I noticed that when a [CRITICAL SUCCESS] is rolled with the PF2 ruleset, their is no formatting - not even for the standard green success. I presume Critical Failure is the same way?

dellanx
June 26th, 2020, 13:28
Nice extension! Thank you for sharing. Perhaps you have considered and decided on the current approach - but I noticed that when a [CRITICAL SUCCESS] is rolled with the PF2 ruleset, their is no formatting - not even for the standard green success. I presume Critical Failure is the same way?

Never played PF2, have you tried this extension with PF2? May need to change the "lua" file. I noticed you said [CRITICAL SUCCESS], in PF1 it is referred to as [AUTOMATIC SUCCESS] or [AUTOMATIC FAILURE]. That code would have to be changed.

If you have not seen these, you may wish to look at these extensions

New Hit, Miss, Crit Hit and Crit Miss Icons - by Willot

(I ADDED MY OWN HIT Icons on my system) - all original icons provided by Willot
https://www.fantasygrounds.com/forums/showthread.php?59176-New-Hit-Miss-Crit-Hit-and-Crit-Miss-Icons


Chat Window - Attack Rolls - Big Icons, Fonts, and Color - Great for TV use - by veloros (I disabled these icons), you can use veloros icons as is, but if you modify he prefers that they are not used.
https://www.fantasygrounds.com/forums/showthread.php?56332

and Save overlay extension (idea from Ken L) - by Kelrugem
https://www.fantasygrounds.com/forums/showthread.php?50143-Save-overlay-extension-(idea-from-Ken-L)

I think some combination of these extensions is a win win situation. They work well together in PFRPG. I think Kelrugem put together a PF2 version of the Overlay extension, search for "Overlay PF2"

These is what inspired me to write my little extension, to complete my need for clarity.

dllewell
June 26th, 2020, 17:13
Very nice. Thank you dellanx

dellanx
June 26th, 2020, 18:51
Very nice. Thank you dellanx

Your welcome.

mozmonar
June 26th, 2020, 20:17
You can only use one font, one size, one colour per line in the chat window. So, unless the PC name is displayed purely on its own line, this isn't possible.

I kind of figured it wasn't doable. For one it would be beyond my capabilities. And as you say the program wouldn't support it anyway.

LordEntrails
July 6th, 2020, 17:38
@dellanx,
I am starting to ask all community developers to consider making an explicit licensing statement on their work. It helps future community developers honor your wishes in regards to your work. Their is a discussion and some suggested licensing statements here; On Licensing & Distributing Community Content (https://www.fantasygrounds.com/forums/showthread.php?53781-On-Licensing-Distribution-of-Community-Content). Thanks for your contribution and for considering adding a licensing statement to your original post :)

dellanx
July 7th, 2020, 14:29
@dellanx,
I am starting to ask all community developers to consider making an explicit licensing statement on their work. It helps future community developers honor your wishes in regards to your work. Their is a discussion and some suggested licensing statements here; On Licensing & Distributing Community Content (https://www.fantasygrounds.com/forums/showthread.php?53781-On-Licensing-Distribution-of-Community-Content). Thanks for your contribution and for considering adding a licensing statement to your original post :)

Done, and thanks, that is very cool thing to do.


<license>Put it inside the XML</license>

darthphoenix95
November 17th, 2020, 03:49
does the extension work in FGU?

darthphoenix95
November 17th, 2020, 04:08
or you could have the color change to the color the PC picks for themselves!

darthphoenix95
November 17th, 2020, 14:02
the yellow is kind of hard to read, tbh

Weissrolf
November 17th, 2020, 15:24
Replacing AUTOMATIC with CRITICAL in the lua file makes this work with PF2. Currently trying to make it work with the BetterSafeDescription extension.

Weissrolf
November 17th, 2020, 18:53
I made it work with BetterSafeDescription and decreased color brightness for better readability. For the time being I will disable this extension, though, because the colors are uniformly used for both PCs and NPCs. So a green result could mean that a PC succeeded or that an NPC succeeded, which looks like possible confusion troubles to me.

Zygmunt Molotch
July 25th, 2021, 06:45
you should upload this to the Forge!