+6
-0
lines changedFilter options
+6
-0
lines changed Original file line number Diff line number Diff line change
@@ -152,6 +152,9 @@ class AnimatedTexture(defaultChannel: AnimationChannel) : Texture(defaultChannel
152
152
fitWidth = frameData.width.toDouble()
153
153
fitHeight = frameData.height.toDouble()
154
154
viewport = frameData.viewport
155
+
156
+
layoutX = frameData.offsetX.toDouble()
157
+
layoutY = frameData.offsetY.toDouble()
155
158
}
156
159
157
160
private fun updateAnimation() {
Original file line number Diff line number Diff line change
@@ -122,4 +122,7 @@ data class FrameData(
122
122
val height: Int
123
123
) {
124
124
val viewport = Rectangle2D(x.toDouble(), y.toDouble(), width.toDouble(), height.toDouble())
125
+
126
+
var offsetX = 0
127
+
var offsetY = 0
125
128
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4