File tree Expand file tree Collapse file tree 3 files changed +0
-29
lines changed
main/kotlin/com/almasb/fxgl/app/services
kotlin/com/almasb/fxgl/app
resources/fxglassets/ui/cursors Expand file tree Collapse file tree 3 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -238,22 +238,6 @@ class FXGLAssetLoaderService : AssetLoaderService() {
238
238
return load(MUSIC , url)
239
239
}
240
240
241
- // TODO: remove in future version
242
- /* *
243
- * Loads cursor image with given name from /assets/ui/cursors/.
244
- * Either returns a valid image or throws exception in case of errors.
245
- *
246
- * @param name image name without the /assets/ui/cursors/, e.g. "attack_cursor.png"
247
- * @return cursor image
248
- * @throws IllegalArgumentException if asset not found or loading error
249
- */
250
- @Deprecated(" Place cursor under textures/ and use loadImage() instead" )
251
- fun loadCursorImage (name : String ): Image {
252
- val url = getURL(CURSORS_DIR + name)
253
-
254
- return load(IMAGE , url)
255
- }
256
-
257
241
/* *
258
242
* Loads resource bundle with given [name] from "/assets/properties/".
259
243
*
Original file line number Diff line number Diff line change @@ -274,19 +274,6 @@ class AssetLoaderServiceTest {
274
274
assertThat(map.getString(" testKey" ), `is `(" testValue" ))
275
275
}
276
276
277
- @Test
278
- fun loadCursorImage () {
279
- var cursorImage = assetLoader.loadCursorImage(" test_cursor.png" )
280
-
281
- assertThat(cursorImage, `is `(notNullValue()))
282
- assertThat(cursorImage.width, `is `(64.0 ))
283
- assertThat(cursorImage.height, `is `(64.0 ))
284
-
285
- cursorImage = assetLoader.loadCursorImage(" bla-bla" )
286
-
287
- assertThat(cursorImage, `is `(notNullValue()))
288
- }
289
-
290
277
@Test
291
278
fun loadUI () {
292
279
var count = 0
You can’t perform that action at this time.
0 commit comments