Results 1 to 4 of 4

Thread: SRL-6 for 1920x1080 NXT Re-sizeable

  1. #1
    Join Date
    Oct 2007
    Posts
    187
    Mentioned
    7 Post(s)
    Quoted
    61 Post(s)

    Default SRL-6 for 1920x1080 NXT Re-sizeable

    Per @yourule97's request, I'm providing public access to my updated re-work of the SRL-6 include for use with the NXT client on 1920x1080 resolution in re-sizeable mode. Hopefully, as time passes, we will update the include to find all interface elements dynamically, which would provide support for more resolutions.

    If you want to have drawing for the NXT client, I suggest using NAS - https://villavu.com/forum/showthread.php?t=117578
    I've included a small procedure you can use to help place the interface elements in the correct places (since they aren't dynamically assigned)

    Simba Code:
    procedure initNXTui();
    begin
      MainScreen.__setup();
      Lobby.__init();
      GameTabs.__init();
      TabBackpack.__init();
      ChatBox.__setup();
      Minimap.__init();
      ActionBar.__init();
    end;

    procedure drawUI();
    begin
      NAS.Drawing.drawBox(mainScreen.getBounds(), false, clWhite);
      NAS.Drawing.drawBox(miniMap.getBounds(), false, clWhite);
      //No need to draw actiionbar as it's found dynamically. Thanks  @Thomas
      //NAS.Drawing.drawBox(actionBar.getBounds(), false, clWhite);
      //NAS.Drawing.drawBoxes(actionBar.__slots, false, clWhite);
      NAS.Drawing.drawBox(tabBackpack.getBounds(), false, clWhite);
      NAS.Drawing.drawBox(ChatBox.getBounds(), false, clWhite);
      NAS.Drawing.drawBox(GameTabs.__tabSelectionArea, false, clWhite);
      NAS.Drawing.drawBox(GameTabs.tabArea, false, clWhite);
      NAS.Drawing.drawBox(GameTabs.getActiveTabArea(), false, clWhite);
    end;

    begin
      if(NAS.init()) then
      begin
        NAS.Layer.PaintInterval(100);
        initNXTui();
        drawUI();
        repeat until false;
      end;
    end;

    Things to fix:
    • Nothing!

    Github
    https://github.com/snoopunit/SRL-6-Simba1.2

    There may or may not be more functions that need fixing, that I simply haven't tried to access. If you find anything that needs to be fixed, please let me know! If you have any questions or suggestions please feel free to leave them here.

  2. #2
    Join Date
    Oct 2007
    Posts
    187
    Mentioned
    7 Post(s)
    Quoted
    61 Post(s)

    Default

    Update: Fixed some lobby functions, and provided a workaround for tesseract failure in quickSelectWorld()
    The function now chooses a random world from the available favorite worlds (blue buttons).

  3. #3
    Join Date
    Sep 2006
    Posts
    95
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    does this detect the new bankscreen??

  4. #4
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Quote Originally Posted by bucko View Post
    does this detect the new bankscreen??
    While you wait for an answer, you can create a simple, makeshift bankscreen check yourself. Pick a unique color or two from the bankscreen interface when it's visible. You will be checking whether these colors are present at their respective coordinates. Code something like the example below:

    Simba Code:
    function bankscreen.isOpen(): boolean;
    begin
      result := similarColors(getColor(x, y), color, tolerance);
      //Checking more than one color better ensures accuracy
    end;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •