PDA

View Full Version : New feature I am working on



joshuha
August 3rd, 2011, 04:19
Video will take a second to load. (https://www.bitsbyteswords.com/ResizableChatWindow/ResizableChatWindow.html)

Looks like it might be hard to make it an extension due to the way panels work (talked to Moon_Wizard about it a little) so once I get it refined I will at least work on instructions on how to change your own ruleset to support it.

RKBrumbelow
August 3rd, 2011, 05:01
Very cool!

Zeus
August 3rd, 2011, 07:39
Hey that's neat. I have found the latest chatwindow changes under 2.7.x/8 a little difficult to manage. My desktop of 2560x1440 makes the chatwindow too long by default IMO.

I guess I had better tidy up the frame graphics for the chatwindow in 4E to smooth the pattern transitions when tiling. The original graphics were never designed with window scaling in mind.

demonsbane
August 3rd, 2011, 16:45
Video will take a second to load. (https://www.bitsbyteswords.com/ResizableChatWindow/ResizableChatWindow.html)

That is spectacular, Joshuha! And I remember that this feature has been very requested in the past.


(. . .) once I get it refined I will at least work on instructions on how to change your own ruleset to support it.

Very much appreciated. Support for other rulesets regarding new and objectively valuable features -like this one- is, I think, the way to go in the world of Fantasy Grounds.

joshuha
August 11th, 2011, 15:29
Another couple things as a proof of concept.

https://bitsbyteswords.com/projects/token_states.html

I need a couple of functions exposed in the API though to make it truly dynamic but Moon_Wizard has been willing to consider them.

demonsbane
August 11th, 2011, 18:01
It goes without saying that this is very promising.

joshuha
August 12th, 2011, 03:56
With the new functions in 2.8.1 got it working dynamically based off of token names. One issue I found though is currently tokeninstance.getOrientation returns nothing so I can't reset the new frame to the same orientation.

In the video towards the end you can see I also bound the frame advancement to an alt-left click on the token for fast cycling.

Using some WW2 tokens provided by Oberoten for the ship tokens (a set of 3) and jhtm for the person tokens (a set of 2). The overlay part with the Add Wounds still needs work but I am working hard on it.
https://bitsbyteswords.com/token_states2/token_states2.html

Zeus
August 12th, 2011, 10:32
Joshua, this looks really great.

Can you explain the approach you are taking at high level? I assume you have structured names for the tokens so that you can flip between the different states (using get/setPrototype) on User input (i.e. Alt-Left mouse click)

e.g.

ship - standard view of token
ship_1 - 1st state view of token
ship_2 - 2nd state view of token
..
..

And for the damaged state, is the blooddrop a bitmap widget you have overlayed on the token? If so, I remember discussing the approach a few weeks back here on the forums somewhere. I was planning to give this go and even went so far to mock up some state icons (see below).

https://farm7.static.flickr.com/6011/6001128719_379eccec79_o.jpg

Your welcome to use them, if you want. If you need more let me know.

DrZ.