From bd358e385bc4f8425a3e5014a12d4cffe477fa74 Mon Sep 17 00:00:00 2001 From: LeonGamerPS4 <108237023+LeonGamerPS1@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:11:31 +0100 Subject: [PATCH 1/2] Removed @param descriptions for non existent Arguments L115 --- flixel/system/frontEnds/BitmapFrontEnd.hx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/flixel/system/frontEnds/BitmapFrontEnd.hx b/flixel/system/frontEnds/BitmapFrontEnd.hx index 4076756083..9e3abe4d0e 100644 --- a/flixel/system/frontEnds/BitmapFrontEnd.hx +++ b/flixel/system/frontEnds/BitmapFrontEnd.hx @@ -140,10 +140,6 @@ class BitmapFrontEnd /** * Loads a bitmap from a file, clones it if necessary and caches it. * @param Graphic Optional FlxGraphics object to create FlxGraphic from. - * @param Frames Optional FlxFramesCollection object to create FlxGraphic from. - * @param Bitmap Optional BitmapData object to create FlxGraphic from. - * @param BitmapClass Optional Class for BitmapData to create FlxGraphic from. - * @param Str Optional String key to use for FlxGraphic instantiation. * @param Unique Ensures that the bitmap data uses a new slot in the cache. * @param Key Force the cache to use a specific Key to index the bitmap. * @return The FlxGraphic we just created. From d3bb3df84fae7a78b05048b4ebdf7dad41c4bbc4 Mon Sep 17 00:00:00 2001 From: George Kurelic Date: Wed, 11 Dec 2024 11:53:58 -0600 Subject: [PATCH 2/2] remove doc tabs, lowercase arg names --- flixel/system/frontEnds/BitmapFrontEnd.hx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/flixel/system/frontEnds/BitmapFrontEnd.hx b/flixel/system/frontEnds/BitmapFrontEnd.hx index 9e3abe4d0e..fd6e85660a 100644 --- a/flixel/system/frontEnds/BitmapFrontEnd.hx +++ b/flixel/system/frontEnds/BitmapFrontEnd.hx @@ -139,24 +139,24 @@ class BitmapFrontEnd /** * Loads a bitmap from a file, clones it if necessary and caches it. - * @param Graphic Optional FlxGraphics object to create FlxGraphic from. - * @param Unique Ensures that the bitmap data uses a new slot in the cache. - * @param Key Force the cache to use a specific Key to index the bitmap. - * @return The FlxGraphic we just created. + * @param graphic Optional FlxGraphics object to create FlxGraphic from. + * @param unique Ensures that the bitmap data uses a new slot in the cache. + * @param key Force the cache to use a specific Key to index the bitmap. + * @return The FlxGraphic we just created. */ - public function add(Graphic:FlxGraphicAsset, Unique:Bool = false, ?Key:String):FlxGraphic + public function add(graphic:FlxGraphicAsset, unique = false, ?key:String):FlxGraphic { - if ((Graphic is FlxGraphic)) + if ((graphic is FlxGraphic)) { - return FlxGraphic.fromGraphic(cast Graphic, Unique, Key); + return FlxGraphic.fromGraphic(cast graphic, unique, key); } - else if ((Graphic is BitmapData)) + else if ((graphic is BitmapData)) { - return FlxGraphic.fromBitmapData(cast Graphic, Unique, Key); + return FlxGraphic.fromBitmapData(cast graphic, unique, key); } // String case - return FlxGraphic.fromAssetKey(Std.string(Graphic), Unique, Key); + return FlxGraphic.fromAssetKey(Std.string(graphic), unique, key); } /**