Make an extra optional attribute for popuplib objects that controls whether the popup should be displayed in AXM style or in VGUI dialog. This would override the automatic detection by game name to allow using popuplib for ESC menus on games that support AMX style menus.
(Using this attribute to force AMX style would make it so that the popup gets ignored on games that only support ESC menus)
(Using this attribute to force AMX style would make it so that the popup gets ignored on games that only support ESC menus)
This would be awesome :)
~J3ff
~J3ff
godjonez posted on 2008-03-10 11:31:31
Done to popuplib oy25.
The new attribute available to all popup types (popup, construct, easymenu) is .visualstyle, accepted values are 0, 1 and 2:
p.visualstyle = 0 (default, autodetect)
p.visualstyle = 1 (radio/AMX popup type)
p.visualstyle = 2 (VGUI/ESC popup type)
The new attribute available to all popup types (popup, construct, easymenu) is .visualstyle, accepted values are 0, 1 and 2:
p.visualstyle = 0 (default, autodetect)
p.visualstyle = 1 (radio/AMX popup type)
p.visualstyle = 2 (VGUI/ESC popup type)




Jeff posted on 2008-02-12 17:21:33