aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
AgeCommit message (Collapse)Author
2020-06-24Fix SyncedGuiDescription.getTitleColor using the client-sided config ↵Juuxel
instance, causing an NPE
2020-06-24Fix WItemSlot.<init> using client-only painters from common codeJuuxel
2020-06-23Add vertical alignment for WTextJuuxel
2020-06-22Add item slot filtersJuuxel
2020-06-22Add SyncedGuiDescription methods to get meaningful inventory and property ↵Juuxel
delegate fallbacks These are useful with simple screen handlers from fabric-screen-handler-api-v1.
2020-06-18Fix title positioning for real this time, add title rendering controlJuuxel
2020-06-18Fix color of player inventory labels not matching the title color of the GUIJuuxel
2020-06-18Fix the screen title being drawn at an incorrect position, add title ↵Juuxel
coordinate support to CottonClientScreen
2020-06-18Fix dirty GL scissors being used when the screen applies no other scissorsJuuxel
2020-06-18Add a global scissor stack for nested scissor support (#59)Juuxel
* Add a global scissor stack for nested scissor support * Fix scissors not having proper dimensions, add check for negatives
2020-06-18Move WWidget.addTooltip to use StringRenderablesJuuxel
2020-06-18Alignment -> HorizontalAlignment, add vertical alignment for labelsJuuxel
2020-06-17Update to pre8Juuxel
2020-06-17Add fullscreen GUIsJuuxel
Closes #66.
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