-
May 1st, 2007, 23:35 #1
Windowlist and textwidget problem in 2.0.6. [fixed]
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...)
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...
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
- 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...
(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...Last edited by TarynWinterblade; May 3rd, 2007 at 06:38.
-
May 3rd, 2007, 06:37 #2
-
May 3rd, 2007, 12:43 #3
The image looks as if the ruleset is going to be magnificent.
Using Ultimate license - that means anyone can play.
Valarian's Fantasy Grounds Rulesets
-
May 3rd, 2007, 20:36 #4Originally Posted by Valarian
I'm hoping it'll be at least somewhat good.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks