new via button, fixes #42 programmer's art

side effect: older versions will have the newest design
This commit is contained in:
creeper123123321 2020-08-05 10:11:51 -03:00
parent 8a0a105817
commit 6652f78c71
5 changed files with 16 additions and 11 deletions

View File

@ -20,10 +20,11 @@ Note: ViaVersion is designed for Vanilla Minecraft servers. It probably will not
| Dependency | Download |
| --------------------------------- | ------------------------------------------------------------------- |
| ViaVersion 3.0.2+ | https://ci.viaversion.com/job/ViaVersion/ |
| Fabric Textures v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| Fabric Resource Loader v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| Fabric Command API v1 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| (Bundled) Cotton Client Commands | https://www.curseforge.com/minecraft/mc-mods/cotton-client-commands |
| Fabric Command API v1 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| Fabric Resource Loader v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| Fabric Textures v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| (Bundled) ProgrammerArtInjector | https://www.curseforge.com/minecraft/mc-mods/programmerartinjector |
**1.8.9 Dependencies:**
@ -86,11 +87,11 @@ Adding [ViaBackwards](https://viaversion.com/backwards) (and optionally [ViaRewi
**Does it work with multiconnect at same time on client?:**
- Yes, ViaFabric can be used with multiconnect. ViaFabric will set multiconnect version auto detector to the supported version which is closest to client-side version.
- Yes, ViaFabric can be used with multiconnect. ViaFabric will send to their version auto detector their closest supported version.
- Example of setups:
- (1.8 server) <-> (disabled ViaFabric) <-> (auto detected 1.8 server - multiconnect on Minecraft) = doesn't work because multiconnect doesn't support it
- (1.8 server) <-> (forced 1.8 - ViaFabric in client - suggests 1.10) <-> (detected 1.10 server - multiconnect on Minecraft) = works, with ViaVersion translating 1.8 -> 1.10 and multiconnect accepting 1.10
- (1.8 server) <-> (forced 1.8 - ViaFabric in client - detected 1.12.2 client) <-> (forced 1.12.2 server - multiconnect on Minecraft) = works with ViaVersion translating 1.8 -> 1.12.2 and multiconnect accepting 1.12.2
- (1.8 server) <-> (disabled ViaFabric) <-> (auto detected 1.8 server - multiconnect) = doesn't work because multiconnect doesn't support it
- (1.8 server) <-> (forced 1.8 - ViaFabric - suggests 1.10) <-> (detected 1.10 server - multiconnect) = works, ViaVersion translating 1.8 -> 1.10 and multiconnect accepting 1.10
- (1.8 server) <-> (forced 1.8 - ViaFabric - detected 1.12.2 client) <-> (forced 1.12.2 server - multiconnect) = works, ViaVersion translating 1.8 -> 1.12.2 and multiconnect accepting 1.12.2
## WARNING
**I cannot guarantee that this mod is allowed on every (or even any) server. This mod may cause problems with anti cheat plugins. USE AT OWN RISK**

View File

@ -20,7 +20,7 @@ val branch = if (!travisBranch.isNullOrBlank()) travisBranch else try {
"unknown"
}
version = "0.2.5-SNAPSHOT+" + try {
version = "0.2.6-SNAPSHOT+" + try {
gitVersion() + "-" + branch
} catch (e: Exception) {
"unknown"
@ -71,8 +71,11 @@ dependencies {
modImplementation("net.fabricmc.fabric-api:fabric-api:0.2.7-1.8.9")
//modImplementation("io.github.cottonmc:cotton-client-commands:1.0.0+1.15.2")
//include("io.github.cottonmc:cotton-client-commands:1.0.0+1.15.2")
//modImplementation("io.github.cottonmc:cotton-client-commands:1.0.1+1.16-rc1")
//include("io.github.cottonmc:cotton-client-commands:1.0.1+1.16-rc1")
//modImplementation("com.extracraftx.minecraft:ProgrammerArtInjector:1.2.0")
//include("com.extracraftx.minecraft:ProgrammerArtInjector:1.2.0")
}
if (!System.getenv()["curse_api_key"].isNullOrBlank() && branch.startsWith("mc-")) {
@ -105,6 +108,7 @@ curseforge {
} else {
requiredDependency("fabric-api")
embeddedLibrary("cotton-client-commands")
embeddedLibrary("programmerartinjector")
}
})
displayName = "[$branch] ViaFabric ${project.version}"

View File

@ -101,7 +101,7 @@ public abstract class MixinMultiplayerScreen extends Screen {
40, 20, // Size
0, 0, // Start pos of texture
20, // v Hover offset
new Identifier("viafabric:textures/gui/via_button.png"),
new Identifier("viafabric:textures/gui/widgets.png"),
256, 256, // Texture size (1.8 is 256x256)
button -> MinecraftClient.getInstance().openScreen(new ConfirmScreen(
(answer, id) -> {

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB