-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Omega Commit: This makes a lot of things work on 1.20 too, but breaks
sooo much
- Loading branch information
Showing
40 changed files
with
337 additions
and
495 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
File renamed without changes.
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
32 changes: 0 additions & 32 deletions
32
common/src/main/java/io/github/notenoughupdates/moulconfig/annotations/ConfigOverlay.java
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
common/src/main/java/io/github/notenoughupdates/moulconfig/common/ClickType.kt
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,5 @@ | ||
package io.github.notenoughupdates.moulconfig.common | ||
|
||
enum class ClickType { | ||
OPEN_LINK, RUN_COMMAND | ||
} |
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
32 changes: 32 additions & 0 deletions
32
common/src/main/java/io/github/notenoughupdates/moulconfig/gui/ClassResizableTextField.kt
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,32 @@ | ||
package io.github.notenoughupdates.moulconfig.gui | ||
|
||
import io.github.notenoughupdates.moulconfig.gui.component.TextFieldComponent | ||
import io.github.notenoughupdates.moulconfig.observer.GetSetter | ||
|
||
class ClassResizableTextField(text: GetSetter<String>) : TextFieldComponent( | ||
text, | ||
20, | ||
) { | ||
private var width = 20 | ||
|
||
fun setWidth(width: Int) { | ||
this.width = width | ||
} | ||
|
||
override fun getWidth(): Int { | ||
return width | ||
} | ||
|
||
override fun render(context: GuiImmediateContext) { | ||
super.render(context.translated(0, 0, width, 18)) | ||
} | ||
|
||
override fun mouseEvent(mouseEvent: MouseEvent, context: GuiImmediateContext): Boolean { | ||
return super.mouseEvent(mouseEvent, context.translated(0, 0, width, 18)) | ||
} | ||
|
||
override fun keyboardEvent(event: KeyboardEvent, context: GuiImmediateContext): Boolean { | ||
return super.keyboardEvent(event, context.translated(0, 0, width, 18)) | ||
} | ||
|
||
} |
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
File renamed without changes.
Oops, something went wrong.