aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
AgeCommit message (Collapse)Author
2020-06-17Make SyncedGuiDescription constructors take the screen handler typeJuuxel
2020-06-17Add missing since tagsJuuxel
2020-06-14ScreenDrawing: add ability to draw opaque textures (#63)Filip Weiss
2020-06-13implement a WTiledSprite widget (#62)Filip Weiss
* implement a WTiledSprite widget * tiledSprite: new constuctor, cleanup api and comments * Update GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-06-05CottonInventoryController -> SyncedGuiDescriptionJuuxel
2020-06-05CottonInventoryScreen: Add constructor with screen title, documentJuuxel
2020-06-05Document WLabel and WText methods, add missing accessors to WTextJuuxel
2020-06-051.16-pre2Juuxel
- All Text usages apart from screen titles have been replaced with class_5348 - WLabel. and WText. getTextAt has been replaced by getTextStyleAt to match vanilla functionality - CottonInventoryScreen.drawForeground - Prevents vanilla from rendering the player inventory label (already rendered by us and not needed in every GUI) - The title is now rendered using the title coordinate fields like in vanilla
2020-05-22Document PropertyDelegateHolderunstable/2.0Juuxel
2020-05-21Add automatic scroll bar detection for scroll panelsJuuxel
2020-05-21Add focusing support for scroll barsJuuxel
Closes #57.
2020-05-21Expose WAbstractSlider.isIncreasing/DecreasingKey as a public APIJuuxel
2020-05-21Add sub-widget focusing and item slot focusingJuuxel
Widgets can now have inner parts of themselves focused that will be cycled. This is basically the panel focusing system without the pivot.
2020-05-21Add toggle button focusing (#57)Juuxel
2020-05-21Fix player inventories resizing their labels to 18x18Juuxel
2020-05-21Add back WTextField.setSuggestion(String)Juuxel
2020-05-21Make WTextField.suggestion be a proper TextJuuxel
2020-05-21WPlayerInvPanel: title -> label, don't resize other widgets than the default ↵Juuxel
label
2020-05-21Add focus cycling to panelsJuuxel
Closes #37. Closes #54.
2020-05-21Revert "Make WScrollBar extend WAbstractSlider for better dragging"Juuxel
Reverts commit bedf10d4.
2020-05-20Add WWidget.getParentJuuxel
2020-05-20Add focusing support for buttonsJuuxel
2020-05-20Make WLabel properly resizeableJuuxel
Now the height is un-hardcoded with a minimum of 8 pixels.
2020-05-20Remove the ability to use PropertyDelegateHolders on blocksJuuxel
Blocks can't have global state, and creating property delegates based on block states isn't a good idea in my opinion. Property changes would involve state changes, and menus sync the properties automatically so it could cause a lot of pointless client-side updates. Closes #56.
2020-05-20Fix item slots being offset one pixel to the left and upJuuxel
Fixes #53. All slot rendering is also done via BackgroundPainters now and the default background painter is SLOT.
2020-05-20Add Inventory label for player inventory panelsJuuxel
Also allows custom label widgets that can be *any* widget.
2020-05-20Add horizontal axis support for boxes, document scroll widgetsJuuxel
2020-05-20Set the max value of scroll bars be at least the windowJuuxel
2020-05-20Fix panels in scroll panels being the wrong sizeJuuxel
2020-05-20Merge branch 'unstable/2.0' into scroll-panelJuuxel
# Conflicts: # src/main/java/io/github/cottonmc/cotton/gui/CottonInventoryController.java # src/main/java/io/github/cottonmc/cotton/gui/GuiDescription.java # src/main/java/io/github/cottonmc/cotton/gui/style/StyleEntry.java # src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java # src/main/java/io/github/cottonmc/cotton/gui/widget/WPanel.java # src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java # src/main/java/io/github/cottonmc/cotton/gui/widget/WWidget.java
2020-05-19Don't use client-only getStackForRender() in WItemJuuxel
2020-05-16Use logger instead of println in ValidatedSlot, improve ctor param namesJuuxel
2020-05-16Add documentation for WListPanel constructorJuuxel
2020-05-16Remove deprecated ValidatedSlot methodsJuuxel
2020-05-16Rename BackgroundPainter.VANILLA_9PATCH to VANILLA, make it the defaultJuuxel
Also added FunctionalInterface to BackgroundPainter.
2020-05-16Remove unused StyleEntry classJuuxel
2020-05-16WWidget + GuiDescription docs, improve "host is null" logging messageJuuxel
2020-05-16Fix typo in WPanel documentationJuuxel
2020-05-16Remove Lists.newArrayList usagesJuuxel
2020-05-16Remove ltr parameter from WItemSlot's public constructorJuuxel
2020-05-16DocsJuuxel
2020-05-16Merge branch 'master' into unstable/2.0Juuxel
# Conflicts: # gradle.properties # src/main/java/io/github/cottonmc/cotton/gui/client/CottonClientScreen.java # src/main/java/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.java # src/main/java/io/github/cottonmc/cotton/gui/client/ScreenDrawing.java # src/main/java/io/github/cottonmc/cotton/gui/widget/WItem.java # src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
2020-05-16Split item slot inserting and taking into different flagsJuuxel
2020-05-16Delegate WItemSlot peer creation to an overrideable methodJuuxel
This allows users to tweak slot behaviour with custom slot classes :)
2020-05-16Update to 20w20b1.9.1Juuxel
2020-05-09Simplify getTextAtJuuxel
2020-05-09Update to 20w19aJuuxel
2020-05-09Make WLabel.getTextAt and WText.getTextAt publicJuuxel
2020-05-09DocsJuuxel
2020-05-09Split scroll panels and vertical boxesJuuxel