Age | Commit message (Collapse) | Author |
|
|
|
|
|
* Allow WGridPanel to have gaps between widgets.
* Various formatting changes
|
|
* added iconInsets for WButton
* fixed some pull request comments
* minor code cleanup
* more code cleanup
* changed intelliJ config to be able to save lines with whitespace
* Update src/main/java/io/github/cottonmc/cotton/gui/widget/WButton.java
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
|
|
|
|
|
|
|
|
Closes #128.
|
|
|
|
|
|
- Now consistent between CottonClientScreen and
CottonInventoryScreen
- Mouse methods always call super and return true
- Keyboard methods call super if there's no focus
- keyPressed calls super and does nothing else for Esc and Tab
(this was the old behaviour in CIS, now also in CCS)
- Fixed a bug where focus was released when clicking on focused
widgets because the mouse coordinates weren't offset correctly
- Fixed CIS never releasing focus
- Fixed focus checking not using isWithinBounds
- Removed pointless null checks
|
|
|
|
Fixes #171. Also removed the test text field.
|
|
|
|
|
|
|
|
|
|
Fixes #162.
|
|
- API change: WItem now uses TagKey instead of Tag.
|
|
- Removed WLabel(String) and WLabel(String, int)
- Removed WTextField.setSuggestion(String)
- Fixed config screen not returning to previous screen
|
|
|
|
* Corrected calculation of the current visible elements in the list panel.
The change fixes the problem that the last element/elements in the list are not shown because the margin spaces weren't properly calculated in the visibleCells variable.
Removed unnecessary for-loop run-trough.
* Should add one margin to layoutHeight because the dividing element also has margin
Co-authored-by: dani162 <{ID}+{username}@users.noreply.github.com>
|
|
Fixes #154. Also documented some WTextField methods.
|
|
|
|
|
|
|
|
Closes #147.
|
|
|
|
|
|
|
|
|
|
|
|
Fixes #145.
|
|
|
|
|
|
# Conflicts:
# gradle.properties
|
|
|
|
* Refactor rendering of WTextField and add text scrolling
* Make caret position movable by clicks
Also deprecated the public getCaretPos method since it was public.
* Rework keyboard interactions with WTextField
Introduce CTRL+(Left/Right) for deletes, selects and cursor moves.
* Revert breaking API changes in WTextField
|
|
|
|
* Updated Jankson-Fabric
|
|
|
|
|
|
|
|
Also improved docs and added WWidget.canHover.
|
|
|
|
|
|
* Add focused narration support
* yes!
* More work on hovering and observables
* Fix WWidget.setHovered javadoc
* Document ObservableProperty.add/removeListener
* Add observable views
* Fix ObservableView.ChangeListener javadoc
* More JD!
* Add taglet for listing observable properties
Overkill? Yep. Still fancy? Absolutely!
* Fix narration element indices and more JD tricks
* Add slot hovering narration
* WItemSlot.getExtraNarrationMessage -> getNarrationName, make public API
* Remove the binding functionality of observable properties
This is required for having proper change listeners.
* Add ObservableView.hasValue
* Add some utility methods to ObservableView
* Clarify ObservableView.ChangeListener parameters
* Remove properties tag from WButton javadoc
|
|
|
|
displays (#134)
Fixes #114
|
|
|