Skip to content

Commit

Permalink
im over here offsetting my d
Browse files Browse the repository at this point in the history
  • Loading branch information
x8c8r committed Jun 28, 2024
1 parent 791b0d9 commit 975d4e0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/CharacterEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,25 @@ class CharacterEditorState extends MusicBeatState
UI_box.addGroup(tab_group_animations);
}

var offsetAnimsDropdown:FlxUIDropDownMenu;

function addOffsetsUI():Void
{
var tab_group_offsets = new FlxUI(null, UI_box);
tab_group_offsets.name = 'Offsets';

offsetAnimsDropdown = new FlxUIDropDownMenu(100, 50, FlxUIDropDownMenu.makeStrIdLabelArray(animsList, true));

var offsetStepperX:FlxUINumericStepper = new FlxUINumericStepper(10,25,1,0,-1000,1000);
var offsetStepperY:FlxUINumericStepper = new FlxUINumericStepper(10,50,1,0,-1000,1000);

var animNameTB:FlxUIInputText = new FlxUIInputText(10,10,180);

tab_group_offsets.add(offsetAnimsDropdown);
tab_group_offsets.add(animNameTB);
tab_group_offsets.add(offsetStepperX);
tab_group_offsets.add(offsetStepperY);

UI_box.addGroup(tab_group_offsets);
}

Expand Down

0 comments on commit 975d4e0

Please sign in to comment.