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 8653889fea
commit 3c0d44c8a2
7 changed files with 17 additions and 10 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

@ -19,7 +19,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"
@ -43,6 +43,7 @@ repositories {
maven(url = "https://maven.fabricmc.net/")
maven(url = "https://server.bbkr.space/artifactory/libs-snapshot")
maven(url = "https://server.bbkr.space/artifactory/libs-release")
maven(url = "https://maven.extracraftx.com")
}
@ -69,6 +70,9 @@ dependencies {
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-")) {
@ -101,6 +105,7 @@ curseforge {
} else {
requiredDependency("fabric-api")
embeddedLibrary("cotton-client-commands")
embeddedLibrary("programmerartinjector")
}
})
displayName = "[$branch] ViaFabric ${project.version}"

View File

@ -121,8 +121,8 @@ 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"),
64, 64, // Texture size
new Identifier("viafabric:textures/gui/widgets.png"),
256, 256, // Texture size
button -> MinecraftClient.getInstance().openScreen(new ConfirmScreen(
answer -> {
MinecraftClient.getInstance().openScreen(this);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -72,6 +72,7 @@
"fabric-resource-loader-v0": "*",
"fabric-command-api-v1": "*",
"minecraft": ">1.15.2",
"programmerartinjector": "*",
"viaversion": ">3.0.1"
},
"conflicts": {

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB