aboutsummaryrefslogtreecommitdiff
path: root/src/main
AgeCommit message (Collapse)Author
2021-02-02WScrollBar: Increase scrolling speed by 4xJuuxel
2021-01-31Add panel layout insetsJuuxel
2021-01-31Revert "(Hackily) Fix bug with REI overlapping with LibGui screens"Juuxel
This is not needed on 4.0 because of the Insets class. This reverts commit 1a5d29ec
2021-01-31Merge branch 'master' into unstable/4.0Juuxel
# Conflicts: # gradle.properties # src/main/java/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.java
2021-01-31Update Gradle and dependencies3.3.3Juuxel
2021-01-31Switch overrides from Screen.init(MinecraftClient, int, int) to init()Juuxel
2021-01-31Fix renderBackground behaviour being hardcoded to superJuuxel
2020-12-23Fix labeled slider renderingJuuxel
Changed the MatrixStack translation to direct GL translation via RenderSystem. I've already fixed this bug in the 4.0 branch by using MatrixStacks for texture rendering, but that won't work here.
2020-12-21Merge branch 'master' into unstable/4.0Juuxel
# Conflicts: # gradle.properties # src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java
2020-12-21Fix large slot focus border positionJuuxel
2020-12-21(Hackily) Fix bug with REI overlapping with LibGui screens3.3.2Juuxel
2020-12-21Merge branch 'master' into unstable/4.0Juuxel
# Conflicts: # gradle.properties # src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java # src/main/java/io/github/cottonmc/cotton/gui/impl/ScreenNetworkingImpl.java # src/main/java/io/github/cottonmc/cotton/gui/impl/client/LibGuiClient.java # src/main/resources/fabric.mod.json
2020-12-21Fix dedicated server crashing when trying to load ClientPlayerEntity3.3.1Juuxel
Apparently having a client-only-typed field referenced in a lambda body can be dangerous, so I moved the packet registration to the client init class.
2020-12-17Add screen networking API, update to 1.16.43.3.0Juuxel
2020-12-17Add screen networking APIJuuxel
2020-12-17Update to 20w51aJuuxel
2020-12-17Move text hover effect drawing to ScreenDrawingJuuxel
2020-12-17Reorganise importsJuuxel
2020-12-17Create InputResult for specifying whether mouse inputs are processedJuuxel
This means that mouse events are propagated upwards the widget tree until they are processed or the root panel is reached. Code duplication in mouse handling was reduced by moving all logic into a new MouseInputHandler helper class. (I'd obviously have them directly in the screen classes if there was only one.)
2020-12-14Remove ScreenDrawing.maskedRectJuuxel
It's unused and scissors should be used instead.
2020-11-28Migrate all rectangle rendering to use MatrixStacksJuuxel
Still need testing.
2020-11-28Remove the wip graphics apiJuuxel
2020-11-28Add a TODOJuuxel
2020-11-28Remove commented out thonkjang code from WTextFieldJuuxel
2020-11-28Fix code formatJuuxel
2020-11-28Move WTabPanel.Tab to data packageJuuxel
2020-11-27Add untested and currently unused graphics apiJuuxel
2020-11-26Add private constructor to the LibGui classJuuxel
2020-11-26Move modmenu support, nine-patch internals and init code into impl packageJuuxel
Also introduced a new LibGui class that provides API access to the dark mode setting now that the config is unavailable publically.
2020-11-26Switch CottonHud to use static methodsJuuxel
2020-11-26Remove deprecated featuresJuuxel
- WWidget.createPeers (replaced by validate) - WTabPanel.Tab constructor (replaced by builder)
2020-11-26Fix formattingJuuxel
2020-11-26Fix compilation issues, add support for tooltip components (also from data ↵Juuxel
and widgets)
2020-11-26Fix labeled slider painting weirdnessJuuxel
2020-11-26Update to 20w48a, migrate to using TooltipComponent internallyJuuxel
2020-11-07WScrollBar: Allow mousewheel scrolling (#90)3.2.2Sturmlilie
2020-11-07WScrollBar: More intuitive drag scroll threshold (#91)Sturmlilie
Use the movable area (ie. scroll bar length minus handle length) instead of just the scroll bar length. This makes it so the handle actually feels like it's sticking to the cursor while scrolling.
2020-10-24Add checkstyle to check code formatJuuxel
2020-10-24Update Loom to 0.5 and use Jetbrains annotationsJuuxel
2020-10-24Fix HUD widgets not tickingJuuxel
2020-10-18Add Finnish translation3.2.0Juuxel
2020-10-18Update dependencies, bump version to 3.2.0Juuxel
2020-10-18Fix #87Juuxel
2020-10-18Add ItemIcon constructor with ItemJuuxel
2020-10-18Fix #86Juuxel
2020-10-18Add translations for pt_br (#88)cominixo
Co-authored-by: cominixo01 <22600756+cominixo01@users.noreply.github.com>
2020-10-11Add WPlayerInvPanel.createInventoryLabelJuuxel
2020-10-11Add WCardPanel.getCardCountJuuxel
2020-09-24Tabs, card panels and showing/hiding widgets (#74)3.0.0Juuxel
* Add beta API for hiding and showing widget peers, add default implementation for slots * Add WCardPanel * Tab thingies * Improve WPanel.toString * Fix tabs, add dark mode * Add box fillers * Tabs again * Tab go brrr * Revert modmenu changes * Fix card panels not initialising hidden widgets properly * Fix slots not being hidden when they should be * Things * Revert "Add box fillers" This reverts commit 1ea1bfbb * foo * revert more modmenu changes * Add tab titles and switch to a builder model for adding tabs * Document tab builders * Make hidden widgets release their focus * Replace outdated since tags with TAB_VERSION * Fix compilation of WTabPanel * TAB_VERSION => 3.0.0 * Add focusing support to tabs
2020-08-11Update to rc2Juuxel