Post: Changing AIO Menu Base "Bars"
04-10-2017, 04:26 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I know this is the most n00by question ever, but how do i change the AIO Base Bars? I'm trying to replace it with a calling card, here's the code lel:

    	self.AIO["bartop"] = createRectangle("CENTER", "CENTER", -300, .2, 160, 30, (0.000, 0.000, 0.000), "em_bg_flag_belgium", 3, 0);
self.AIO["barbottom"] = createRectangle("CENTER", "CENTER", -300, .2, 160, 30, (0.000, 0.000, 0.000), "em_bg_flag_belgium", 3, 0);
self.AIO["barclose"] = createRectangle("CENTER", "CENTER", -299, .2, 162, 32, (0, 0, 0), "em_bg_flag_belgium", 1, 0);


and this is placed in my init():
    precacheShader("em_bg_flag_belgium");


It's not working and stays black, any help is appreciated Tustin
(adsbygoogle = window.adsbygoogle || []).push({});
04-10-2017, 04:58 PM #2
mrtn
Little One
Originally posted by SlothWiiPlaza View Post
I know this is the most n00by question ever, but how do i change the AIO Base Bars? I'm trying to replace it with a calling card, here's the code lel:

    	self.AIO["bartop"] = createRectangle("CENTER", "CENTER", -300, .2, 160, 30, (0.000, 0.000, 0.000), "em_bg_flag_belgium", 3, 0);
self.AIO["barbottom"] = createRectangle("CENTER", "CENTER", -300, .2, 160, 30, (0.000, 0.000, 0.000), "em_bg_flag_belgium", 3, 0);
self.AIO["barclose"] = createRectangle("CENTER", "CENTER", -299, .2, 162, 32, (0, 0, 0), "em_bg_flag_belgium", 1, 0);


and this is placed in my init():
    precacheShader("em_bg_flag_belgium");


It's not working and stays black, any help is appreciated Tustin


If you're only setting the alpha of the shaders when you open/close the menu then that's the reason why they're black. Change this (0, 0, 0) to this (1, 1, 1)
04-10-2017, 05:37 PM #3
Originally posted by mrtn View Post
If you're only setting the alpha of the shaders when you open/close the menu then that's the reason why they're black. Change this (0, 0, 0) to this (1, 1, 1)


Thanks, now it's dark green, does this mean the texture doesn't exist?
04-10-2017, 05:42 PM #4
mrtn
Little One
Originally posted by SlothWiiPlaza View Post
Thanks, now it's dark green, does this mean the texture doesn't exist?


No, the one you're using exists so it should work. The color of the material might be changed somewhere else in your menu
04-10-2017, 05:43 PM #5
Ah :P
04-10-2017, 06:21 PM #6
MrXcell1
Pokemon Trainer
Tip: look at the functions parameters. These normally tell you what the parameters are and what they mean when you call the function.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo