mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
Remove spacers from MenuManager if we have control options.
This commit is contained in:
parent
7e898ee530
commit
5b536ba094
@ -567,13 +567,8 @@ skip_search:
|
|||||||
ItemDrawInfo padItem(NULL, ITEMDRAW_SPACER);
|
ItemDrawInfo padItem(NULL, ITEMDRAW_SPACER);
|
||||||
if (exitButton || (displayNext || displayPrev))
|
if (exitButton || (displayNext || displayPrev))
|
||||||
{
|
{
|
||||||
/* If there are no control options,
|
padItem.style = ITEMDRAW_NOTEXT;
|
||||||
* Instead just pad with invisible slots.
|
|
||||||
*/
|
|
||||||
if (!displayNext && !displayPrev)
|
|
||||||
{
|
|
||||||
padItem.style = ITEMDRAW_NOTEXT;
|
|
||||||
}
|
|
||||||
/* Add spacers so we can pad to the end */
|
/* Add spacers so we can pad to the end */
|
||||||
for (unsigned int i=0; i<padding; i++)
|
for (unsigned int i=0; i<padding; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user