if(force_initial_selection)
me.setSelected(me, 0);
}
+void XonoticCvarList_hideNotify(entity me)
+{
+ if(me.handle)
+ buf_del(me.handle);
+ me.handle = buf_create();
+ me.nItems = 0;
+}
void XonoticCvarList_destroy(entity me)
{
- buf_del(me.handle);
+ if(me.handle)
+ buf_del(me.handle);
}
string autocvar_menu_forced_saved_cvars;
string autocvar_menu_reverted_nonsaved_cvars;
METHOD(XonoticCvarList, resizeNotify, void(entity, vector, vector, vector, vector));
METHOD(XonoticCvarList, keyDown, float(entity, float, float, float));
METHOD(XonoticCvarList, showNotify, void(entity));
+ METHOD(XonoticCvarList, hideNotify, void(entity));
METHOD(XonoticCvarList, destroy, void(entity));