ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1909

Code

by ma23ed - 11-10-2020 - 03:19 PM
#1
hello :) 

i was looking for a base for my first mod menu and i found skip option via flux base


#pragma region skip option
void addSkipOption(char *option, char *info = NULL)
{
char buf[100];
addOption(buf, info);
if (currentOption == optionCount)
infoText = info;
if (currentOption <= maxOptions && optionCount <= maxOptions)
{
drawText(option, 1, menuXCoord, (optionCount * 0.035f + textYCoord), 0.5f, 0.5f, 75, 75, 75, optionsOpacity, true, false);
}
else if ((optionCount > (currentOption - maxOptions)) && optionCount <= currentOption)
{
drawText(option, 1, menuXCoord, ((optionCount - (currentOption - maxOptions)) * 0.035f + textYCoord), 0.5f, 0.5f, 75, 75, 75, optionsOpacity, true, false);
}
if (currentOption == optionCount)
{
if (CONTROLS::IS_DISABLED_CONTROL_JUST_PRESSED(0, Dpad_Up))
{
if (currentOption == 1)
{
currentOption = optionCount;
}
else
{
currentOption--;
}
}
else if (CONTROLS::IS_DISABLED_CONTROL_JUST_PRESSED(0, Dpad_Down))
{
currentOption++;
}
}
}
#pragma endregion


Enjoy.
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#2
to use addSkipOption("");
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#3
[Image: hgh08Pez.jpg]
Reply

Users browsing: 2 Guest(s)