Vice City: Multiplayer

Server Development => Scripting and Server Management => Client Scripting => Topic started by: EK.IceFlake on Oct 27, 2016, 04:01 PM

Title: Synchronizing GUI Memo Box with Scroll Bar
Post by: EK.IceFlake on Oct 27, 2016, 04:01 PM
I tried this, this almost works - it works that when the scrollbar is most down the memobox is most down and it looks like it works except that it skips a few lines at the top.
function GUI::ScrollbarScroll(scrollbar, position, change)
{
    if (Server.RUS != null && scrollbar == Server.RUS)
    {
        Server.RUB.DisplayPos = 1 - position;
    }
}

How do I get them to synchronize? Thanks for your help.
Title: Re: Synchronizing GUI Memo Box with Scroll Bar
Post by: EK.IceFlake on Oct 29, 2016, 11:21 AM
Bump pls
Title: Re: Synchronizing GUI Memo Box with Scroll Bar
Post by: DizzasTeR on Oct 29, 2016, 12:23 PM
I don't even understand what your problem is, maybe explain with some screens and actually show the problem somehow
Title: Re: Synchronizing GUI Memo Box with Scroll Bar
Post by: EK.IceFlake on Oct 29, 2016, 01:42 PM
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fk3Ke7HL.jpg&hash=d691190624ef04721cbcc513b33bbccf179dccfd)
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJFDkFFW.jpg&hash=31dc16fae2d080739afb7b316aee430e4d099591)
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FfGexBG9.jpg&hash=7e977cfc5ba11cc34572620aee7c7a2ea66afcb3)
As you can see the scrollbar isnt perfectly synchronized with the memobox.
Title: Re: Synchronizing GUI Memo Box with Scroll Bar
Post by: EK.IceFlake on Nov 01, 2016, 12:41 PM
Bump!!!
Title: Re: Synchronizing GUI Memo Box with Scroll Bar
Post by: EK.IceFlake on Nov 07, 2016, 03:03 PM
BUMPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
Title: Re: Synchronizing GUI Memo Box with Scroll Bar
Post by: EK.IceFlake on Dec 02, 2016, 09:18 AM
Solved by increasing HistorySize