Post: PreCacheShader not working!
03-17-2016, 11:56 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So, All it does is turns black like it was at first?? Any suggestions??

I'm precaching using "precacheShader("em_bg_ani_dmh");"
I place the code in:
    
init()
{
precacheShader("em_bg_ani_dmh");
level thread onplayerconnect();
}


That doesn't seem to work because I'm trying to use this as a backgound for my mod menu! Also I'm using Sharks menu base < I put overflow fix in and that still didn't fix this problem.
Heres the stuff I put in shader:
    
StoreShaders()
{
self.menu.background = self drawShader("em_bg_ani_dmh", 320, -50, 300, 500, (255, 255, 255), 0, 0);
self.menu.scroller = self drawShader("white", 320, -500, 300, 17, (0, 0, 0), 255, 1);
self.menu.line = self drawShader("white", 170, -550, 2, 500, (0, 0, 0), 255, 2);
}
Last edited by Elitexboxer ; 03-18-2016 at 12:22 AM. Reason: Explaining what it is doing incorrectly which I'm not sure what I'm doing wrong?
03-19-2016, 03:07 AM #20
Originally posted by DrHackHD View Post
can i have a screenshot?


So, now it's black here is a screenshot.

You must login or register to view this content.
03-19-2016, 03:11 AM #21
DrHackHD
Bounty hunter
shit, bro the problem is the color u need a transparent color to make the shader to be visible.
try RGB GSC COLOR TOOL:You must login or register to view this content.
03-19-2016, 03:12 AM #22
DrHackHD
Bounty hunter
but i think u cannot have an animated scrollbar
03-19-2016, 03:19 AM #23
Originally posted by DrHackHD View Post
but i think u cannot have an animated scrollbar



CMK did it some how?
03-19-2016, 03:24 AM #24
DrHackHD
Bounty hunter
watch carefully is quite blue, so how i said before u need some kind of transparent color
03-19-2016, 03:25 AM #25
Originally posted by DrHackHD View Post
watch carefully is quite blue, so how i said before u need some kind of transparent color


What do you mean by that?
03-19-2016, 03:37 AM #26
DrHackHD
Bounty hunter
im italian, sorry for my shitty english.

try this:

StoreShaders()
{
self.menu.background = self drawShader("compass_emp", 320, -50, 300, 500, (255, 255, 255), 1, 0);
self.menu.scroller = self drawShader("em_bg_ani_afterlife", 320, -500, 300, 17, (255, 255, 255), 1, 0);
self.menu.line = self drawShader("white", 170, -550, 2, 500, (0, 0, 0), 255, 2);
}
03-19-2016, 03:40 AM #27
Originally posted by DrHackHD View Post
im italian, sorry for my shitty english.

try this:

StoreShaders()
{
self.menu.background = self drawShader("compass_emp", 320, -50, 300, 500, (255, 255, 255), 1, 0);
self.menu.scroller = self drawShader("em_bg_ani_afterlife", 320, -500, 300, 17, (255, 255, 255), 1, 0);
self.menu.line = self drawShader("white", 170, -550, 2, 500, (0, 0, 0), 255, 2);
}


That froze my console on map loading screen
03-19-2016, 03:43 AM #28
DrHackHD
Bounty hunter
StoreShaders()
{
self.menu.background = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 0, (10, 0, 0), "compass_emp", 1, 0);
self.menu.scroller = self createRectangle("CENTER", "TOP", 320, -50, 1, 1, 1, (255, 255, 255), "em_bg_ani_afterlife", 1, 0);
self.menu.line = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 2, (255, 0, 0), 0, "white");
}

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo