You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue with the show/hide events of widgets, specifically instances of Blueprints_MainButton, when they are placed inside containers in a screen. The widgets outside of the hbox correctly trigger show/hide events, but those inside do not.
Also, children that has Transforms inside of CDD's doesn't trigger show/hide events when appearing onscreen. I will talk about those later.
All instances of Blueprints_MainButton, regardless of their position (inside or outside the hbox), should trigger show/hide events defined in the Blueprints_MainButton_Anim transform.
Actual Behavior:
The third_box, placed outside the hbox, correctly triggers the show/hide events.
first_box and second_box, placed inside the hbox, do not trigger show/hide events.
When elements are moved outside of the hbox, they correctly trigger the events, indicating that the issue is isolated to widgets inside the hbox.
Other events like hover and idle work as expected for all widgets, suggesting that the issue is specific to show/hide events.
Additional Context:
Blueprints_MainButton are CDDs.
The expected functionality is for these widgets to consistently trigger show/hide animations, irrespective of their placement in the screen's hierarchy.
Attempted Solutions:
Swapping widgets between inside and outside of the hbox confirms that the issue is related to their placement.
I even tried to "encapsulate" everything inside a showif True:, expecting to somehow trigger it, but only made everything inside the showif NOT trigger any show/hide events. Inside the hbox or not.
Maybe this was CDD problem so I created a Solid() with a simple Transform inside a Fixed. The show/hide animation didn't trigger, too. But it did outside the Fixed, so this is not a hbox specifically problem.
Additional CDD problem
Children with Transforms inside a CDD correctly trigger idle/hover and other events, but it doesn't trigger show/hide when appearing on a screen or showing it.
# Rest of the code here
self.fixed = At(Button(
fxd,
action=self.action,
xysize=self.size,
),Blueprints_MainButton_Anim(self.delay,self.size))
renpy.redraw(self,0)
def render(self, width, height, st, at):
render = renpy.Render(*self.size)
render.place(self.fixed)
return render
This was a problem I had for quite some time. I "kinda" made myself a workaround;
I am experiencing an issue with the show/hide events of widgets, specifically instances of
Blueprints_MainButton
, when they are placed inside containers in a screen. The widgets outside of thehbox
correctly trigger show/hide events, but those inside do not.Also, children that has Transforms inside of CDD's doesn't trigger show/hide events when appearing onscreen. I will talk about those later.
Expected Behavior:
Blueprints_MainButton
, regardless of their position (inside or outside the hbox), should trigger show/hide events defined in theBlueprints_MainButton_Anim
transform.Actual Behavior:
third_box
, placed outside thehbox
, correctly triggers the show/hide events.first_box
andsecond_box
, placed inside thehbox
, do not trigger show/hide events.hbox
, they correctly trigger the events, indicating that the issue is isolated to widgets inside thehbox
.Additional Context:
Blueprints_MainButton
are CDDs.Attempted Solutions:
hbox
confirms that the issue is related to their placement.showif True:
, expecting to somehow trigger it, but only made everything inside theshowif
NOT trigger any show/hide events. Inside thehbox
or not.Solid()
with a simple Transform inside aFixed
. The show/hide animation didn't trigger, too. But it did outside the Fixed, so this is not ahbox
specifically problem.Additional CDD problem
Children with Transforms inside a CDD correctly trigger idle/hover and other events, but it doesn't trigger show/hide when appearing on a screen or showing it.
This was a problem I had for quite some time. I "kinda" made myself a workaround;
Once everything is created, I draw the CDD and then set the transform event to "show" or "hide" when I have to hide it.
Going back to the children inside containers not triggering show/hide. I think that's new. I don't remember having this problem before.
I'm sorry if this submit is a mess, it's my first time doing something like this, I hope it helps.
The text was updated successfully, but these errors were encountered: