- Removed from library
- Renamed library
pygameMenu
topygame_menu
- Removed all configuration variables from
pygameMenu.config
- Removed
TextMenu
, useMenu
andadd_label()
method instead
- Renamed library
- New Menu behaviour
- Menu manage the event loop and drawing using
Menu.mainloop(surface, bgfun, disable_loop=False, fps_limit=0)
- User's application manage the event loop, using
Menu.update(events)
andMenu.draw(surface)
- Menu manage the event loop and drawing using
- Removed from Menu class
add_option()
, useadd_button()
insteadset_fps()
, usefps_limit
frommainloop()
instead- Constructor parameters:
bgfun
, now this function is required byMenu.mainloop()
color_selected
, moved toselection_color
of :pypygame_menu.themes.Theme
dopause
, now user can control this behaviour usingupdate()
ormainloop()
draw_region_x
, moved towidget_offset
of :pypygame_menu.themes.Theme
draw_region_y
, moved towidget_offset
of :pypygame_menu.themes.Theme
draw_select
, moved towidget_selection_effect
of :pypygame_menu.themes.Theme
font_color
, moved towidget_font_color
of :pypygame_menu.themes.Theme
font_size_title
, moved totitle_font_size
of :pypygame_menu.themes.Theme
font_size
, moved towidget_font_size
of :pypygame_menu.themes.Theme
font_title
, moved totitle_font
of :pypygame_menu.themes.Theme
font
, moved towidget_font
of :pypygame_menu.themes.Theme
fps
, usefps_limit
frommainloop()
insteadmenu_alpha
, now each color of :pypygame_menu.themes.Theme
can be defined with opacitymenu_color_title
, moved totitle_background_color
of :pypygame_menu.themes.Theme
menu_color
, moved tobackground_color
of :pypygame_menu.themes.Theme
menu_height
, useheight
menu_width
, usewidth
option_margin
, moved towidget_margin
of :pypygame_menu.themes.Theme
option_shadow_offset
, moved towidget_shadow_offset
of :pypygame_menu.themes.Theme
option_shadow_position
, moved towidget_shadow_position
of :pypygame_menu.themes.Theme
option_shadow
, moved towidget_shadow
of :pypygame_menu.themes.Theme
rect_width
, now change selection effect from :pypygame_menu.themes.Theme
surface
, now pygame surface is only required bymainloop()
andupdate()
title_offsetx
, moved totitle_offset
of :pypygame_menu.themes.Theme
title_offsety
, moved totitle_offset
of :pypygame_menu.themes.Theme
window_width
andwindow_height
parameters
- Renamed Menu method parameters
element_name
andelement
fromadd_button()
totitle
andaction
values
fromadd_selector()
toitems
widget_id
fromadd_button()
tobutton_id