aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
AgeCommit message (Collapse)Author
2022-12-11Update to Minecraft 1.19.3Juuz
2022-12-11Add missing since tags in javadocJuuz
2022-10-22Allow WGridPanel to have gaps between widgets. (#170)Roman / Linnea Gräf
* Allow WGridPanel to have gaps between widgets. * Various formatting changes
2022-10-13IconInsets for WButton Icon (#175)Alexander Haas
* 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>
2022-09-14WTabPanel: Add method for accessing tab countJuuz
2022-09-14WTabPanel: Add methods to access and change the current tabJuuz
2022-09-12Fix Checkstyle errorsJuuz
2022-09-12Make item slots paint a texture instead of coloured rectanglesJuuz
Closes #128.
2022-09-06Fix unfocusing item slots not resetting the focused slot to -1Juuz
2022-09-06Use WWidget.isWithinBounds in WPanel.hitJuuz
2022-09-06Rework screen input methodsJuuz
- 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
2022-09-06Stabilise observable propertiesJuuz
2022-08-16Improve look of the config screenJuuz
Fixes #171. Also removed the test text field.
2022-08-16Make WWidget.setHost apply to children and null-safeJuuz
2022-08-16Fix #169Juuz
2022-06-16Update to 1.19 and bump version to 6.0.0Juuz
2022-05-29Fix tab panels looking awful and brokenJuuxel
2022-05-23Fix WBox always resizing children and calling wrong canResizeJuuz
Fixes #162.
2022-05-19Update to 1.19-pre1Juuz
- API change: WItem now uses TagKey instead of Tag.
2022-04-25Update to 22w16bJuuz
- Removed WLabel(String) and WLabel(String, int) - Removed WTextField.setSuggestion(String) - Fixed config screen not returning to previous screen
2022-03-20Updated to 1.18.2 (#155)Greg C
2022-02-27Corrected calculation of the current visible elements in the list panel. (#152)dani162
* 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>
2022-02-27Fix IOOBE when WTextField.scrollOffset was outside the stringJuuz
Fixes #154. Also documented some WTextField methods.
2022-01-16Bump version to 5.3.0Juuz
2022-01-16Added getter for WListPanel's scrollbar (#150)Luligabi1
2022-01-16Clarify WPanel.streamChildren, remove ApiStatus.ExperimentalJuuz
2021-12-24Add CottonInventoryScreen ctor overloads with PlayerInventoryJuuz
Closes #147.
2021-12-22Keep bin compat in SyncedGuiDescriptionJuuz
2021-12-22Improve WWidget.validate javadocJuuz
2021-12-22Remove possible null values for ValidatedSlot.filterJuuz
2021-12-22Move custom quick move implementation from onSlotClick to transferSlotJuuz
2021-12-06Fix javadoc formatJuuz
2021-12-06Add WAbstractSlider.updateValueCoordRatios, bump to 5.1.0Juuz
Fixes #145.
2021-12-06Bump version to 5.0.0, build on 1.18Juuz
2021-12-06Remove deprecationsJuuz
2021-12-06Merge branch '1.17'Juuz
# Conflicts: # gradle.properties
2021-12-06Clean up WTextFieldJuuz
2021-11-16Improve WTextField (#140)Roman / Nea
* 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
2021-11-16Make deprecated WTabPanel.Tab constructor privateJuuz
2021-11-16* Updated to 1.18 (#142)biom4st3r
* Updated Jankson-Fabric
2021-11-16Fix title alignments when titleX is not 0Juuz
2021-09-12Fix #137, bump version to 4.2.14.2.1Juuz
2021-09-11Javadoc hotfix4.2.0Juuz
2021-09-11Make hovering take WWidget.isWithinBounds into accountJuuz
Also improved docs and added WWidget.canHover.
2021-09-11Refactor observable propertiesJuuz
2021-09-11Use vanilla translation key for "hotbar"Juuz
2021-09-11Add observable properties and narration support (#136)Juuxel
* 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
2021-08-18WWidget.onShown and onHidden are no longer betaJuuz
2021-08-18Fix the bottom coordinate of scissor rectangles being incorrect on high DPI ↵haykam821
displays (#134) Fixes #114
2021-08-10Fix #130, bump version to 4.1.64.1.6Juuz