-
Notifications
You must be signed in to change notification settings - Fork 435
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
Add improved FlxInputText to core Flixel #3219
Commits on Jun 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cce7231 - Browse repository at this point
Copy the full SHA cce7231View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9908757 - Browse repository at this point
Copy the full SHA 9908757View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2922838 - Browse repository at this point
Copy the full SHA 2922838View commit details -
- Regenerate text graphic when `passwordMode` changes
Configuration menu - View commit details
-
Copy full SHA for dd2ff7e - Browse repository at this point
Copy the full SHA dd2ff7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54a650c - Browse repository at this point
Copy the full SHA 54a650cView commit details -
Selection boxes + selected text color
- Add `setSelection()` function - `FlxInputText` variables are now destroyed properly
Configuration menu - View commit details
-
Copy full SHA for 73220a2 - Browse repository at this point
Copy the full SHA 73220a2View commit details
Commits on Jun 20, 2024
-
Implement text selection with mouse & text scrolling
- Added `scrollH`, `scrollV`, `bottomScrollV`, `maxScrollH` & `maxScrollV` variables - Return end of text if character isn't found at position
Configuration menu - View commit details
-
Copy full SHA for 99055c7 - Browse repository at this point
Copy the full SHA 99055c7View commit details
Commits on Jun 21, 2024
-
Fix selection not working correctly when mouse is out of bounds
- Selection boxes are now clipped inside the text bounds - Simplified getting the Y offset of a line
Configuration menu - View commit details
-
Copy full SHA for 8ea7c58 - Browse repository at this point
Copy the full SHA 8ea7c58View commit details -
- Fix scrollV not being able to be modified directly
Configuration menu - View commit details
-
Copy full SHA for 090642b - Browse repository at this point
Copy the full SHA 090642bView commit details -
Implemented double press and dragging
- Selection sprites now just change their color instead of making new graphics - scrollH can now be modified properly as well - Word wrap no longer changes with multiline (multiline only affects adding new lines)
Configuration menu - View commit details
-
Copy full SHA for 20afded - Browse repository at this point
Copy the full SHA 20afdedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9064680 - Browse repository at this point
Copy the full SHA 9064680View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2257a36 - Browse repository at this point
Copy the full SHA 2257a36View commit details
Commits on Jun 22, 2024
-
- Caret is now positioned properly with different alignments - Caret is now clipped inside the text bounds - Caret is now automatically resized when changing `bold`, `font`, `italic`, `size` or `systemFont` variables - Fixed crash when pressing down a key while there isn't a focused input text - Fixed selected text format overwriting the border color - Fixed caret not being visible when text is empty - Fixed selection boxes sometimes not being updated immediately - Added `useSelectedTextFormat` variable - Double press check is now when the mouse is released (same as OpenFL)
Configuration menu - View commit details
-
Copy full SHA for 2e043ab - Browse repository at this point
Copy the full SHA 2e043abView commit details -
- Moved action callback types to an enum abstract
Configuration menu - View commit details
-
Copy full SHA for febc1f3 - Browse repository at this point
Copy the full SHA febc1f3View commit details
Commits on Jun 23, 2024
-
Added background for text input
- Added `focusGained` and `focusLost` callbacks - Fixed selection boxes not being clipped properly when they're compeletely out of bounds
Configuration menu - View commit details
-
Copy full SHA for abbc89b - Browse repository at this point
Copy the full SHA abbc89bView commit details
Commits on Jun 24, 2024
-
- Added bounds check while changing `caretIndex`, `caretWidth`, `fieldBorderThickness` and `maxLength` - FlxInputText is now single-line by default - Fixed text scroll being reset while moving selection with mouse - Caret index now starts at the end of the text if focus is enabled through code - Background now gets regenerated in `regenGraphic` instead of instantly after changing a related variable
Configuration menu - View commit details
-
Copy full SHA for 9e14f27 - Browse repository at this point
Copy the full SHA 9e14f27View commit details -
Added
editable
and selectable` variables- Added change and scroll action callbacks - Made `replaceSelectedText()` public
Configuration menu - View commit details
-
Copy full SHA for 8010c88 - Browse repository at this point
Copy the full SHA 8010c88View commit details
Commits on Jun 25, 2024
-
Flixel hotkeys (volume & debugger) are now disabled while inputting text
- Fixed space not being inputted on HTML5
Configuration menu - View commit details
-
Copy full SHA for 678c129 - Browse repository at this point
Copy the full SHA 678c129View commit details -
- Fixed text going out of bounds when enabling multiline without a field height set - Last click time for double click now resets if the mouse clicked on something else
Configuration menu - View commit details
-
Copy full SHA for 21d996f - Browse repository at this point
Copy the full SHA 21d996fView commit details
Commits on Jun 27, 2024
-
Optimized selection box sprites (only visible lines are accounted for…
… now) - Fixed untypeable characters being added to text input on Flash
Configuration menu - View commit details
-
Copy full SHA for 87da676 - Browse repository at this point
Copy the full SHA 87da676View commit details -
- Fixed text selection and caret positioning on Flash - Copy, cut, paste and select all commands now work on Flash - Fixed horizontal scroll not being set automatically on Flash - Moved to using Flash's `TextEvent.TEXT_INPUT` event (does not dispatch with invalid characters)
Configuration menu - View commit details
-
Copy full SHA for d286bc3 - Browse repository at this point
Copy the full SHA d286bc3View commit details
Commits on Jun 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2dfba26 - Browse repository at this point
Copy the full SHA 2dfba26View commit details -
Configuration menu - View commit details
-
Copy full SHA for d53767f - Browse repository at this point
Copy the full SHA d53767fView commit details
Commits on Jun 30, 2024
-
- Now uses `window.setTextInputRect()` to prevent keyboard overlay from blocking the text field - Fixed pointer position being inaccurate with camera scrolling - Fixed `getCharBoundaries()` not giving the correct Y position
Configuration menu - View commit details
-
Copy full SHA for 262a7a0 - Browse repository at this point
Copy the full SHA 262a7a0View commit details
Commits on Jul 5, 2024
-
- Fixed not being able to add text if the field starts out empty - Fixed the caret being the wrong size if the text field is empty - Fixed the background not being resized when auto size is enabled - Changing `customFilterPattern` now automatically sets `filterMode` to `CUSTOM_FILTER` - Renamed `_lastClickTime` to `_lastPressTime`
Configuration menu - View commit details
-
Copy full SHA for 2aa0176 - Browse repository at this point
Copy the full SHA 2aa0176View commit details
Commits on Jul 13, 2024
-
Add documentation to
multiline
variable- Remove setting `_autoHeight` to false after setting multiline to true as its no longer needed
Configuration menu - View commit details
-
Copy full SHA for 9a8d3cc - Browse repository at this point
Copy the full SHA 9a8d3ccView commit details -
Add
mouseWheelEnabled
variable- Remove unneeded `selectable` comment
Configuration menu - View commit details
-
Copy full SHA for 0d35d34 - Browse repository at this point
Copy the full SHA 0d35d34View commit details
Commits on Jul 14, 2024
-
Replaced
PREVIOUS_LINE
andNEXT_LINE
withWORD_LEFT
and `WORD_R……IGHT` - Ctrl + Up/Down now dispatches `LINE_LEFT` or `LINE_RIGHT` instead of `HOME` or `END` - Renamed `LINE_BEGINNING` and `LINE_END` to `LINE_LEFT` and `LINE_RIGHT`
Configuration menu - View commit details
-
Copy full SHA for a0042fc - Browse repository at this point
Copy the full SHA a0042fcView commit details -
- Clip rect should now work properly - Fixed caret showing up after changing `text` through code - Focus will not be removed due to clicking outside of the text field if it has been granted via code in the same frame - Caret will no longer be visible if the text field isn't editable - Fixed some html5 tests not compiling on CI
Configuration menu - View commit details
-
Copy full SHA for 6eafd06 - Browse repository at this point
Copy the full SHA 6eafd06View commit details
Commits on Jul 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3126a33 - Browse repository at this point
Copy the full SHA 3126a33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b5161a - Browse repository at this point
Copy the full SHA 9b5161aView commit details -
- Fixed crash from recursive calls to `regenBackground()` due to `clipSprite()` - Fixed crash from `pointer.getWorldPosition()` - Fixed background not being updated after changing text format - Moved caret sprite regeneration to `regenGraphic()`
Configuration menu - View commit details
-
Copy full SHA for e9fc095 - Browse repository at this point
Copy the full SHA e9fc095View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8d5277 - Browse repository at this point
Copy the full SHA a8d5277View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14f9731 - Browse repository at this point
Copy the full SHA 14f9731View commit details
Commits on Jul 16, 2024
-
Replace
callback
withonTextChange
andonScrollChange
signals- Replace `focusGained` and `focusLost` with `onFocusChange` signal - Renamed filter mode options and added `CHARS` option - Removed `customFilterPattern` as its now defined in the enum itself
Configuration menu - View commit details
-
Copy full SHA for 4ae5c24 - Browse repository at this point
Copy the full SHA 4ae5c24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47c1966 - Browse repository at this point
Copy the full SHA 47c1966View commit details
Commits on Jul 19, 2024
-
Implement
destroy()
for FlxInputTextManager- Add `unregisterAll()` to FlxInputTextManager
Configuration menu - View commit details
-
Copy full SHA for 070c7f0 - Browse repository at this point
Copy the full SHA 070c7f0View commit details
Commits on Jul 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bb7f700 - Browse repository at this point
Copy the full SHA bb7f700View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c05933 - Browse repository at this point
Copy the full SHA 8c05933View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae1644b - Browse repository at this point
Copy the full SHA ae1644bView commit details
Commits on Jul 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c3b7622 - Browse repository at this point
Copy the full SHA c3b7622View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2046850 - Browse repository at this point
Copy the full SHA 2046850View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7895dc - Browse repository at this point
Copy the full SHA f7895dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6664a93 - Browse repository at this point
Copy the full SHA 6664a93View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3d2597 - Browse repository at this point
Copy the full SHA f3d2597View commit details
Commits on Jul 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2a69a6e - Browse repository at this point
Copy the full SHA 2a69a6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for af4de4a - Browse repository at this point
Copy the full SHA af4de4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef09deb - Browse repository at this point
Copy the full SHA ef09debView commit details -
Configuration menu - View commit details
-
Copy full SHA for fdf3f1d - Browse repository at this point
Copy the full SHA fdf3f1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 949f3bd - Browse repository at this point
Copy the full SHA 949f3bdView commit details