PDA

View Full Version : Windowlist and textwidget problem in 2.0.6.



TarynWinterblade
May 1st, 2007, 23:35
I was in the process of working on a d20 modern ruleset for my group, and noticed a strange problem when I was tinkering with the weapons.

The problem:
It seems that if you add a textwidget to any part of the windowclass that acts as the item entries in a windowlist, the engine doesn't properly track masking on it.

... here's two screenshots of what I mean (since I managed to confuse myself with what I just said, I think...)

https://www.societyoflostsouls.com/images/windowlist_textwidget1.jpg

In this first shot, the five blue boxes there are genericcontrols with a textwidget added to them for the label (side note: they're made so that if you click on them, it allows you to set the value they control, but that's beside the point). The script for the textwidget was borrowed from the labeledstring template.


Now, the problem shows up if you scroll the windowlist...
https://www.societyoflostsouls.com/images/windowlist_textwidget2.jpg

The original parts of the windowclass get masked just fine when they reach the top, but the textwidgets persist until the entire windowclass has gone off the page (I'm assuming that the engine calls setVisible(false) on it at that point or possibly even close / destroy?).

Workarounds:
- Use a flat graphic for it :(.
- Declare the label as a static string control instead of a text widget :cry:
- Write a function that manually calls setVisible on the widget when it goes off the screen (... though I'm not sure if you're capable of getting the offset of a windowclass that's part of a windowlist...)

Conclusion:
It'd be simpler to ask if this is "working as intended" or if it's a bug, and then let Smiteworks deal with it if it is... :p
(j/k on that part)


Oh, and I know that the H&K PSG1 uses the 7.62 mm round with a 5-round clip... those values are just there for testing purposes... or me not having some of the graphics done... :o

TarynWinterblade
May 3rd, 2007, 06:37
Fixed in 2.0.7. <3 the devs. :)

Valarian
May 3rd, 2007, 12:43
The image looks as if the ruleset is going to be magnificent.

TarynWinterblade
May 3rd, 2007, 20:36
The image looks as if the ruleset is going to be magnificent.

Thank you. :o

I'm hoping it'll be at least somewhat good.