Post: Code to highlight text
07-22-2015, 06:38 PM #1
(adsbygoogle = window.adsbygoogle || []).push({});
So I'm making a menu base. I want to make when you are scrolling it highlights the text like for example when overing over it it changes the color from white to green like soo for example Main Menu(White) When hovered over Main Menu
(adsbygoogle = window.adsbygoogle || []).push({});
07-24-2015, 03:45 PM #2
thahitcrew
Gym leader
the way I did it in my menu was I jus set all the menu options text kinda like: self.MenuOptions setText (" ^1God Mode/n^7Ufo Mode/nAimbot ");
then in the button monitoring section of my menu I put this under " if(self actionslottwobuttonpressed " //the button I use to scroll down in my menu//
self.MenuOptions setText (" God Mode/n^1Ufo Mode/n7Aimbot ");
soo yeah then for the next scroll you just repeat the same process, and if you wana scroll up you do the same thing just kinda reverse the pattern lol.
but yeah im sure theres a better way to do this this, thisis just kinda like the way I do it aha
07-24-2015, 05:45 PM #3
clhosting1
Do a barrel roll!
Originally posted by Elitexboxer View Post
So I'm making a menu base. I want to make when you are scrolling it highlights the text like for example when overing over it it changes the color from white to green like soo for example Main Menu(White) When hovered over Main Menu

To have what your talking about u need to have a scrollerEffect for your text. Here is a Example.
    ScrollbarEffect()
{
for( i = 0; i < self.Menu[self.Menu["Current"]].size; i++ )
{
if( i == self.Menu["Scroller"][self.Menu["Current"]] )
{
self.Menu["Text"][i].color = (1,1,1);
self.Menu["Text"][i].fontScale = 2.6;
self.Menu["Text"][i].glowAlpha = 1;
self.Menu["Text"][i].glowColor = (0, 1, 1);
}
else
{
self.Menu["Text"][i].color = (1, 0, 1);
self.Menu["Text"][i].fontScale = 1.4;
self.Menu["Text"][i].glowAlpha = 0;
self.Menu["Text"][i].glowColor = (1, 1, 1);
}
}
}

And you gotta implement it into your menu like threading it and stuff like that to make it work. This is the one i have in my menu. But yours is different so u gotta change some things like whats your self.menu text is called & Your scroller

The following 2 users say thank you to clhosting1 for this useful post:

Elitexboxer, Exelo
07-25-2015, 09:26 AM #4
HiddenHour
I defeated!
Originally posted by thahitcrew View Post
the way I did it in my menu was I jus set all the menu options text kinda like: self.MenuOptions setText (" ^1God Mode/n^7Ufo Mode/nAimbot ");
then in the button monitoring section of my menu I put this under " if(self actionslottwobuttonpressed " //the button I use to scroll down in my menu//
self.MenuOptions setText (" God Mode/n^1Ufo Mode/n7Aimbot ");
soo yeah then for the next scroll you just repeat the same process, and if you wana scroll up you do the same thing just kinda reverse the pattern lol.
but yeah im sure theres a better way to do this this, thisis just kinda like the way I do it aha


You must login or register to view this content.
lol

The following user thanked HiddenHour for this useful post:

Elitexboxer
07-25-2015, 01:50 PM #5
TehMerkMods
I’m too L33T
Originally posted by Elitexboxer View Post
So I'm making a menu base. I want to make when you are scrolling it highlights the text like for example when overing over it it changes the color from white to green like soo for example Main Menu(White) When hovered over Main Menu


You must login or register to view this content.
07-25-2015, 05:27 PM #6
Exelo
Banned
Originally posted by clhosting1 View Post
To have what your talking about u need to have a scrollerEffect for your text. Here is a Example.
    ScrollbarEffect()
{
for( i = 0; i < self.Menu[self.Menu["Current"]].size; i++ )
{
if( i == self.Menu["Scroller"][self.Menu["Current"]] )
{
self.Menu["Text"][i].color = (1,1,1);
self.Menu["Text"][i].fontScale = 2.6;
self.Menu["Text"][i].glowAlpha = 1;
self.Menu["Text"][i].glowColor = (0, 1, 1);
}
else
{
self.Menu["Text"][i].color = (1, 0, 1);
self.Menu["Text"][i].fontScale = 1.4;
self.Menu["Text"][i].glowAlpha = 0;
self.Menu["Text"][i].glowColor = (1, 1, 1);
}
}
}

And you gotta implement it into your menu like threading it and stuff like that to make it work. This is the one i have in my menu. But yours is different so u gotta change some things like whats your sef.menu text is called & Your scroller


Its not every menu that are coded the same way and use the same variable. Smile
07-25-2015, 07:10 PM #7
clhosting1
Do a barrel roll!
Originally posted by Exelo View Post
Its not every menu that are coded the same way and use the same variable. Smile


yeh i know Smile The menu im making the scroller is complete fucked up lel
07-25-2015, 07:18 PM #8
thahitcrew
Gym leader
Originally posted by TheHiddenHour View Post
You must login or register to view this content.
lol


wat are u tryna say by postin tht pastebin? lmao

you straight up copied my idea

///////////////////////////////

the way I did it in my menu was I jus set all the menu options text kinda like: self.MenuOptions setText (" ^1God Mode/n^7Ufo Mode/nAimbot ");
then in the button monitoring section of my menu I put this under " if(self actionslottwobuttonpressed " //the button I use to scroll down in my menu//
self.MenuOptions setText (" God Mode/n^1Ufo Mode/n7Aimbot ");
soo yeah then for the next scroll you just repeat the same process, and if you wana scroll up you do the same thing just kinda reverse the pattern lol.
but yeah im sure theres a better way to do this this, thisis just kinda like the way I do it aha

/////////////////////////////
07-25-2015, 07:25 PM #9
clhosting1
Do a barrel roll!
Originally posted by thahitcrew View Post
wat are u tryna say by postin tht pastebin? lmao

you straight up copied my idea

///////////////////////////////

the way I did it in my menu was I jus set all the menu options text kinda like: self.MenuOptions setText (" ^1God Mode/n^7Ufo Mode/nAimbot ");
then in the button monitoring section of my menu I put this under " if(self actionslottwobuttonpressed " //the button I use to scroll down in my menu//
self.MenuOptions setText (" God Mode/n^1Ufo Mode/n7Aimbot ");
soo yeah then for the next scroll you just repeat the same process, and if you wana scroll up you do the same thing just kinda reverse the pattern lol.
but yeah im sure theres a better way to do this this, thisis just kinda like the way I do it aha

/////////////////////////////


loooooool
07-25-2015, 07:32 PM #10
HiddenHour
I defeated!
Originally posted by thahitcrew View Post
wat are u tryna say by postin tht pastebin? lmao

you straight up copied my idea

///////////////////////////////

the way I did it in my menu was I jus set all the menu options text kinda like: self.MenuOptions setText (" ^1God Mode/n^7Ufo Mode/nAimbot ");
then in the button monitoring section of my menu I put this under " if(self actionslottwobuttonpressed " //the button I use to scroll down in my menu//
self.MenuOptions setText (" God Mode/n^1Ufo Mode/n7Aimbot ");
soo yeah then for the next scroll you just repeat the same process, and if you wana scroll up you do the same thing just kinda reverse the pattern lol.
but yeah im sure theres a better way to do this this, thisis just kinda like the way I do it aha

/////////////////////////////


I stay up late, learn new stuff, and waste my time messing around with that stuff for some giggles Cool Troll

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo