Thread: Chat Aesthetics Configurator
-
March 7th, 2022, 22:59 #11
Holy smokes! You're right. Thank you so much for taking the time to let me know. I haven't been a developer in like 15 years... so pretty rusty. I am having a heck of a time figuring all of this out. Once I figure out how to intercept all chat messages (instead of just rolls) I will make better progress.
I'll update it and submit the new build -- I am not happy with the colors and font sizes yet, so I am tweaking. I've also knocked out another icon theme.
What you working on?
--Thomas
-
March 7th, 2022, 23:19 #12
I look forward to the new icons. I love the icon art style you use so far.
This past weekend I was working on a very simple extension for customizing the look of the token health bar. It will allow displaying a "100%" bar in the background of the existing bar to give a better sense of how much health is gone. It also makes it easier to spot empty health bars. I added the ability to use the color picker dialog so any custom color and alpha level can be selected for the background bar.
It's very limited in its usefulness, but was more as an exercise for me to figure out how to trigger the color picker window from clicking on an option and then save the value, and also learn about how widgets work. The thread for it is here if you want to take a look: https://www.fantasygrounds.com/forum...althBar-Widget All the code is on github for anyone to reuse.
Cheers,
Brian
-
March 7th, 2022, 23:24 #13
-
March 8th, 2022, 00:01 #14
Replacing ChatManager.Message and ChatManager.SystemMessage?
You could also do Comm.deliverChatMessage and Comm.addChatMessage, but I think those functions are not visible so working with them is less intuitive.
So:
Code:local _fMessage local function Message(msgtxt, broadcast, rActor, ...) -- here you can do whatever you want -- then this calls the original function _fMessage(msgtxt, broadcast, rActor, ...) end function onInit() -- back up original function _fMessage = ChatManager.Message -- override original function in ChatManager ChatManager.Message = Message end(
Last edited by bmos; March 8th, 2022 at 03:19.
-
March 8th, 2022, 01:05 #15
-
March 8th, 2022, 01:28 #16
The wiki has a lot of documentation here: https://fantasygroundsunity.atlassia...+API+Reference
I also found it useful to unzip the CoreRPG and other rulesets into a common directory and then use something like Microsoft's Visual Studio Code to treat them all as one workspace, which then allows me to more easily search for places in where the APIs are actually used and see how there are used and interact with other parts of the system.
For example, if you are looking for chat related stuff, you can then search for ChatManager, or other things with the name chat and see possibilities for how the chat features are used with Lua.
Cheers,
Brian
-
March 8th, 2022, 03:14 #17
I've gotten a lot of good information from here: https://riptutorial.com/lua/example/...ttern-matching
Other than that, reading through other extensions and rulesets is a great way to learn as MostTornBrain points out.
You can find all my source code here: https://github.com/bmos?tab=repositories
-
March 8th, 2022, 06:09 #18
Thank you both! I will dive into this over the next week.
My goal is to get to a decent framework for the extension so I can focus on the design.
--Thomas
-
March 8th, 2022, 18:24 #19
I like the effect icon. Overall nice addition to something I really would not live without. Thanks!
-
March 16th, 2022, 13:34 #20
Great extension man! I tested it, but I will wait 'till the third known issue: "Using this extension MAY change some of the icons in on the "action" tab... specifically, the "Spells" icon is fixed". REALLY can't wait 'till then. GREAT work! Thanks.
Simon De Luca
Montreal, Quebec, Canada
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks