Thread: Models in interfaces drawing out side the parent?

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    Pretty sure its a problem with ur interface data.

    since for example when I added 474 construction interfaces with a tool from here, it was working fine and pretty sure all the interface methods are just default 317 ones: (skip the vid to 2:20)
    [Only registered and activated users can see links. ]
    ...
    Reply With Quote  
     

  2. #12  
    Donator


    Join Date
    Jan 2010
    Age
    26
    Posts
    4,101
    Thanks given
    266
    Thanks received
    521
    Discord
    View profile
    Rep Power
    685
    Quote Originally Posted by mige5 View Post
    Pretty sure its a problem with ur interface data.

    since for example when I added 474 construction interfaces with a tool from here, it was working fine and pretty sure all the interface methods are just default 317 ones: (skip the vid to 2:20)
    [Only registered and activated users can see links. ]
    I have that tool somewhere but if also tried it with a default 317 interface, are you sure that construction interface uses models and not sprites? because sprites are fine

    As Suic helped me use sprites instead of models, but i'd prefer to fix the model part too

    Reply With Quote  
     

  3. #13  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,322
    Thanks given
    546
    Thanks received
    1,129
    Discord
    View profile
    Rep Power
    1806
    Quote Originally Posted by Nighel View Post
    I have that tool somewhere but if also tried it with a default 317 interface, are you sure that construction interface uses models and not sprites? because sprites are fine

    As Suic helped me use sprites instead of models, but i'd prefer to fix the model part too

    Yeah as far as I remember those are models.
    ...
    Reply With Quote  
     

  4. #14  
    Wut can u say when theres nothin to tell

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    21
    Posts
    1,535
    Thanks given
    668
    Thanks received
    402
    Rep Power
    971
    problem is pretty obvious as u can see, model is drawn after the interface and thus overriding the pixels that should cover it.
    play around with the drawing of the model so the place of the code is before those sprites rendering



    [Only registered and activated users can see links. ]


    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #15  
    Donator


    Join Date
    Jul 2011
    Posts
    922
    Thanks given
    196
    Thanks received
    169
    Rep Power
    189
    Oh yea. Well as a starting point you could refer to how sprites are clipped by the bounds of drawing area.

    Code:
    if (k < DrawingArea.topY) {
    	int j2 = DrawingArea.topY - k;
    	j1 -= j2;
    	k = DrawingArea.topY;
    	i1 += j2 * k1;
    	l += j2 * DrawingArea.width;
    }
    You would have to do the same for models.

    Or simply use sprites, seems like drawing a model on a scrollable interface is not supported by default in the client.

    Model drawing is in #drawInterface, type 6:
    [Only registered and activated users can see links. ] (Small test, it's not a fix and it's improper - but gives you a ROUGH idea on what you need to do inside the model class)
    The code on the gif above simply makes the model disappear if it's vertical position exceeds the bounds of the drawing area.
    Last edited by Blaketon; 03-28-2020 at 01:57 PM.
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [SHOWOFF] 3 Models in the Making! ~Rainaka
    By Rainaka in forum Models
    Replies: 27
    Last Post: 08-18-2009, 06:53 PM
  2. Opening models in the Animation Editor
    By Jammy780 in forum Help
    Replies: 5
    Last Post: 08-12-2009, 08:49 AM
  3. Packet 101 - Draw your player model on interface
    By veer in forum RS 503+ Client & Server
    Replies: 0
    Last Post: 09-01-2008, 08:11 PM
  4. Models in the client
    By kadengamer1 in forum Models
    Replies: 3
    Last Post: 06-19-2008, 09:19 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •