ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 3443

Scroll bar?

by Joalson - 05-16-2019 - 01:59 AM
#1
I was wondering on how to get this https://prnt.sc/np4vlf? If you have it mind sharing the code? ive been looking everywhere but i couldnt find anything. Also do you know how to get a smoother scroller? thanks
Reply
#2
Like this http://prntscr.com/np4wfk ?
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#3
it's not the most difficult thing to make. Just requires some simple math.
Reply
#4
(05-16-2019 - 02:02 AM)hashity Wrote: Like this http://prntscr.com/np4wfk ?

Yes!
Reply
#5
(05-16-2019 - 01:59 AM)Joalson Wrote: I was wondering on how to get this https://prnt.sc/np4vlf? If you have it mind sharing the code? ive been looking everywhere but i couldnt find anything. Also do you know how to get a smoother scroller? thanks

You just have to draw the outer rectangle and change the coordinates to finish.  Very simple code.

Code:
void SetupScroller()
{
    if (optionCount > maxOptions) {
        if (currentOption > maxOptions)    {
            GRAPHICS::DRAW_RECT(0.8900, ((maxOptions *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
            //SPRITE("hunting", "huntingwindarrow_32", 0.6180, ((maxOptions *  0.030f) + 0.1413f), -0.0100, 0.0350, 269, SRL_R, SRL_G, SRL_B, 255);
        }
        else {
            GRAPHICS::DRAW_RECT(0.8900, ((currentOption *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
            //SPRITE("hunting", "huntingwindarrow_32", 0.6180, ((currentOption *  0.030f) + 0.1413f), -0.0100, 0.0350, 269,  SRL_R, SRL_G, SRL_B, 255);
        }
    }
    else {
        GRAPHICS::DRAW_RECT(0.8900, ((currentOption *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
    }
}

by RF0oD x M0Dz
[Image: a8keeuutawx01.gif]
Reply
#6
(05-16-2019 - 01:59 AM)Joalson Wrote: I was wondering on how to get this https://prnt.sc/np4vlf? If you have it mind sharing the code? ive been looking everywhere but i couldnt find anything. Also do you know how to get a smoother scroller? thanks

its so simple i woudlent even call it code, litterly just a drawrect smh bro
Reply
#7
(05-16-2019 - 04:38 AM)iLLuminder Wrote:
(05-16-2019 - 01:59 AM)Joalson Wrote: I was wondering on how to get this https://prnt.sc/np4vlf? If you have it mind sharing the code? ive been looking everywhere but i couldnt find anything. Also do you know how to get a smoother scroller? thanks

You just have to draw the outer rectangle and change the coordinates to finish.  Very simple code.

Code:
void SetupScroller()
{
    if (optionCount > maxOptions) {
        if (currentOption > maxOptions)    {
            GRAPHICS::DRAW_RECT(0.8900, ((maxOptions *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
            //SPRITE("hunting", "huntingwindarrow_32", 0.6180, ((maxOptions *  0.030f) + 0.1413f), -0.0100, 0.0350, 269, SRL_R, SRL_G, SRL_B, 255);
        }
        else {
            GRAPHICS::DRAW_RECT(0.8900, ((currentOption *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
            //SPRITE("hunting", "huntingwindarrow_32", 0.6180, ((currentOption *  0.030f) + 0.1413f), -0.0100, 0.0350, 269,  SRL_R, SRL_G, SRL_B, 255);
        }
    }
    else {
        GRAPHICS::DRAW_RECT(0.8900, ((currentOption *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
    }
}

by RF0oD x M0Dz

are you able to send the codes for " SRL_R, SRL_G, SRL_B "
Reply
#8
(05-17-2019 - 02:55 AM)Joalson Wrote:
(05-16-2019 - 04:38 AM)iLLuminder Wrote:
(05-16-2019 - 01:59 AM)Joalson Wrote: I was wondering on how to get this https://prnt.sc/np4vlf? If you have it mind sharing the code? ive been looking everywhere but i couldnt find anything. Also do you know how to get a smoother scroller? thanks

You just have to draw the outer rectangle and change the coordinates to finish.  Very simple code.

Code:
void SetupScroller()
{
if (optionCount > maxOptions) {
if (currentOption > maxOptions) {
GRAPHICS::DRAW_RECT(0.8900, ((maxOptions *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
//SPRITE("hunting", "huntingwindarrow_32", 0.6180, ((maxOptions *  0.030f) + 0.1413f), -0.0100, 0.0350, 269, SRL_R, SRL_G, SRL_B, 255);
}
else {
GRAPHICS::DRAW_RECT(0.8900, ((currentOption *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
//SPRITE("hunting", "huntingwindarrow_32", 0.6180, ((currentOption *  0.030f) + 0.1413f), -0.0100, 0.0350, 269,  SRL_R, SRL_G, SRL_B, 255);
}
}
else {
GRAPHICS::DRAW_RECT(0.8900, ((currentOption *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
}
}

by RF0oD x M0Dz

are you able to send the codes for " SRL_R, SRL_G, SRL_B "

This returns the color of the scroll in RGB, you can use one according to your preference. By default it is white:

Code:
int SRL_R = 255; //RED
int SRL_G = 255; //GREEN
int SRL_B = 255; //BLUE
int SRL_A = 255; //ALPHA/OPACITY
[Image: a8keeuutawx01.gif]
Reply
#9
See how its not good to just directly spoonfeed people who doesn't event know what that shit returns  " SRL_R, SRL_G, SRL_B "  
any way gta modding communities are full of skids and keks so xD
             Elitedox Official
                 
                          
Reply
#10
(05-17-2019 - 10:18 AM)Elitedox Wrote: See how its not good to just directly spoonfeed people who doesn't event know what that shit returns  " SRL_R, SRL_G, SRL_B "  
any way gta modding communities are full of skids and keks so xD

I know what it was for i tried to use mine worked fine but wasnt showing so thats why i just asked lel. Just FYI. if we are all skids and keks, arent you? i Mean youre here as well looking at leaks and shit.

(05-17-2019 - 04:23 AM)iLLuminder Wrote:
(05-17-2019 - 02:55 AM)Joalson Wrote:
(05-16-2019 - 04:38 AM)iLLuminder Wrote:
(05-16-2019 - 01:59 AM)Joalson Wrote: I was wondering on how to get this https://prnt.sc/np4vlf? If you have it mind sharing the code? ive been looking everywhere but i couldnt find anything. Also do you know how to get a smoother scroller? thanks

You just have to draw the outer rectangle and change the coordinates to finish.  Very simple code.

Code:
void SetupScroller()
{
if (optionCount > maxOptions) {
if (currentOption > maxOptions) {
GRAPHICS::DRAW_RECT(0.8900, ((maxOptions *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
//SPRITE("hunting", "huntingwindarrow_32", 0.6180, ((maxOptions *  0.030f) + 0.1413f), -0.0100, 0.0350, 269, SRL_R, SRL_G, SRL_B, 255);
}
else {
GRAPHICS::DRAW_RECT(0.8900, ((currentOption *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
//SPRITE("hunting", "huntingwindarrow_32", 0.6180, ((currentOption *  0.030f) + 0.1413f), -0.0100, 0.0350, 269,  SRL_R, SRL_G, SRL_B, 255);
}
}
else {
GRAPHICS::DRAW_RECT(0.8900, ((currentOption *  0.030f) + 0.1410f), 0.0050, 0.0285, SRL_R, SRL_G, SRL_B, 189);
}
}

by RF0oD x M0Dz

are you able to send the codes for " SRL_R, SRL_G, SRL_B "

This returns the color of the scroll in RGB, you can use one according to your preference. By default it is white:

Code:
int SRL_R = 255; //RED
int SRL_G = 255; //GREEN
int SRL_B = 255; //BLUE
int SRL_A = 255; //ALPHA/OPACITY

Thank you.
Reply

Users browsing: 1 Guest(s)