-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to owo-ui, fix batch argument type suggestions being broken, …
…add area selection hud, improve render task selection screen
- Loading branch information
Showing
30 changed files
with
752 additions
and
648 deletions.
There are no files selected for viewing
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
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
17 changes: 2 additions & 15 deletions
17
src/main/java/com/glisco/isometricrenders/property/PropertyBundle.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,25 +1,12 @@ | ||
package com.glisco.isometricrenders.property; | ||
|
||
import com.glisco.isometricrenders.render.Renderable; | ||
import com.glisco.isometricrenders.util.Translate; | ||
import com.glisco.isometricrenders.widget.PropertySliderWidget; | ||
import com.glisco.isometricrenders.widget.PropertyTextField; | ||
import com.glisco.isometricrenders.widget.WidgetColumnBuilder; | ||
import io.wispforest.owo.ui.container.FlowLayout; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
|
||
public interface PropertyBundle { | ||
|
||
void buildGuiControls(Renderable<?> renderable, WidgetColumnBuilder builder); | ||
void buildGuiControls(Renderable<?> renderable, FlowLayout container); | ||
|
||
void applyToViewMatrix(MatrixStack modelViewStack); | ||
|
||
default void appendIntControls(WidgetColumnBuilder builder, IntProperty property, String name, int step) { | ||
final var textField = new PropertyTextField(10, builder.currentY(), property); | ||
builder.add(textField, textField.getHeight()); | ||
final var slider = new PropertySliderWidget(50, builder.currentY(), builder.width() - 55, Translate.gui(name), step, property); | ||
builder.add(slider, slider.getHeight()); | ||
|
||
builder.nextRow(); | ||
} | ||
|
||
} |
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
Oops, something went wrong.