MisterQuestions Posted December 12, 2014 Share Posted December 12, 2014 Hey all, i have a dude, and its how to make something drawed scrollable like memo's that you cna scroll text and that?? Link to comment
.:HyPeX:. Posted December 12, 2014 Share Posted December 12, 2014 onClientKey dxDrawRectangle interpolateBetween Link to comment
MisterQuestions Posted December 18, 2014 Author Share Posted December 18, 2014 Any example or something to understand it? Link to comment
MTA Team botder Posted December 19, 2014 MTA Team Share Posted December 19, 2014 You could actually copy the scrolling from my debugconsole resource Link to comment
MisterQuestions Posted December 19, 2014 Author Share Posted December 19, 2014 But..i dont understand it so well Link to comment
MTA Team botder Posted December 19, 2014 MTA Team Share Posted December 19, 2014 Your memo has to show some lines with text. That means you have to store, which memo is visible including the text for each memo. gMemo = { { messages = {}, visible = true }, { messages = {}, visible = true } } -- each index is one line Each memo has it's own size. That means you have to store the size of the memo. gMemo = { { messages = {}, visible = true, width = 300, height = 300 }, { messages = {}, visible = true, width = 400, height = 400 } } Your memo can only show a part of the text. That means you have to store the position, where the text starts and how many lines it can show. gMemo = { { messages = {}, visible = true, width = 300, height = 300, position = 0, linecount = 8 }, { messages = {}, visible = true, width = 400, height = 400, position = 15, linecount = 10 } } You can add more of course, but that should give you a small help for the beginning. Possible functions: dxCreateMemo dxMemoSetSize dxMemoGetSize dxMemoClear dxMemoSetText dxMemoGetText dxMemoRender dxMemoSetLine dxMemoGetLine dxMemoSetVisible dxMemoGetVisible dxMemoDestroy Link to comment
MisterQuestions Posted December 24, 2014 Author Share Posted December 24, 2014 Any other example? Im triying to make this little list...but with the time user will need to add more people, so this should be scrolled...how to make it?? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now