Giter VIP home page Giter VIP logo

Comments (7)

lonefelidae16 avatar lonefelidae16 commented on August 14, 2024

Have you tried adding yacl3.gui.YACLScreen into Disable panorama on screens? The namespace of YetAnotherConfigLib seems to have changed since v3.
2023-07-27_08 18 17

There is no modset information provided and I don’t have a mod that depends on YACL, so I cannot confirm about this issue.

from bedrockify.

SAJewers avatar SAJewers commented on August 14, 2024

Nope, that doesn't work. No change.

from bedrockify.

lonefelidae16 avatar lonefelidae16 commented on August 14, 2024

Okay I found a solution. This feature have been applied to all tab screens added since 1.20 and a bit of conditions need to be added.

thanks for your time, I’ll create of this fix.

from bedrockify.

jbrown1597 avatar jbrown1597 commented on August 14, 2024

@lonefelidae16 How can I locate the "class name" of mods so I may add them to my "panorama disabled list" & fix broken menus?

Future request: Panorama for loading screen & main menu only, not forced on all possible screens.

THANK YOU FOR ALL YOUR HARD WORK <3

from bedrockify.

lonefelidae16 avatar lonefelidae16 commented on August 14, 2024

How can I locate the "class name" of mods so I may add them to my "panorama disabled list" & fix broken menus?

There are two things.

  • Open your Jar as a zip and locate .class file. Java code is compiled to Class file and zipped as Deflate, so you can find the directory for that namespace.
    BedrockIfy for instance, me -> juancarloscp52 -> bedrockify -> Bedrockify.class

or

  • Decompile it on your IDE. For example on IntelliJ IDEA, click “File” on toolbar -> open “Project Structure” subwindow (Ctrl+Alt+Shift+S) -> select “Project Settings: Libraries” on the left pane -> add “Java” library -> locate your Jar -> now is placed in “External Libraries” on your project.

Future request: Panorama for loading screen & main menu only, not forced on all possible screens.

Sorry, but it’s out of this issue, please raise a new one. however I probably can’t solve it right away - will increase setting options.

from bedrockify.

TheChilliPL avatar TheChilliPL commented on August 14, 2024

Any way to have Minecraft e.g. log the current screen name to the console in order to quickly and easily disable them?

from bedrockify.

lonefelidae16 avatar lonefelidae16 commented on August 14, 2024

Any way to have Minecraft e.g. log the current screen name to the console in order to quickly and easily disable them?

Yeah there is. I think adding Mixin to the constructor method of the Screen class would be a good idea, but I’m not sure if this way is easy...

public class YourModClass {
    public static final Logger LOGGER = LoggerFactory.getLogger(YourModClass.class);

    // Works on 1.18.2 or later.
    // public static final Logger LOGGER = LogUtils.getLogger();
}
@Mixin(Screen.class)
public class ScreenMixin {

    @Inject(method = "<init>(Lnet/minecraft/text/Text;)V", at = @At("RETURN"))
    private void putScreenClassName(Text text, CallbackInfo ci) {
        // Get the current Screen class.
        Screen $this = Screen.class.cast(this);
        // Objective code.
        YourModClass.LOGGER.info("[ScreenLogger] ClassName = '{}'", $this.getClass().getCanonicalName());
    }
}

Note that this code generates the line each time when you open new screens, such as opening select world screen, opening inventory, opening options screen, etc.

from bedrockify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.