Skip to content

Commit

Permalink
Update FlxUIDropDownMenuCustom.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jun 6, 2024
1 parent 652fdef commit f40a757
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/objects/FlxUIDropDownMenuCustom.hx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class FlxUIDropDownMenuCustom extends FlxUIGroup implements IFlxUIWidget impleme

public var callback:String->Void;

// private var _ui_control_callback:Bool->FlxUIDropDownMenu->Void;
// private var _ui_control_callback:Bool->FlxUIDropDownMenuCustom->Void;

/**
* This creates a new dropdown menu.
Expand All @@ -165,7 +165,7 @@ class FlxUIDropDownMenuCustom extends FlxUIGroup implements IFlxUIWidget impleme
* @param UIControlCallback Used internally by FlxUI
*/
public function new(X:Float = 0, Y:Float = 0, DataList:Array<StrNameLabel>, ?Callback:String->Void, ?Header:FlxUIDropDownHeader,
?DropPanel:FlxUI9SliceSprite, ?ButtonList:Array<FlxUIButton>, ?UIControlCallback:Bool->FlxUIDropDownMenu->Void)
?DropPanel:FlxUI9SliceSprite, ?ButtonList:Array<FlxUIButton>, ?UIControlCallback:Bool->FlxUIDropDownMenuCustom->Void)
{
super(X, Y);
callback = Callback;
Expand Down Expand Up @@ -382,7 +382,7 @@ class FlxUIDropDownMenuCustom extends FlxUIGroup implements IFlxUIWidget impleme
return t;
}

/*public function setUIControlCallback(UIControlCallback:Bool->FlxUIDropDownMenu->Void):Void {
/*public function setUIControlCallback(UIControlCallback:Bool->FlxUIDropDownMenuCustom->Void):Void {
_ui_control_callback = UIControlCallback;
}*/
public function changeLabelByIndex(i:Int, NewLabel:String):Void
Expand Down Expand Up @@ -510,7 +510,7 @@ class FlxUIDropDownMenuCustom extends FlxUIGroup implements IFlxUIWidget impleme
*
* @param StringArray The strings to use as data - used for both label and string ID.
* @param UseIndexID Whether to use the integer index of the current string as ID.
* @return The StrIDLabel array ready to be used in FlxUIDropDownMenu's constructor
* @return The StrIDLabel array ready to be used in FlxUIDropDownMenuCustom's constructor
*/
public static function makeStrIdLabelArray(StringArray:Array<String>, UseIndexID:Bool = false):Array<StrNameLabel>
{
Expand All @@ -529,7 +529,7 @@ class FlxUIDropDownMenuCustom extends FlxUIGroup implements IFlxUIWidget impleme
}

/**
* Header for a FlxUIDropDownMenu
* Header for a FlxUIDropDownMenuCustom
*/
class FlxUIDropDownHeader extends FlxUIGroup
{
Expand All @@ -549,7 +549,7 @@ class FlxUIDropDownHeader extends FlxUIGroup
public var button:FlxUISpriteButton;

/**
* Creates a new dropdown header to be used in a FlxUIDropDownMenu.
* Creates a new dropdown header to be used in a FlxUIDropDownMenuCustom.
*
* @param Width Width of the dropdown - only relevant when no back sprite was specified
* @param Back Optional sprite to be placed in the background
Expand Down

0 comments on commit f40a757

Please sign in to comment.