Custom element ordering?

  • TheAwesomeMutant
    12th Feb 2017 Member 0 Permalink

    Is there a way to choose the order in which elements appear in the menu?

  • Mrprocom
    12th Feb 2017 Moderator 0 Permalink
    @TheAwesomeMutant (View Post)
    Nope, but you can add elements to the favourites category (the one with a bookmark icon) in any order you like. Hold Ctrl+Shift and then left click on an element to add it to the favourites category, hold Ctrl+Shift and then right click on an element to remove it from the favourites category.
  • TheAwesomeMutant
    12th Feb 2017 Member 0 Permalink

    @Mrprocom (View Post)

    Are there any workarounds?

  • Mrprocom
    12th Feb 2017 Moderator 0 Permalink
    @TheAwesomeMutant (View Post)
    As far as I know, no. Elements are ordered by their ID, that's why new elements get placed at the very end of their categories. It might look odd, but you will get used to it at some point.
  • TheAwesomeMutant
    12th Feb 2017 Member 0 Permalink

    @Mrprocom (View Post)

    Is it possible to change default element ids? Would that work the way I think, or just break everything.

  • jacob1
    12th Feb 2017 Developer 0 Permalink
    You can't change default IDs. I had this same problem even when making a C++ mod, there just is no way to change the order
  • TheAwesomeMutant
    12th Feb 2017 Member 0 Permalink

    @Mrprocom (View Post)

    @Jacob1 (View Post)

    Or is it possible to have an element instantly change into another when on screen? If so, is there a way to change an element right before uploading/overwriting a save?

    Because then I could simply remove the existing element from the menu and create a new one with the exact same properties.

    Edited once by TheAwesomeMutant. Last: 12th Feb 2017
  • jacob1
    12th Feb 2017 Developer 0 Permalink
    You can edit default elements with elem.property just like you can with custom elements. You could override a default element if you really care about ordering ... but I don't think it's very important.
  • TheAwesomeMutant
    12th Feb 2017 Member 0 Permalink

    @jacob1 (View Post)

    Again, is it possible to to have an element instantly change into another when on screen? And again, is there a way to change an element right before uploading/overwriting a save?

  • jacob1
    12th Feb 2017 Developer 0 Permalink
    @TheAwesomeMutant (View Post)
    You could have an update function for the element which changes it into another, should be simple.

    It's much more complicated to do what you want before uploading a save. There is no event you can watch for for clicking that button. You may have to do a very manual process where you detect a click in the exact position of the button and change the element then. It looks like the button takes effect on mouseup, i'm not sure if you can read the mouseup event before it goes into the save upload interface. If you can the user won't even notice that you changed the element. Otherwise (if there is no time to change the element before it switches into the new interface) you might just have to detect mousedown and change it then, it would be noticeable to the user.

    Why do you want to do this anyway? I'm a bit interested in what you are planning ...