Nexus tabs and windows

QueanQuean Member Posts: 87 ✭✭✭
I can't find the information on the Nexus wiki, perhaps someone can just give me a quick answer... Is it possible to add new tabs in the Nexus windows, that can be customised to display things like Fury stance?
Starmourn Launch Countdown:
https://countingdownto.com/?c=2341194

Answers

  • MineiMinei Member Posts: 49 ✭✭✭
    Answer ✓
    UI Manipulation
    • client.register_custom_tab(tab,container_id) - Make a custom UI tab. Please note, this is unsupported.
    Maybe this helps? It's on the functions page. But that being unsupported doesn't sound good :(
  • QueanQuean Member Posts: 87 ✭✭✭
    Thanks, this sounds promising. Now I only need to figure out how to get the proper container ID, but this should be easy :-) I'll have a look at it once I'm home (in a couple of hours) and will post the result, in case somebody else is interested in tinkering with this.
    Starmourn Launch Countdown:
    https://countingdownto.com/?c=2341194
  • MontemMontem Member Posts: 89 ✭✭
    Quean said:
    Thanks, this sounds promising. Now I only need to figure out how to get the proper container ID, but this should be easy :-) I'll have a look at it once I'm home (in a couple of hours) and will post the result, in case somebody else is interested in tinkering with this.
    Please do report what you find. I'd like to use this as well. 
    Download Montem System for Nexus Client - https://pastebin.com/MBEn7S0u
  • QueanQuean Member Posts: 87 ✭✭✭
    edited December 2018
    I did some testing and digging in the Nexus code. The bottom left panel seems to be marked as "container_2". However, it seems that simply running "client.register_custom_tab("Cool Tab",2)" or "client.register_custom_tab("Cool Tab","container_2")" does not work at all. I'm still digging, though.

    EDIT: Curious thing... The Nexus code has a function (line 310 in my downloaded file) that says:

    // Add custom elements if there are any

    ... followed by a function that looks like this:

    for (var i = 0; i < client.custom_elements.length; ++i)
                client_elements.push(client.custom_elements[i]);

    It would seem that there is such an option, but I cannot, at least now, figure out how to do this.
    Starmourn Launch Countdown:
    https://countingdownto.com/?c=2341194
Sign In or Register to comment.