aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2023-05-27DarkModeTestGui: Fix code styleJuuz
2023-05-27Add GUI- and widget-level dark mode togglesJuuz
2023-05-14Tatar translation! (#195)Amirhan-Taipovjan-Greatest-I
2023-05-14Move test mod to root projectJuuz
2023-05-14Move javadoc taglet classes to root projectJuuz
2023-05-14Fix #196Juuz
2023-04-24Update zh_cn (#194)Enaium
* Update zh_cn.json * Update zh_cn.json
2023-04-10Add item-based subclass of SyncedGuiDescriptionJuuz
2023-04-10Add dev-only crash for when screens are opened in Item.useJuuz
(Including useOnBlock and useOnEntity.) The method often causes threading issues and other crashes, and a better solution is to follow what Minecraft itself does and use a packet or a screen handler.
2023-03-19Add simple focus model implementationJuuz
2023-03-19Rename FocusHandler -> FocusModel, improve docsJuuz
Closes #186.
2023-03-18Update Checkstyle and fix code formatJuuz
2023-03-18Remove unnecessary overrideJuuz
2023-03-18Add missing since tags, remove outdated TODOJuuz
2023-03-18Update to 1.19.4, add new focus APIJuuz
2023-03-18Improve tiled NinePatchBackgroundPainter performance (#185)Juuz
* Improve tiled NinePatchBackgroundPainter performance * Use Fabric API's CoreShaderRegistrationCallback * Switch to LibNinePatch release build * Rename libgui:tiled -> libgui:tiled_rectangle * Fix grammar
2023-02-08Fix WBox Horizontal Offset (#184)BlazingTwist
2023-02-02Fix #182Juuz
2023-02-02Remove commented-out code in ScreenDrawingJuuz
2023-01-07Fix WItem display position offset (#181)A_Peng215
2022-12-11Update to Minecraft 1.19.3, part 2Juuz
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-19Bump Minecraft dependencyJuuz
2022-05-19Update to 1.19-pre1Juuz
- API change: WItem now uses TagKey instead of Tag.
2022-04-25Update Minecraft dependency in fabric.mod.jsonJuuz
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-04-13Update to 22w14a (#157)frqnny
2022-03-22Only depend on specific Fabric API modulesJuuz
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