GithubHelp home page GithubHelp logo

Comments (7)

kristofbolyai avatar kristofbolyai commented on July 22, 2024 1

@P0keDev Oh, then can I assume that you will solve the issues I mentioned above, and not worry about them in the config command PR?

from artemis.

magicus avatar magicus commented on July 22, 2024

Should we unregister the feature as a listener for events when it is turned off?

from artemis.

kristofbolyai avatar kristofbolyai commented on July 22, 2024

Should we unregister the feature as a listener for events when it is turned off?

I think we used to, at least in my head :). Unregistering greatly reduces the overhead of the mod and improves the performance of the event bus.

from artemis.

P0keDev avatar P0keDev commented on July 22, 2024

We still do:

public final void disable() {
        if (!enabled) throw new IllegalStateException("Feature can not be disabled as it already is disabled");

        onDisable();

        enabled = false;

        if (isListener) {
            WynntilsMod.getEventBus().unregister(this);
        }
        for (KeyHolder key : keyMappings) {
            KeyManager.unregisterKeybind(key);
        }
    }

from artemis.

P0keDev avatar P0keDev commented on July 22, 2024

Regarding the userEnabled functionality - I plan on tackling this next

from artemis.

kristofbolyai avatar kristofbolyai commented on July 22, 2024

Then the issue is that it is not getting respected. See ItemHighlightFeature which, I tested, and did not work correctly. Or was it the config command not updating the state? If so, we need something to force a config save and feature state reload, which is missing from #112

from artemis.

P0keDev avatar P0keDev commented on July 22, 2024

fixed in #114

from artemis.

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.