Menu - more options on one page

Please post any questions about developing your plugin here. Please use the search function before posting!
decompile
Senior Member
Posts: 417
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Menu - more options on one page

Postby decompile » Fri Mar 04, 2016 11:56 pm

Hey,

Is there something like popuplib2.pagedList where you could list many items on one page with multipage support? Like for example I have a list with 100 steamids, and I want to show 10 of them in one page but they should not be selectable.
User avatar
Ayuto
Project Leader
Posts: 2209
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Sat Mar 05, 2016 9:54 am

You can use PagedMenu and PagedOption for that.

Syntax: Select all

from menus import PagedMenu
from menus import PagedOption

menu = PagedMenu()
for x in range(100):
menu.apppend(PagedOption('SteamID {}'.format(x), selectable=False))

But you can't display 10 items with multi-page support. How would you go to the next page?

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 115 guests