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.
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.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.