[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] About Buttons

From: Udo Giacomozzi
Subject: Re: [Gnash-dev] About Buttons
Date: Tue, 15 Apr 2008 11:48:27 +0200

Hello Sandro,

Tuesday, April 15, 2008, 11:03:57 AM, you wrote:
SS>  - The comparison between old and new active characters
SS>    triggering a set_invalidated call is bogus. set_invalidated
SS>    would still be called if any newly active character was
SS>    not in the old active character list, or if number of newly
SS>    active characters is smaller then old active characters...

I just noticed the double for-loop that follows that piece of code.
That loop gives sense the size comparison. Actually the comparison
triggers set_invalidated() when items are *removed* from the list.
When items are added to the list, it will be detected by the for loop
below. When new_list and old_list are of equal size, but differ, then
the for loop will detect it (in that case some items in new_list
must be missin in old_list).

Sooner or later set_invalidated() gets called when the list changes.

In short: That code is correct.

SS>  - Not currently active characters are still advanced. So if
SS>    a sprite active on mouse over consists of a moving thing,
SS>    the thing would keep moving while still not visible, and
SS>    all frame actions of that character would still be executed
SS>    (would that be correct?).

Can you check this with P.P.?

SS>    As a side-effect, when these not-currently-active characters
SS>    get invalidated the button gets child-invalidated too.

Correct, altough add_invalidated_bounds() will only add the bounds
for visible characters. However, add_invalidated_bounds() doesn't
even need to be called in that case. (the resulting bounds are still
correct, but the check is useless).

Errrr.. where get the instances advanced? There is no *advance()* !? :-O

SS>  - The generic get_active_characters() method includes a check
SS>    for the "HIT" character, which I belive should never
SS>    displayed if its only state is "HIT".

Never displayed? Why? HIT is when you keep pressed a button...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]