collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
884 stars 101 forks source link

WidgetGroup#drawChildren(Canvas) with parent's unique Canvas offsets components #4

Closed collinsmith closed 8 years ago

collinsmith commented 8 years ago

Issue seems to offset relative to parent location. May be fixable by assigning a clip to parent's canvas (clip would be inverse of parent, meaning clipping child to parent's bounds to offset)

actual expected

collinsmith commented 8 years ago

Upon further investigation, looks to be caused by rendering to Widget-local canvas in global coordinates. Should be fixable by rendering in local coordinates.