mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- OptionMenu.Init must be declared 'virtual'
This commit is contained in:
parent
b6ad14a614
commit
9ece757cb3
2 changed files with 6 additions and 2 deletions
|
@ -214,7 +214,7 @@ class OptionMenu : Menu native
|
|||
//
|
||||
//=============================================================================
|
||||
|
||||
void Init(Menu parent, OptionMenuDescriptor desc)
|
||||
virtual void Init(Menu parent, OptionMenuDescriptor desc)
|
||||
{
|
||||
mParentMenu = parent;
|
||||
mDesc = desc;
|
||||
|
|
|
@ -852,8 +852,12 @@ class OptionMenuItemColorPicker : OptionMenuItem
|
|||
if (mCVar != null)
|
||||
{
|
||||
Menu.MenuSound("menu/choose");
|
||||
let desc = MenuDescriptor.GetDescriptor('Colorpickermenu');
|
||||
|
||||
// This code is a bit complicated because it should allow subclassing the
|
||||
// colorpicker menu.
|
||||
// New color pickers must inherit from the internal one to work here.
|
||||
|
||||
let desc = MenuDescriptor.GetDescriptor('Colorpickermenu');
|
||||
if (desc != NULL && (desc.mClass == null || desc.mClass is "ColorPickerMenu"))
|
||||
{
|
||||
let odesc = OptionMenuDescriptor(desc);
|
||||
|
|
Loading…
Reference in a new issue