Elegantia是Minecraft及其他应用程序的GUI库。它被用于Araraki Leo的模组。目前,该库处于早期开发阶段,因此尚未准备广泛使用(尚未开放访问)。
目前,该库包含以下工具:
- 用于处理gif图像的工具
- 用于创建配置并将其呈现为图形界面的工具,该界面自动应用于模组菜单
- 用于渲染小部件并将它们定位在空间中,既可以相对于屏幕,也可以相对于其他小部件
- 用于从Modrinth检查模组更新的工具
- 高级数学接口表示(如Rect,Vector等)
- 一小部分自定义小部件列表,其中可以突出显示CompositeWidget,它允许您轻松地从其他小部件(包括原版小部件)创建自定义复合小部件
入门
以下是适用于Minecraft版本从`1.20.2`到`1.20.4`的版本。对于Minecraft版本从`1.20`到`1.20.1`,请将`1.20.4`替换为`1.20.1`。
build.gradle
groovy
repositories {
maven {
url = "https://api.modrinth.com/maven"
}
}
dependencies {
modImplementation "maven.modrinth:elegantia:0.0.1-beta+fabric-1.20.4"
}
build.gradle.kts
groovy
repositories {
maven("https://api.modrinth.com/maven")
}
dependencies {
modImplementation("maven.modrinth", "elegantia", "0.0.1-beta+fabric-1.20.4")
}
截图:
Elegantia 0.0.1+1.21
- refactor `AbstractScreen.java`
- refactor widgets
- refactor drawables
- refactor `WidgetBuilder.java`
- refactor math interfaces and related
- refactor `ModInfo.java` and related
- refactor `ModrinthUpdateChecker.java` and related
- new drawables:
- `TextureDrawable.java`
- `ElasticTextureDrawable.java`
- `TexturedProgressDrawable.java`
- custom GuiGraphics interface `ElGuiGraphics.java`
- new drawers:
- `CircleDrawer.java`
- `TextureDrawer.java`
- new `AbstractContainerScreen.java`
- new Size2i interfaces
- new utils:
- `InitOnGet.java`
- `Random.java`
- `RegistriesUtil.java`
- new minecraft world interfaces:
- `AbstractContainerBlockEntity.java`
- `ContainerAutoData.java`
- `SimpleContainerMenu.java`
- `MultyOutputRecipe.java`
- `Recipes.java`
- `FuelRegistry.java`
- `ItemRandomRange.java`
- `ElegantedSlot.java`
- `SlotController.java`
- `FluidSlotController.java`
[Full Changelog 0.0.1-beta...0.0.1](https://github.com/aratakileo/elegantia/compare/0.0.1-beta...0.0.1)
Elegantia 0.0.1-beta+1.20.2-1.20.4
* Fix game crash when Sinytra Connector is installed by [@aratakileo](https://github.com/aratakileo) in [#2](https://github.com/aratakileo/elegantia/pull/2) ([#1](https://github.com/aratakileo/elegantia/issues/1))
* The interface for adding built-in resource packs by [@aratakileo](https://github.com/aratakileo) in [#3](https://github.com/aratakileo/elegantia/pull/3)
* Game resource reload listener (by analogy to fabric's `ResourceManagerHelper.get(...).registerReloadListener(...)`)
* Drawable interfaces for GUI (by analogy to Android's drawables)
* RectDrawer class instead of rect render methods of GuiGraphicsUtil (+ advanced gradient rendering settings)
* Extension of the information provided by the ModInfo interface
* Fix game crash that occurs when ModrinthUpdateChecker did not find the specified project on modrinth
* Added more docs to the controversial parts of the code
[[Full Changelog 0.0.1-alpha...0.0.1-beta]](https://github.com/aratakileo/elegantia/compare/0.0.1-alpha...0.0.1-beta)
Elegantia 0.0.1-beta+1.20-1.20.1
* Fix game crash when Sinytra Connector is installed by [@aratakileo](https://github.com/aratakileo) in [#2](https://github.com/aratakileo/elegantia/pull/2) ([#1](https://github.com/aratakileo/elegantia/issues/1))
* The interface for adding built-in resource packs by [@aratakileo](https://github.com/aratakileo) in [#3](https://github.com/aratakileo/elegantia/pull/3)
* Game resource reload listener (by analogy to fabric's `ResourceManagerHelper.get(...).registerReloadListener(...)`)
* Drawable interfaces for GUI (by analogy to Android's drawables)
* RectDrawer class instead of rect render methods of GuiGraphicsUtil (+ advanced gradient rendering settings)
* Extension of the information provided by the ModInfo interface
* Fix game crash that occurs when ModrinthUpdateChecker did not find the specified project on modrinth
* Added more docs to the controversial parts of the code
[[Full Changelog 0.0.1-alpha...0.0.1-beta]](https://github.com/aratakileo/elegantia/compare/0.0.1-alpha...0.0.1-beta)
收录