Эксперт
-
Автор темы
- #1
креатор хз кто, я переписал на в4.
Код:
closingMenu = false;
currentColor = [0, 0, 0, 0]
function drawFunc() {
maxAlpha = UI.GetValue(["Rage", "Yumeno", "Yumeno","Menu background alpha:"]);
Render.FilledRect(0, 0, 2560, 1440, currentColor);
if (UI.GetValue(["Rage", "Yumeno", "Yumeno","Fade:"]) && currentColor[3] < maxAlpha && UI.IsMenuOpen()) {
currentColor[3]++;
}
else if (UI.GetValue(["Rage", "Yumeno", "Yumeno","Fade:"]) && currentColor[3] > 0 && !UI.IsMenuOpen()) {
currentColor[3]--;
}
else if (UI.GetValue(["Rage", "Yumeno", "Yumeno","Fade:"]) && currentColor[3] > UI.GetValue(["Rage", "Yumeno", "Yumeno","Menu background alpha:"])) {
currentColor[3]--;
}
//No fadein/fadout
else if (!UI.GetValue(["Rage", "Yumeno", "Yumeno","Fade:"]) && UI.IsMenuOpen()) {
currentColor[3] = maxAlpha;
}
else if (!UI.GetValue(["Rage", "Yumeno", "Yumeno","Fade:"]) && !UI.IsMenuOpen()) {
currentColor[3] = 0;
}
}
Cheat.RegisterCallback("Draw", "drawFunc");
UI.AddSubTab(["Rage", "SUBTAB_MGR"], "Yumeno"),
UI.AddCheckbox(["Rage", "Yumeno", "Yumeno"], 'Fade:'),
UI.AddSliderInt(["Rage", "Yumeno", "Yumeno"], "Menu background alpha:",30, 255);