"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
Posts
264
Respect
90Add +1
Forum Rank
Mr. Elemental
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
i want to add a fade to a menu button based on a the value of a dvar, so like when(dvarint(displayAllies) == 0) there would be a fade on the menu button making it look like it cant be pressed. is this possible to do?
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
the button i have isnt really a choice button since there is only one text value, i just want the text to be faded out or fully visible based on when a dvar is set to 0 or 1 . does that make sense?
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Exp forcolor a ( dvarint( "" ) * 0.1 )
Yeah editing forecolor, besides alpha, I do not think is possible. I tried exp forecolor R, G, and B and also exp forecolor C for the whole color all together, and mod builder said only 'A' for alpha works. And you cannot use dvars on anything but 'exp' and 'visible when();' so yeah the only way to change the color is making different ItemDef's which is kinda limiting.
the button i have isnt really a choice button since there is only one text value, i just want the text to be faded out or fully visible based on when a dvar is set to 0 or 1 . does that make sense?
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
I've not suceeded in adjusting the forecolor at all with a dvar so if you really did get this working, please let us all know how here.
Although you are trying to edit alpha, and here alaurence9 may be implying that it may work for only alpha, so you could try that
yes and I did something similar using the dvar itself
In the itemdef
Under it I think
Exp forcolor a ( dvarint( "" ) * 0.1 )
If memory serves
Control the dvar in gsc
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
What the fuck dude? This whole time we were trying to tell you how to make something fade, but this whole time you wanted us to tell you how to make something STOP fading? Wooow good fuckin job describing this dude, couple minutes of my life I'll never get back thanks to you.
What the fuck dude? This whole time we were trying to tell you how to make something fade, but this whole time you wanted us to tell you how to make something STOP fading? Wooow good fuckin job describing this dude, couple minutes of my life I'll never get back thanks to you.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
I get it's frustrating when someone fails to explain a problem correctly - I deal with it all the time in IT - but you can't lose your shit and go off on people for it. Calm down.
your right you and others WERE helping me to add fade to one item under specific contitions based on a dvar, now im wanting to remove the focuscolor on a different item. these are two different questions. im wanting to remove the flashing focus color on a different item that isnt actually a button.
originally i stated i wanted to add fade to a button in order to make it appear as thought its disabled when a dvar is false later i asked how i would remove the flash(i realized that focuscolor is a better word) on a text item that should not flash when the mouse is hovers over it
next time please completely read and fully understand what is being said before loosing your shit