mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +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;
|
mParentMenu = parent;
|
||||||
mDesc = desc;
|
mDesc = desc;
|
||||||
|
|
|
@ -852,8 +852,12 @@ class OptionMenuItemColorPicker : OptionMenuItem
|
||||||
if (mCVar != null)
|
if (mCVar != null)
|
||||||
{
|
{
|
||||||
Menu.MenuSound("menu/choose");
|
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.
|
// 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"))
|
if (desc != NULL && (desc.mClass == null || desc.mClass is "ColorPickerMenu"))
|
||||||
{
|
{
|
||||||
let odesc = OptionMenuDescriptor(desc);
|
let odesc = OptionMenuDescriptor(desc);
|
||||||
|
|
Loading…
Reference in a new issue