Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed @param descriptions for non existent Arguments L115 (a little bit of outdated info removed) #3312

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions flixel/system/frontEnds/BitmapFrontEnd.hx
Original file line number Diff line number Diff line change
Expand Up @@ -139,28 +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 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.
* @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);
}

/**
Expand Down
Loading