forked from CleanroomMC/ModularUI
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* show relative pos in debug screen * replace linked lists with fastutil * push everything * fixed padding & margin * clean up & move some classes * fix layout widget margin & padding
- Loading branch information
Showing
33 changed files
with
504 additions
and
149 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...oommc/modularui/widget/sizer/GuiAxis.java → ...om/cleanroommc/modularui/api/GuiAxis.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.cleanroommc.modularui.widget.sizer; | ||
package com.cleanroommc.modularui.api; | ||
|
||
public enum GuiAxis { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/main/java/com/cleanroommc/modularui/api/widget/IGuiElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/cleanroommc/modularui/api/widget/IWidget.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/cleanroommc/modularui/drawable/GuiTextures.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/cleanroommc/modularui/drawable/TabTexture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/cleanroommc/modularui/screen/viewport/GuiContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/com/cleanroommc/modularui/test/ResizerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.cleanroommc.modularui.test; | ||
|
||
import com.cleanroommc.modularui.api.drawable.IKey; | ||
import com.cleanroommc.modularui.screen.ModularPanel; | ||
import com.cleanroommc.modularui.screen.ModularScreen; | ||
import com.cleanroommc.modularui.screen.viewport.GuiContext; | ||
import com.cleanroommc.modularui.widget.ParentWidget; | ||
import com.cleanroommc.modularui.widgets.ButtonWidget; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class ResizerTest extends ModularScreen { | ||
|
||
@Override | ||
public @NotNull ModularPanel buildUI(GuiContext context) { | ||
return ModularPanel.defaultPanel("main") | ||
.coverChildrenWidth() | ||
.height(40) | ||
.child(new ParentWidget<>() | ||
.coverChildren() | ||
.padding(5) | ||
.child(IKey.str("A decently sized string!").asWidget().debugName("label")) | ||
.child(new ButtonWidget<>() | ||
.size(10) | ||
.top(5) | ||
.right(5) | ||
.debugName("button"))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.