#ifdef INTERFACE
-CLASS(Animation) EXTENDS(Object)
+CLASS(Animation, Object)
METHOD(Animation, configureAnimation, void(entity, entity, void(entity, float), float, float, float, float))
METHOD(Animation, setTimeStartEnd, void(entity, float, float))
METHOD(Animation, setTimeStartDuration, void(entity, float, float))
#include "../menu.qh"
#ifdef INTERFACE
-CLASS(AnimHost) EXTENDS(Object)
+CLASS(AnimHost, Object)
METHOD(AnimHost, addAnim, void(entity, entity))
METHOD(AnimHost, removeAnim, void(entity, entity))
METHOD(AnimHost, removeAllAnim, void(entity))
#ifdef INTERFACE
-CLASS(Easing) EXTENDS(Animation)
+CLASS(Easing, Animation)
METHOD(Easing, calcValue, float(entity, float, float, float, float))
METHOD(Easing, setMath, void(entity, float(float, float, float, float)))
ATTRIB(Easing, math, float(float, float, float, float), easingLinear)
entity makeEasing(entity obj, void(entity, float) objSetter, float(float, float, float, float) func, float animStartTime, float animDuration, float animStartValue, float animEnd)
{
entity me;
- me = spawnEasing();
+ me = NEW(Easing);
me.configureAnimation(me, obj, objSetter, animStartTime, animDuration, animStartValue, animEnd);
me.setMath(me, func);
return me;
#ifdef INTERFACE
-CLASS(Keyframe) EXTENDS(Animation)
+CLASS(Keyframe, Animation)
METHOD(Keyframe, addEasing, entity(entity, float, float, float(float, float, float, float)))
METHOD(Keyframe, addAnim, void(entity, entity))
METHOD(Keyframe, calcValue, float(entity, float, float, float, float))
entity makeKeyframe(entity obj, void(entity, float) objSetter, float animDuration, float animStart, float animEnd)
{
entity me;
- me = spawnKeyframe();
+ me = NEW(Keyframe);
me.configureAnimation(me, obj, objSetter, time, animDuration, animStart, animEnd);
return me;
}
#ifdef INTERFACE
-CLASS(Item) EXTENDS(Object)
+CLASS(Item, Object)
METHOD(Item, draw, void(entity))
METHOD(Item, keyDown, float(entity, float, float, float))
METHOD(Item, keyUp, float(entity, float, float, float))
#ifdef INTERFACE
-CLASS(BorderImage) EXTENDS(Label)
+CLASS(BorderImage, Label)
METHOD(BorderImage, configureBorderImage, void(entity, string, float, vector, string, float))
METHOD(BorderImage, resizeNotify, void(entity, vector, vector, vector, vector))
METHOD(BorderImage, recalcPositionWithText, void(entity, string))
#ifdef INTERFACE
-CLASS(Button) EXTENDS(Label)
+CLASS(Button, Label)
METHOD(Button, configureButton, void(entity, string, float, string))
METHOD(Button, draw, void(entity))
METHOD(Button, showNotify, void(entity))
#ifdef INTERFACE
void CheckBox_Click(entity me, entity other);
-CLASS(CheckBox) EXTENDS(Button)
+CLASS(CheckBox, Button)
METHOD(CheckBox, configureCheckBox, void(entity, string, float, string))
METHOD(CheckBox, draw, void(entity))
METHOD(CheckBox, playClickSound, void(entity))
#ifdef INTERFACE
-CLASS(Container) EXTENDS(Item)
+CLASS(Container, Item)
METHOD(Container, draw, void(entity))
METHOD(Container, keyUp, float(entity, float, float, float))
METHOD(Container, keyDown, float(entity, float, float, float))
// a subclass may help with using this as a tab
#ifdef INTERFACE
-CLASS(Dialog) EXTENDS(InputContainer)
+CLASS(Dialog, InputContainer)
METHOD(Dialog, configureDialog, void(entity)) // no runtime configuration, all parameters are given in the code!
METHOD(Dialog, fill, void(entity)) // to be overridden by user to fill the dialog with controls
METHOD(Dialog, keyDown, float(entity, float, float, float))
{
float absWidth, absHeight;
- me.frame = spawnBorderImage();
+ me.frame = NEW(BorderImage);
me.frame.configureBorderImage(me.frame, me.title, me.titleFontSize, me.color, me.backgroundImage, me.borderLines * me.titleHeight);
me.frame.zoomedOutTitleBarPosition = me.zoomedOutTitleBarPosition;
me.frame.zoomedOutTitleBar = me.zoomedOutTitleBar;
if(me.closable && me.borderLines > 0)
{
entity closebutton;
- closebutton = me.closeButton = me.frame.closeButton = spawnButton();
+ closebutton = me.closeButton = me.frame.closeButton = NEW(Button);
closebutton.configureButton(closebutton, "", 0, me.closeButtonImage);
closebutton.onClick = Dialog_Close; closebutton.onClickEntity = me;
closebutton.srcMulti = 0;
#ifdef INTERFACE
-CLASS(Image) EXTENDS(Item)
+CLASS(Image, Item)
METHOD(Image, configureImage, void(entity, string))
METHOD(Image, draw, void(entity))
METHOD(Image, toString, string(entity))
#ifdef INTERFACE
-CLASS(InputBox) EXTENDS(Label)
+CLASS(InputBox, Label)
METHOD(InputBox, configureInputBox, void(entity, string, float, float, string))
METHOD(InputBox, draw, void(entity))
METHOD(InputBox, setText, void(entity, string))
#ifdef INTERFACE
-CLASS(InputContainer) EXTENDS(Container)
+CLASS(InputContainer, Container)
METHOD(InputContainer, keyDown, float(entity, float, float, float))
METHOD(InputContainer, mouseMove, float(entity, vector))
METHOD(InputContainer, mousePress, float(entity, vector))
#ifdef INTERFACE
-CLASS(Label) EXTENDS(Item)
+CLASS(Label, Item)
METHOD(Label, configureLabel, void(entity, string, float, float))
METHOD(Label, draw, void(entity))
METHOD(Label, resizeNotify, void(entity, vector, vector, vector, vector))
#ifdef INTERFACE
-CLASS(ListBox) EXTENDS(Item)
+CLASS(ListBox, Item)
METHOD(ListBox, resizeNotify, void(entity, vector, vector, vector, vector))
METHOD(ListBox, configureListBox, void(entity, float, float))
METHOD(ListBox, draw, void(entity))
#ifdef INTERFACE
-CLASS(ModalController) EXTENDS(Container)
+CLASS(ModalController, Container)
METHOD(ModalController, resizeNotify, void(entity, vector, vector, vector, vector))
METHOD(ModalController, draw, void(entity))
METHOD(ModalController, showChild, void(entity, entity, vector, vector, float))
#ifdef INTERFACE
-CLASS(Nexposee) EXTENDS(Container)
+CLASS(Nexposee, Container)
METHOD(Nexposee, draw, void(entity))
METHOD(Nexposee, keyDown, float(entity, float, float, float))
METHOD(Nexposee, keyUp, float(entity, float, float, float))
#ifdef INTERFACE
void RadioButton_Click(entity me, entity other);
-CLASS(RadioButton) EXTENDS(CheckBox)
+CLASS(RadioButton, CheckBox)
METHOD(RadioButton, configureRadioButton, void(entity, string, float, string, float, float))
ATTRIB(RadioButton, checked, float, 0)
ATTRIB(RadioButton, group, float, 0)
// Note:
// to use this, you FIRST call configureSliderVisuals, then configureSliderValues
#ifdef INTERFACE
-CLASS(Slider) EXTENDS(Label)
+CLASS(Slider, Label)
METHOD(Slider, resizeNotify, void(entity, vector, vector, vector, vector))
METHOD(Slider, configureSliderVisuals, void(entity, float, float, float, string))
METHOD(Slider, configureSliderValues, void(entity, float, float, float, float, float, float))
#ifdef INTERFACE
-CLASS(Tab) EXTENDS(Dialog)
+CLASS(Tab, Dialog)
ATTRIB(Tab, isTabRoot, float, 0)
ATTRIB(Tab, closable, float, 0)
ATTRIB(Tab, rootDialog, float, 0)
// Note:
// to use this, you FIRST call configureSliderVisuals, then multiple times addValue, then configureTextSlider
#ifdef INTERFACE
-CLASS(TextSlider) EXTENDS(Slider)
+CLASS(TextSlider, Slider)
METHOD(TextSlider, valueToText, string(entity, float))
METHOD(TextSlider, valueToIdentifier, string(entity, float))
METHOD(TextSlider, setValueFromIdentifier, void(entity, string))
draw_setMousePointer(SKINGFX_CURSOR, SKINSIZE_CURSOR, SKINOFFSET_CURSOR);
loadTooltips();
- anim = spawnAnimHost();
- main = spawnMainWindow(); main.configureMainWindow(main);
+ anim = NEW(AnimHost);
+ main = NEW(MainWindow); main.configureMainWindow(main);
unloadTooltips();
main.resizeNotify(main, '0 0 0', eX * conwidth + eY * conheight, '0 0 0', eX * conwidth + eY * conheight);
Object_vtbl = spawnVtbl(e, null_entity);
return e;
}
+
+#define NEW(cname) (spawn##cname())
+
#endif
#ifdef CLASS
#undef CLASS
-#undef EXTENDS
#undef METHOD
#undef ATTRIB
#undef ATTRIBARRAY
#endif
// for the constructor
-#define CLASS(cname) entity spawn##cname() { entity me;
-#define EXTENDS(base) me = spawn##base (); entity basevtbl; basevtbl = base##_vtbl;
+#define CLASS(cname,base) entity spawn##cname() { entity me = spawn##base (); entity basevtbl; basevtbl = base##_vtbl;
#define METHOD(cname,name,prototype) me.name = cname##_##name;
#define ATTRIB(cname,name,type,val) me.name = val;
#define ATTRIBARRAY(cname,name,type,cnt)
#ifdef CLASS
#undef CLASS
-#undef EXTENDS
#undef METHOD
#undef ATTRIB
#undef ATTRIBARRAY
#undef SUPER
#endif
-#define CLASS(cname) entity spawn##cname(); entity cname##_vtbl;
-#define EXTENDS(base)
+#define CLASS(cname,base) entity spawn##cname(); entity cname##_vtbl;
#define METHOD(cname,name,prototype) prototype cname##_##name; .prototype name;
#define ATTRIB(cname,name,type,val) .type name;
#define ATTRIBARRAY(cname,name,type,cnt) .type name[cnt];
#ifdef INTERFACE
-CLASS(XonoticBigButton) EXTENDS(XonoticButton)
+CLASS(XonoticBigButton, XonoticButton)
METHOD(XonoticBigButton, configureXonoticBigButton, void(entity, string, vector))
ATTRIB(XonoticBigButton, image, string, SKINGFX_BUTTON_BIG)
ATTRIB(XonoticBigButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)
entity makeXonoticBigButton(string theText, vector theColor)
{
entity me;
- me = spawnXonoticBigButton();
+ me = NEW(XonoticBigButton);
me.configureXonoticBigButton(me, theText, theColor);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticBigCommandButton) EXTENDS(XonoticCommandButton)
+CLASS(XonoticBigCommandButton, XonoticCommandButton)
METHOD(XonoticBigCommandButton, configureXonoticBigCommandButton, void(entity, string, vector, string, float))
ATTRIB(XonoticBigCommandButton, image, string, SKINGFX_BUTTON_BIG)
ATTRIB(XonoticBigCommandButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)
entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float theFlags)
{
entity me;
- me = spawnXonoticBigCommandButton();
+ me = NEW(XonoticBigCommandButton);
me.configureXonoticBigCommandButton(me, theText, theColor, theCommand, theFlags);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticButton) EXTENDS(Button)
+CLASS(XonoticButton, Button)
METHOD(XonoticButton, configureXonoticButton, void(entity, string, vector))
ATTRIB(XonoticButton, fontSize, float, SKINFONTSIZE_NORMAL)
ATTRIB(XonoticButton, image, string, SKINGFX_BUTTON)
entity makeXonoticButton(string theText, vector theColor)
{
entity me;
- me = spawnXonoticButton();
+ me = NEW(XonoticButton);
me.configureXonoticButton(me, theText, theColor);
return me;
}
#include "../../common/campaign_common.qh"
#ifdef INTERFACE
-CLASS(XonoticCampaignList) EXTENDS(XonoticListBox)
+CLASS(XonoticCampaignList, XonoticListBox)
METHOD(XonoticCampaignList, configureXonoticCampaignList, void(entity))
ATTRIB(XonoticCampaignList, rowsPerItem, float, 10)
METHOD(XonoticCampaignList, draw, void(entity))
entity makeXonoticCampaignList()
{
entity me;
- me = spawnXonoticCampaignList();
+ me = NEW(XonoticCampaignList);
me.configureXonoticCampaignList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticCharmap) EXTENDS(Item)
+CLASS(XonoticCharmap, Item)
METHOD(XonoticCharmap, configureXonoticCharmap, void(entity, entity))
METHOD(XonoticCharmap, mousePress, float(entity, vector))
METHOD(XonoticCharmap, mouseRelease, float(entity, vector))
entity makeXonoticCharmap(entity controlledInputBox)
{
entity me;
- me = spawnXonoticCharmap();
+ me = NEW(XonoticCharmap);
me.configureXonoticCharmap(me, controlledInputBox);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticCheckBox) EXTENDS(CheckBox)
+CLASS(XonoticCheckBox, CheckBox)
METHOD(XonoticCheckBox, configureXonoticCheckBox, void(entity, float, float, string, string))
METHOD(XonoticCheckBox, setChecked, void(entity, float))
ATTRIB(XonoticCheckBox, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
{
entity me;
- me = spawnXonoticCheckBox();
+ me = NEW(XonoticCheckBox);
me.configureXonoticCheckBox(me, theYesValue, theNoValue, theCvar, theText);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticSliderCheckBox) EXTENDS(CheckBox)
+CLASS(XonoticSliderCheckBox, CheckBox)
METHOD(XonoticSliderCheckBox, configureXonoticSliderCheckBox, void(entity, float, float, entity, string))
METHOD(XonoticSliderCheckBox, setChecked, void(entity, float))
METHOD(XonoticSliderCheckBox, draw, void(entity))
entity makeXonoticSliderCheckBox(float theOffValue, float isInverted, entity theControlledSlider, string theText)
{
entity me;
- me = spawnXonoticSliderCheckBox();
+ me = NEW(XonoticSliderCheckBox);
me.configureXonoticSliderCheckBox(me, theOffValue, isInverted, theControlledSlider, theText);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticCheckBoxString) EXTENDS(CheckBox)
+CLASS(XonoticCheckBoxString, CheckBox)
METHOD(XonoticCheckBoxString, configureXonoticCheckBoxString, void(entity, string, string, string, string))
METHOD(XonoticCheckBoxString, setChecked, void(entity, float))
ATTRIB(XonoticCheckBoxString, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticCheckBoxString(string theYesValue, string theNoValue, string theCvar, string theText)
{
entity me;
- me = spawnXonoticCheckBoxString();
+ me = NEW(XonoticCheckBoxString);
me.configureXonoticCheckBoxString(me, theYesValue, theNoValue, theCvar, theText);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticColorButton) EXTENDS(RadioButton)
+CLASS(XonoticColorButton, RadioButton)
METHOD(XonoticColorButton, configureXonoticColorButton, void(entity, float, float, float))
METHOD(XonoticColorButton, setChecked, void(entity, float))
METHOD(XonoticColorButton, draw, void(entity))
entity makeXonoticColorButton(float theGroup, float theColor, float theValue)
{
entity me;
- me = spawnXonoticColorButton();
+ me = NEW(XonoticColorButton);
me.configureXonoticColorButton(me, theGroup, theColor, theValue);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticColorpicker) EXTENDS(Image)
+CLASS(XonoticColorpicker, Image)
METHOD(XonoticColorpicker, configureXonoticColorpicker, void(entity, entity))
METHOD(XonoticColorpicker, mousePress, float(entity, vector))
METHOD(XonoticColorpicker, mouseRelease, float(entity, vector))
entity makeXonoticColorpicker(entity theTextbox)
{
entity me;
- me = spawnXonoticColorpicker();
+ me = NEW(XonoticColorpicker);
me.configureXonoticColorpicker(me, theTextbox);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticColorpickerString) EXTENDS(Image)
+CLASS(XonoticColorpickerString, Image)
METHOD(XonoticColorpickerString, configureXonoticColorpickerString, void(entity, string, string))
METHOD(XonoticColorpickerString, mousePress, float(entity, vector))
METHOD(XonoticColorpickerString, mouseRelease, float(entity, vector))
METHOD(XonoticColorpickerString, mouseDrag, float(entity, vector))
ATTRIB(XonoticColorpickerString, cvarName, string, string_null)
- METHOD(XonoticColorPickerString, loadCvars, void(entity))
- METHOD(XonoticColorPickerString, saveCvars, void(entity))
+ METHOD(XonoticColorpickerString, loadCvars, void(entity))
+ METHOD(XonoticColorpickerString, saveCvars, void(entity))
ATTRIB(XonoticColorpickerString, prevcoords, vector, '0 0 0')
ATTRIB(XonoticColorpickerString, image, string, SKINGFX_COLORPICKER)
ATTRIB(XonoticColorpickerString, imagemargin, vector, SKINMARGIN_COLORPICKER)
entity makeXonoticColorpickerString(string theCvar, string theDefaultCvar)
{
entity me;
- me = spawnXonoticColorpickerString();
+ me = NEW(XonoticColorpickerString);
me.configureXonoticColorpickerString(me, theCvar, theDefaultCvar);
return me;
}
}
}
-void XonoticColorPickerString_loadCvars(entity me)
+void XonoticColorpickerString_loadCvars(entity me)
{
if (!me.cvarName)
return;
me.prevcoords = color_hslimage(stov(cvar_string(me.cvarName)), me.imagemargin);
}
-void XonoticColorPickerString_saveCvars(entity me)
+void XonoticColorpickerString_saveCvars(entity me)
{
if (!me.cvarName)
return;
#endif
#ifdef INTERFACE
-CLASS(XonoticCommandButton) EXTENDS(XonoticButton)
+CLASS(XonoticCommandButton, XonoticButton)
METHOD(XonoticCommandButton, configureXonoticCommandButton, void(entity, string, vector, string, float))
ATTRIB(XonoticCommandButton, onClickCommand, string, string_null)
ATTRIB(XonoticCommandButton, flags, float, 0)
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, float theFlags)
{
entity me;
- me = spawnXonoticCommandButton();
+ me = NEW(XonoticCommandButton);
me.configureXonoticCommandButton(me, theText, theColor, theCommand, theFlags);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticCreditsList) EXTENDS(XonoticListBox)
+CLASS(XonoticCreditsList, XonoticListBox)
METHOD(XonoticCreditsList, configureXonoticCreditsList, void(entity))
ATTRIB(XonoticCreditsList, rowsPerItem, float, 1)
METHOD(XonoticCreditsList, draw, void(entity))
ATTRIB(XonoticCreditsList, bufferIndex, float, 0)
ATTRIB(XonoticCreditsList, scrolling, float, 0)
- ATTRIB(XonoticListBox, alphaBG, float, 0)
+ ATTRIB(XonoticCreditsList, alphaBG, float, 0)
ENDCLASS(XonoticCreditsList)
entity makeXonoticCreditsList();
#endif
entity makeXonoticCreditsList()
{
entity me;
- me = spawnXonoticCreditsList();
+ me = NEW(XonoticCreditsList);
me.configureXonoticCreditsList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticCrosshairButton) EXTENDS(RadioButton)
+CLASS(XonoticCrosshairButton, RadioButton)
METHOD(XonoticCrosshairButton, configureXonoticCrosshairButton, void(entity, float, float))
METHOD(XonoticCrosshairButton, setChecked, void(entity, float))
METHOD(XonoticCrosshairButton, draw, void(entity))
entity makeXonoticCrosshairButton(float theGroup, float theCrosshair)
{
entity me;
- me = spawnXonoticCrosshairButton();
+ me = NEW(XonoticCrosshairButton);
me.configureXonoticCrosshairButton(me, theGroup, theCrosshair);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticCvarList) EXTENDS(XonoticListBox)
+CLASS(XonoticCvarList, XonoticListBox)
METHOD(XonoticCvarList, configureXonoticCvarList, void(entity))
ATTRIB(XonoticCvarList, rowsPerItem, float, 1)
METHOD(XonoticCvarList, drawListBoxItem, void(entity, float, vector, float))
entity makeXonoticCvarList()
{
entity me;
- me = spawnXonoticCvarList();
+ me = NEW(XonoticCvarList);
me.configureXonoticCvarList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticDemoList) EXTENDS(XonoticListBox)
+CLASS(XonoticDemoList, XonoticListBox)
METHOD(XonoticDemoList, configureXonoticDemoList, void(entity))
ATTRIB(XonoticDemoList, rowsPerItem, float, 1)
METHOD(XonoticDemoList, resizeNotify, void(entity, vector, vector, vector, vector))
entity makeXonoticDemoList()
{
entity me;
- me = spawnXonoticDemoList();
+ me = NEW(XonoticDemoList);
me.configureXonoticDemoList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticDialog) EXTENDS(Dialog)
+CLASS(XonoticDialog, Dialog)
// still to be customized by user
/*
ATTRIB(XonoticDialog, closable, float, 1)
#ifdef INTERFACE
-CLASS(XonoticCreditsDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticCreditsDialog, XonoticDialog)
METHOD(XonoticCreditsDialog, fill, void(entity))
METHOD(XonoticCreditsDialog, focusEnter, void(entity))
ATTRIB(XonoticCreditsDialog, title, string, _("Credits"))
#ifdef INTERFACE
-CLASS(XonoticFirstRunDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticFirstRunDialog, XonoticRootDialog)
METHOD(XonoticFirstRunDialog, fill, void(entity)) // to be overridden by user to fill the dialog with controls
ATTRIB(XonoticFirstRunDialog, title, string, _("Welcome"))
ATTRIB(XonoticFirstRunDialog, color, vector, SKINCOLOR_DIALOG_FIRSTRUN)
#ifdef INTERFACE
-CLASS(XonoticHUDAmmoDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDAmmoDialog, XonoticRootDialog)
METHOD(XonoticHUDAmmoDialog, fill, void(entity))
ATTRIB(XonoticHUDAmmoDialog, title, string, _("Ammo Panel"))
ATTRIB(XonoticHUDAmmoDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDBuffsDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDBuffsDialog, XonoticRootDialog)
METHOD(XonoticHUDBuffsDialog, fill, void(entity))
ATTRIB(XonoticHUDBuffsDialog, title, string, _("Buffs Panel"))
ATTRIB(XonoticHUDBuffsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDCenterprintDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDCenterprintDialog, XonoticRootDialog)
METHOD(XonoticHUDCenterprintDialog, fill, void(entity))
ATTRIB(XonoticHUDCenterprintDialog, title, string, _("Centerprint Panel"))
ATTRIB(XonoticHUDCenterprintDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDChatDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDChatDialog, XonoticRootDialog)
METHOD(XonoticHUDChatDialog, fill, void(entity))
ATTRIB(XonoticHUDChatDialog, title, string, _("Chat Panel"))
ATTRIB(XonoticHUDChatDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDEngineInfoDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDEngineInfoDialog, XonoticRootDialog)
METHOD(XonoticHUDEngineInfoDialog, fill, void(entity))
ATTRIB(XonoticHUDEngineInfoDialog, title, string, _("Engine Info Panel"))
ATTRIB(XonoticHUDEngineInfoDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDHealthArmorDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDHealthArmorDialog, XonoticRootDialog)
METHOD(XonoticHUDHealthArmorDialog, fill, void(entity))
ATTRIB(XonoticHUDHealthArmorDialog, title, string, _("Health/Armor Panel"))
ATTRIB(XonoticHUDHealthArmorDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDInfoMessagesDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDInfoMessagesDialog, XonoticRootDialog)
METHOD(XonoticHUDInfoMessagesDialog, fill, void(entity))
ATTRIB(XonoticHUDInfoMessagesDialog, title, string, _("Info Messages Panel"))
ATTRIB(XonoticHUDInfoMessagesDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDModIconsDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDModIconsDialog, XonoticRootDialog)
METHOD(XonoticHUDModIconsDialog, fill, void(entity))
ATTRIB(XonoticHUDModIconsDialog, title, string, _("Mod Icons Panel"))
ATTRIB(XonoticHUDModIconsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDNotificationDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDNotificationDialog, XonoticRootDialog)
METHOD(XonoticHUDNotificationDialog, fill, void(entity))
ATTRIB(XonoticHUDNotificationDialog, title, string, _("Notification Panel"))
ATTRIB(XonoticHUDNotificationDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDPhysicsDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDPhysicsDialog, XonoticRootDialog)
METHOD(XonoticHUDPhysicsDialog, fill, void(entity))
ATTRIB(XonoticHUDPhysicsDialog, title, string, _("Physics Panel"))
ATTRIB(XonoticHUDPhysicsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDPowerupsDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDPowerupsDialog, XonoticRootDialog)
METHOD(XonoticHUDPowerupsDialog, fill, void(entity))
ATTRIB(XonoticHUDPowerupsDialog, title, string, _("Powerups Panel"))
ATTRIB(XonoticHUDPowerupsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDPressedKeysDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDPressedKeysDialog, XonoticRootDialog)
METHOD(XonoticHUDPressedKeysDialog, fill, void(entity))
ATTRIB(XonoticHUDPressedKeysDialog, title, string, _("Pressed Keys Panel"))
ATTRIB(XonoticHUDPressedKeysDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDRaceTimerDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDRaceTimerDialog, XonoticRootDialog)
METHOD(XonoticHUDRaceTimerDialog, fill, void(entity))
ATTRIB(XonoticHUDRaceTimerDialog, title, string, _("Race Timer Panel"))
ATTRIB(XonoticHUDRaceTimerDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDRadarDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDRadarDialog, XonoticRootDialog)
METHOD(XonoticHUDRadarDialog, fill, void(entity))
ATTRIB(XonoticHUDRadarDialog, title, string, _("Radar Panel"))
ATTRIB(XonoticHUDRadarDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDScoreDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDScoreDialog, XonoticRootDialog)
METHOD(XonoticHUDScoreDialog, fill, void(entity))
ATTRIB(XonoticHUDScoreDialog, title, string, _("Score Panel"))
ATTRIB(XonoticHUDScoreDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDTimerDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDTimerDialog, XonoticRootDialog)
METHOD(XonoticHUDTimerDialog, fill, void(entity))
ATTRIB(XonoticHUDTimerDialog, title, string, _("Timer Panel"))
ATTRIB(XonoticHUDTimerDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDVoteDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDVoteDialog, XonoticRootDialog)
METHOD(XonoticHUDVoteDialog, fill, void(entity))
ATTRIB(XonoticHUDVoteDialog, title, string, _("Vote Panel"))
ATTRIB(XonoticHUDVoteDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDWeaponsDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDWeaponsDialog, XonoticRootDialog)
METHOD(XonoticHUDWeaponsDialog, fill, void(entity))
ATTRIB(XonoticHUDWeaponsDialog, title, string, _("Weapons Panel"))
ATTRIB(XonoticHUDWeaponsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticHUDExitDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticHUDExitDialog, XonoticRootDialog)
METHOD(XonoticHUDExitDialog, fill, void(entity))
ATTRIB(XonoticHUDExitDialog, title, string, _("Panel HUD Setup"))
ATTRIB(XonoticHUDExitDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
#ifdef INTERFACE
-CLASS(XonoticMonsterToolsDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticMonsterToolsDialog, XonoticRootDialog)
METHOD(XonoticMonsterToolsDialog, fill, void(entity)) // to be overridden by user to fill the dialog with controls
ATTRIB(XonoticMonsterToolsDialog, title, string, _("Monster Tools"))
ATTRIB(XonoticMonsterToolsDialog, color, vector, SKINCOLOR_DIALOG_SANDBOXTOOLS)
#ifdef INTERFACE
-CLASS(XonoticMultiplayerDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticMultiplayerDialog, XonoticDialog)
METHOD(XonoticMultiplayerDialog, fill, void(entity))
ATTRIB(XonoticMultiplayerDialog, title, string, _("Multiplayer"))
ATTRIB(XonoticMultiplayerDialog, color, vector, SKINCOLOR_DIALOG_MULTIPLAYER)
#ifdef INTERFACE
-CLASS(XonoticServerCreateTab) EXTENDS(XonoticTab)
+CLASS(XonoticServerCreateTab, XonoticTab)
METHOD(XonoticServerCreateTab, fill, void(entity))
METHOD(XonoticServerCreateTab, gameTypeChangeNotify, void(entity))
METHOD(XonoticServerCreateTab, gameTypeSelectNotify, void(entity))
entity makeXonoticServerCreateTab()
{
entity me;
- me = spawnXonoticServerCreateTab();
+ me = NEW(XonoticServerCreateTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticMapInfoDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticMapInfoDialog, XonoticDialog)
METHOD(XonoticMapInfoDialog, fill, void(entity))
METHOD(XonoticMapInfoDialog, loadMapInfo, void(entity, float, entity))
ATTRIB(XonoticMapInfoDialog, title, string, _("Map Information"))
#include "../../common/weapons/weapons.qh"
#ifdef INTERFACE
-CLASS(XonoticMutatorsDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticMutatorsDialog, XonoticDialog)
METHOD(XonoticMutatorsDialog, toString, string(entity))
METHOD(XonoticMutatorsDialog, fill, void(entity))
METHOD(XonoticMutatorsDialog, showNotify, void(entity))
#ifdef INTERFACE
-CLASS(XonoticServerListTab) EXTENDS(XonoticTab)
+CLASS(XonoticServerListTab, XonoticTab)
METHOD(XonoticServerListTab, fill, void(entity))
ATTRIB(XonoticServerListTab, title, string, _("Join"))
ATTRIB(XonoticServerListTab, intendedWidth, float, 0.9)
entity makeXonoticServerListTab()
{
entity me;
- me = spawnXonoticServerListTab();
+ me = NEW(XonoticServerListTab);
me.configureDialog(me);
return me;
}
#include "../../common/mapinfo.qh"
#ifdef INTERFACE
-CLASS(XonoticServerInfoDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticServerInfoDialog, XonoticDialog)
METHOD(XonoticServerInfoDialog, fill, void(entity))
METHOD(XonoticServerInfoDialog, loadServerInfo, void(entity, float))
ATTRIB(XonoticServerInfoDialog, title, string, _("Server Information"))
#ifdef INTERFACE
-CLASS(XonoticMediaTab) EXTENDS(XonoticTab)
+CLASS(XonoticMediaTab, XonoticTab)
METHOD(XonoticMediaTab, fill, void(entity))
ATTRIB(XonoticMediaTab, title, string, _("Media"))
ATTRIB(XonoticMediaTab, intendedWidth, float, 0.9)
entity makeXonoticMediaTab()
{
entity me;
- me = spawnXonoticMediaTab();
+ me = NEW(XonoticMediaTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticDemoBrowserTab) EXTENDS(XonoticTab)
+CLASS(XonoticDemoBrowserTab, XonoticTab)
METHOD(XonoticDemoBrowserTab, fill, void(entity))
ATTRIB(XonoticDemoBrowserTab, title, string, _("Demo"))
ATTRIB(XonoticDemoBrowserTab, intendedWidth, float, 0.9)
entity makeXonoticDemoBrowserTab()
{
entity me;
- me = spawnXonoticDemoBrowserTab();
+ me = NEW(XonoticDemoBrowserTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticDemoStartConfirmDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticDemoStartConfirmDialog, XonoticDialog)
METHOD(XonoticDemoStartConfirmDialog, fill, void(entity))
ATTRIB(XonoticDemoStartConfirmDialog, title, string, _("Disconnect"))
ATTRIB(XonoticDemoStartConfirmDialog, color, vector, SKINCOLOR_DIALOG_HUDCONFIRM)
#ifdef INTERFACE
-CLASS(XonoticDemoTimeConfirmDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticDemoTimeConfirmDialog, XonoticDialog)
METHOD(XonoticDemoTimeConfirmDialog, fill, void(entity))
ATTRIB(XonoticDemoTimeConfirmDialog, title, string, _("Disconnect"))
ATTRIB(XonoticDemoTimeConfirmDialog, color, vector, SKINCOLOR_DIALOG_HUDCONFIRM)
#ifdef INTERFACE
-CLASS(XonoticMusicPlayerTab) EXTENDS(XonoticTab)
+CLASS(XonoticMusicPlayerTab, XonoticTab)
METHOD(XonoticMusicPlayerTab, fill, void(entity))
ATTRIB(XonoticMusicPlayerTab, title, string, _("Music"))
ATTRIB(XonoticMusicPlayerTab, intendedWidth, float, 0.9)
entity makeXonoticMusicPlayerTab()
{
entity me;
- me = spawnXonoticMusicPlayerTab();
+ me = NEW(XonoticMusicPlayerTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticScreenshotBrowserTab) EXTENDS(XonoticTab)
+CLASS(XonoticScreenshotBrowserTab, XonoticTab)
METHOD(XonoticScreenshotBrowserTab, fill, void(entity))
ATTRIB(XonoticScreenshotBrowserTab, title, string, "Screenshot")
ATTRIB(XonoticScreenshotBrowserTab, intendedWidth, float, 1)
entity makeXonoticScreenshotBrowserTab()
{
entity me;
- me = spawnXonoticScreenshotBrowserTab();
+ me = NEW(XonoticScreenshotBrowserTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticScreenshotViewerDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticScreenshotViewerDialog, XonoticDialog)
METHOD(XonoticScreenshotViewerDialog, fill, void(entity))
METHOD(XonoticScreenshotViewerDialog, keyDown, float(entity, float, float, float))
METHOD(XonoticScreenshotViewerDialog, loadScreenshot, void(entity, string))
#ifdef INTERFACE
-CLASS(XonoticProfileTab) EXTENDS(XonoticTab)
+CLASS(XonoticProfileTab, XonoticTab)
METHOD(XonoticProfileTab, fill, void(entity))
METHOD(XonoticProfileTab, draw, void(entity))
ATTRIB(XonoticProfileTab, title, string, _("Profile"))
entity makeXonoticProfileTab()
{
entity me;
- me = spawnXonoticProfileTab();
+ me = NEW(XonoticProfileTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticQuitDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticQuitDialog, XonoticDialog)
METHOD(XonoticQuitDialog, fill, void(entity))
ATTRIB(XonoticQuitDialog, title, string, _("Quit"))
ATTRIB(XonoticQuitDialog, color, vector, SKINCOLOR_DIALOG_QUIT)
#ifdef INTERFACE
-CLASS(XonoticSandboxToolsDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticSandboxToolsDialog, XonoticRootDialog)
METHOD(XonoticSandboxToolsDialog, fill, void(entity)) // to be overridden by user to fill the dialog with controls
ATTRIB(XonoticSandboxToolsDialog, title, string, _("Sandbox Tools")) // ;)
ATTRIB(XonoticSandboxToolsDialog, color, vector, SKINCOLOR_DIALOG_SANDBOXTOOLS)
#ifdef INTERFACE
-CLASS(XonoticSettingsDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticSettingsDialog, XonoticDialog)
METHOD(XonoticSettingsDialog, fill, void(entity))
ATTRIB(XonoticSettingsDialog, title, string, _("Settings"))
ATTRIB(XonoticSettingsDialog, color, vector, SKINCOLOR_DIALOG_SETTINGS)
#ifdef INTERFACE
-CLASS(XonoticAudioSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticAudioSettingsTab, XonoticTab)
METHOD(XonoticAudioSettingsTab, fill, void(entity))
ATTRIB(XonoticAudioSettingsTab, title, string, _("Audio"))
ATTRIB(XonoticAudioSettingsTab, intendedWidth, float, 0.9)
entity makeXonoticAudioSettingsTab()
{
entity me;
- me = spawnXonoticAudioSettingsTab();
+ me = NEW(XonoticAudioSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticEffectsSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticEffectsSettingsTab, XonoticTab)
METHOD(XonoticEffectsSettingsTab, fill, void(entity))
ATTRIB(XonoticEffectsSettingsTab, title, string, _("Effects"))
ATTRIB(XonoticEffectsSettingsTab, intendedWidth, float, 0.9)
entity makeXonoticEffectsSettingsTab()
{
entity me;
- me = spawnXonoticEffectsSettingsTab();
+ me = NEW(XonoticEffectsSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticGameSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticGameSettingsTab, XonoticTab)
METHOD(XonoticGameSettingsTab, fill, void(entity))
ATTRIB(XonoticGameSettingsTab, title, string, _("Game"))
ATTRIB(XonoticGameSettingsTab, intendedWidth, float, 0.9)
entity makeXonoticGameSettingsTab()
{
entity me;
- me = spawnXonoticGameSettingsTab();
+ me = NEW(XonoticGameSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticGameCrosshairSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticGameCrosshairSettingsTab, XonoticTab)
//METHOD(XonoticGameCrosshairSettingsTab, toString, string(entity))
METHOD(XonoticGameCrosshairSettingsTab, fill, void(entity))
METHOD(XonoticGameCrosshairSettingsTab, showNotify, void(entity))
entity makeXonoticGameCrosshairSettingsTab()
{
entity me;
- me = spawnXonoticGameCrosshairSettingsTab();
+ me = NEW(XonoticGameCrosshairSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticGameHUDSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticGameHUDSettingsTab, XonoticTab)
//METHOD(XonoticGameHUDSettingsTab, toString, string(entity))
METHOD(XonoticGameHUDSettingsTab, fill, void(entity))
METHOD(XonoticGameHUDSettingsTab, showNotify, void(entity))
entity makeXonoticGameHUDSettingsTab()
{
entity me;
- me = spawnXonoticGameHUDSettingsTab();
+ me = NEW(XonoticGameHUDSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticHUDConfirmDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticHUDConfirmDialog, XonoticDialog)
METHOD(XonoticHUDConfirmDialog, fill, void(entity))
ATTRIB(XonoticHUDConfirmDialog, title, string, _("Enter HUD editor"))
ATTRIB(XonoticHUDConfirmDialog, color, vector, SKINCOLOR_DIALOG_HUDCONFIRM)
#ifdef INTERFACE
-CLASS(XonoticGameMessageSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticGameMessageSettingsTab, XonoticTab)
//METHOD(XonoticGameWeaponsSettingsTab, toString, string(entity))
METHOD(XonoticGameMessageSettingsTab, fill, void(entity))
METHOD(XonoticGameMessageSettingsTab, showNotify, void(entity))
entity makeXonoticGameMessageSettingsTab()
{
entity me;
- me = spawnXonoticGameMessageSettingsTab();
+ me = NEW(XonoticGameMessageSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticGameModelSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticGameModelSettingsTab, XonoticTab)
//METHOD(XonoticGameModelSettingsTab, toString, string(entity))
METHOD(XonoticGameModelSettingsTab, fill, void(entity))
METHOD(XonoticGameModelSettingsTab, showNotify, void(entity))
entity makeXonoticGameModelSettingsTab()
{
entity me;
- me = spawnXonoticGameModelSettingsTab();
+ me = NEW(XonoticGameModelSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticGameViewSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticGameViewSettingsTab, XonoticTab)
//METHOD(XonoticGameCrosshairSettingsTab, toString, string(entity))
METHOD(XonoticGameViewSettingsTab, fill, void(entity))
METHOD(XonoticGameViewSettingsTab, showNotify, void(entity))
entity makeXonoticGameViewSettingsTab()
{
entity me;
- me = spawnXonoticGameViewSettingsTab();
+ me = NEW(XonoticGameViewSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticGameWeaponsSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticGameWeaponsSettingsTab, XonoticTab)
//METHOD(XonoticGameWeaponsSettingsTab, toString, string(entity))
METHOD(XonoticGameWeaponsSettingsTab, fill, void(entity))
METHOD(XonoticGameWeaponsSettingsTab, showNotify, void(entity))
entity makeXonoticGameWeaponsSettingsTab()
{
entity me;
- me = spawnXonoticGameWeaponsSettingsTab();
+ me = NEW(XonoticGameWeaponsSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticInputSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticInputSettingsTab, XonoticTab)
METHOD(XonoticInputSettingsTab, fill, void(entity))
ATTRIB(XonoticInputSettingsTab, title, string, _("Input"))
ATTRIB(XonoticInputSettingsTab, intendedWidth, float, 0.9)
entity makeXonoticInputSettingsTab()
{
entity me;
- me = spawnXonoticInputSettingsTab();
+ me = NEW(XonoticInputSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticUserbindEditDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticUserbindEditDialog, XonoticDialog)
METHOD(XonoticUserbindEditDialog, loadUserBind, void(entity, string, string, string))
METHOD(XonoticUserbindEditDialog, fill, void(entity))
ATTRIB(XonoticUserbindEditDialog, title, string, _("User defined key bind"))
#ifdef INTERFACE
-CLASS(XonoticMiscSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticMiscSettingsTab, XonoticTab)
METHOD(XonoticMiscSettingsTab, fill, void(entity))
ATTRIB(XonoticMiscSettingsTab, title, string, _("Misc"))
ATTRIB(XonoticMiscSettingsTab, intendedWidth, float, 0.9)
entity makeXonoticMiscSettingsTab()
{
entity me;
- me = spawnXonoticMiscSettingsTab();
+ me = NEW(XonoticMiscSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticCvarsDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticCvarsDialog, XonoticDialog)
METHOD(XonoticCvarsDialog, fill, void(entity))
METHOD(XonoticCvarsDialog, showNotify, void(entity))
ATTRIB(XonoticCvarsDialog, title, string, _("Advanced settings"))
#ifdef INTERFACE
-CLASS(XonoticResetDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticResetDialog, XonoticDialog)
METHOD(XonoticResetDialog, fill, void(entity))
ATTRIB(XonoticResetDialog, title, string, _("Factory reset"))
ATTRIB(XonoticResetDialog, color, vector, SKINCOLOR_DIALOG_QUIT)
#ifdef INTERFACE
-CLASS(XonoticUserSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticUserSettingsTab, XonoticTab)
METHOD(XonoticUserSettingsTab, fill, void(entity))
ATTRIB(XonoticUserSettingsTab, title, string, _("User"))
ATTRIB(XonoticUserSettingsTab, intendedWidth, float, 0.9)
entity makeXonoticUserSettingsTab()
{
entity me;
- me = spawnXonoticUserSettingsTab();
+ me = NEW(XonoticUserSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticLanguageWarningDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticLanguageWarningDialog, XonoticDialog)
METHOD(XonoticLanguageWarningDialog, fill, void(entity)) // to be overridden by user to fill the dialog with controls
ATTRIB(XonoticLanguageWarningDialog, title, string, _("Warning"))
ATTRIB(XonoticLanguageWarningDialog, color, vector, SKINCOLOR_DIALOG_HUDCONFIRM)
#ifdef INTERFACE
-CLASS(XonoticVideoSettingsTab) EXTENDS(XonoticTab)
+CLASS(XonoticVideoSettingsTab, XonoticTab)
METHOD(XonoticVideoSettingsTab, fill, void(entity))
ATTRIB(XonoticVideoSettingsTab, title, string, _("Video"))
ATTRIB(XonoticVideoSettingsTab, intendedWidth, float, 0.9)
entity makeXonoticVideoSettingsTab()
{
entity me;
- me = spawnXonoticVideoSettingsTab();
+ me = NEW(XonoticVideoSettingsTab);
me.configureDialog(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticSingleplayerDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticSingleplayerDialog, XonoticDialog)
METHOD(XonoticSingleplayerDialog, fill, void(entity))
ATTRIB(XonoticSingleplayerDialog, title, string, _("Singleplayer"))
ATTRIB(XonoticSingleplayerDialog, color, vector, SKINCOLOR_DIALOG_SINGLEPLAYER)
#ifdef INTERFACE
-CLASS(XonoticWinnerDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticWinnerDialog, XonoticDialog)
METHOD(XonoticWinnerDialog, fill, void(entity))
METHOD(XonoticWinnerDialog, focusEnter, void(entity))
ATTRIB(XonoticWinnerDialog, title, string, _("Winner"))
#ifdef INTERFACE
-CLASS(XonoticTeamSelectDialog) EXTENDS(XonoticRootDialog)
+CLASS(XonoticTeamSelectDialog, XonoticRootDialog)
METHOD(XonoticTeamSelectDialog, fill, void(entity)) // to be overridden by user to fill the dialog with controls
METHOD(XonoticTeamSelectDialog, showNotify, void(entity))
ATTRIB(XonoticTeamSelectDialog, title, string, _("Team Selection")) // ;)
#ifdef INTERFACE
-CLASS(XonoticGametypeButton) EXTENDS(RadioButton)
+CLASS(XonoticGametypeButton, RadioButton)
METHOD(XonoticGametypeButton, configureXonoticGametypeButton, void(entity, float, string, string))
METHOD(XonoticGametypeButton, setChecked, void(entity, float))
ATTRIB(XonoticGametypeButton, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticGametypeButton(float theGroup, string theCvar, string theText)
{
entity me;
- me = spawnXonoticGametypeButton();
+ me = NEW(XonoticGametypeButton);
me.configureXonoticGametypeButton(me, theGroup, theCvar, theText);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticGametypeList) EXTENDS(XonoticListBox)
+CLASS(XonoticGametypeList, XonoticListBox)
METHOD(XonoticGametypeList, configureXonoticGametypeList, void(entity))
ATTRIB(XonoticGametypeList, rowsPerItem, float, 2)
METHOD(XonoticGametypeList, drawListBoxItem, void(entity, float, vector, float))
entity makeXonoticGametypeList(void)
{
entity me;
- me = spawnXonoticGametypeList();
+ me = NEW(XonoticGametypeList);
me.configureXonoticGametypeList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticImage) EXTENDS(Image)
+CLASS(XonoticImage, Image)
METHOD(XonoticImage, configureXonoticImage, void(entity, string, float))
ENDCLASS(XonoticImage)
entity makeXonoticImage(string theImage, float theAspect);
entity makeXonoticImage(string theImage, float theAspect)
{
entity me;
- me = spawnXonoticImage();
+ me = NEW(XonoticImage);
me.configureXonoticImage(me, theImage, theAspect);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticInputBox) EXTENDS(InputBox)
+CLASS(XonoticInputBox, InputBox)
METHOD(XonoticInputBox, configureXonoticInputBox, void(entity, float, string))
METHOD(XonoticInputBox, focusLeave, void(entity))
METHOD(XonoticInputBox, setText, void(entity, string))
entity makeXonoticInputBox(float doEditColorCodes, string theCvar)
{
entity me;
- me = spawnXonoticInputBox();
+ me = NEW(XonoticInputBox);
me.configureXonoticInputBox(me, doEditColorCodes, theCvar);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticKeyBinder) EXTENDS(XonoticListBox)
+CLASS(XonoticKeyBinder, XonoticListBox)
METHOD(XonoticKeyBinder, configureXonoticKeyBinder, void(entity))
ATTRIB(XonoticKeyBinder, rowsPerItem, int, 1)
METHOD(XonoticKeyBinder, drawListBoxItem, void(entity, float, vector, float))
entity makeXonoticKeyBinder()
{
entity me;
- me = spawnXonoticKeyBinder();
+ me = NEW(XonoticKeyBinder);
me.configureXonoticKeyBinder(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticLanguageList) EXTENDS(XonoticListBox)
+CLASS(XonoticLanguageList, XonoticListBox)
METHOD(XonoticLanguageList, configureXonoticLanguageList, void(entity))
ATTRIB(XonoticLanguageList, rowsPerItem, float, 1)
METHOD(XonoticLanguageList, drawListBoxItem, void(entity, float, vector, float))
entity makeXonoticLanguageList()
{
entity me;
- me = spawnXonoticLanguageList();
+ me = NEW(XonoticLanguageList);
me.configureXonoticLanguageList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticListBox) EXTENDS(ListBox)
+CLASS(XonoticListBox, ListBox)
METHOD(XonoticListBox, configureXonoticListBox, void(entity))
ATTRIB(XonoticListBox, fontSize, float, SKINFONTSIZE_NORMAL)
ATTRIB(XonoticListBox, scrollbarWidth, float, SKINWIDTH_SCROLLBAR)
entity makeXonoticListBox()
{
entity me;
- me = spawnXonoticListBox();
+ me = NEW(XonoticListBox);
me.configureXonoticListBox(me);
return me;
}
#ifdef INTERFACE
-CLASS(MainWindow) EXTENDS(ModalController)
+CLASS(MainWindow, ModalController)
METHOD(MainWindow, configureMainWindow, void(entity))
METHOD(MainWindow, draw, void(entity))
ATTRIB(MainWindow, firstRunDialog, entity, NULL)
entity n, i;
// dialog run upon startup
- me.firstRunDialog = i = spawnXonoticFirstRunDialog();
+ me.firstRunDialog = i = NEW(XonoticFirstRunDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
// hud_configure dialogs
- i = spawnXonoticHUDExitDialog();
+ i = NEW(XonoticHUDExitDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDNotificationDialog();
+ i = NEW(XonoticHUDNotificationDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDAmmoDialog();
+ i = NEW(XonoticHUDAmmoDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDHealthArmorDialog();
+ i = NEW(XonoticHUDHealthArmorDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDChatDialog();
+ i = NEW(XonoticHUDChatDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDModIconsDialog();
+ i = NEW(XonoticHUDModIconsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDPowerupsDialog();
+ i = NEW(XonoticHUDPowerupsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDPressedKeysDialog();
+ i = NEW(XonoticHUDPressedKeysDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDRaceTimerDialog();
+ i = NEW(XonoticHUDRaceTimerDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDRadarDialog();
+ i = NEW(XonoticHUDRadarDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDScoreDialog();
+ i = NEW(XonoticHUDScoreDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDTimerDialog();
+ i = NEW(XonoticHUDTimerDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDVoteDialog();
+ i = NEW(XonoticHUDVoteDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDWeaponsDialog();
+ i = NEW(XonoticHUDWeaponsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDEngineInfoDialog();
+ i = NEW(XonoticHUDEngineInfoDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDInfoMessagesDialog();
+ i = NEW(XonoticHUDInfoMessagesDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDPhysicsDialog();
+ i = NEW(XonoticHUDPhysicsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- me.screenshotViewerDialog = i = spawnXonoticScreenshotViewerDialog();
+ me.screenshotViewerDialog = i = NEW(XonoticScreenshotViewerDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDCenterprintDialog();
+ i = NEW(XonoticHUDCenterprintDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticHUDBuffsDialog();
+ i = NEW(XonoticHUDBuffsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
// dialogs used by settings
- me.userbindEditDialog = i = spawnXonoticUserbindEditDialog();
+ me.userbindEditDialog = i = NEW(XonoticUserbindEditDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- me.cvarsDialog = i = spawnXonoticCvarsDialog();
+ me.cvarsDialog = i = NEW(XonoticCvarsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- me.resetDialog = i = spawnXonoticResetDialog();
+ me.resetDialog = i = NEW(XonoticResetDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- me.languageWarningDialog = i = spawnXonoticLanguageWarningDialog();
+ me.languageWarningDialog = i = NEW(XonoticLanguageWarningDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- me.hudconfirmDialog = i = spawnXonoticHUDConfirmDialog();
+ me.hudconfirmDialog = i = NEW(XonoticHUDConfirmDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
// dialog used by singleplayer
- me.winnerDialog = i = spawnXonoticWinnerDialog();
+ me.winnerDialog = i = NEW(XonoticWinnerDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
// dialog used by multiplayer/join
- me.serverInfoDialog = i = spawnXonoticServerInfoDialog();
+ me.serverInfoDialog = i = NEW(XonoticServerInfoDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- me.demostartconfirmDialog = i = spawnXonoticDemoStartConfirmDialog();
+ me.demostartconfirmDialog = i = NEW(XonoticDemoStartConfirmDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- me.demotimeconfirmDialog = i = spawnXonoticDemoTimeConfirmDialog();
+ me.demotimeconfirmDialog = i = NEW(XonoticDemoTimeConfirmDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
// dialogs used by multiplayer/create
- me.mapInfoDialog = i = spawnXonoticMapInfoDialog();
+ me.mapInfoDialog = i = NEW(XonoticMapInfoDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- me.mutatorsDialog = i = spawnXonoticMutatorsDialog();
+ me.mutatorsDialog = i = NEW(XonoticMutatorsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
// mutator dialogs
- i = spawnXonoticSandboxToolsDialog();
+ i = NEW(XonoticSandboxToolsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z * SKINALPHA_DIALOG_SANDBOXTOOLS);
// miscellaneous dialogs
- i = spawnXonoticTeamSelectDialog();
+ i = NEW(XonoticTeamSelectDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
- i = spawnXonoticMonsterToolsDialog();
+ i = NEW(XonoticMonsterToolsDialog);
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z * SKINALPHA_DIALOG_SANDBOXTOOLS);
// main dialogs/windows
- me.mainNexposee = n = spawnXonoticNexposee();
+ me.mainNexposee = n = NEW(XonoticNexposee);
/*
if(checkextension("DP_GECKO_SUPPORT"))
{
n.setNexposee(n, i, '0.1 0.1 0', SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
}
*/
- i = spawnXonoticSingleplayerDialog();
+ i = NEW(XonoticSingleplayerDialog);
i.configureDialog(i);
n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
n.setNexposee(n, i, SKINPOSITION_DIALOG_SINGLEPLAYER, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
- i = spawnXonoticMultiplayerDialog();
+ i = NEW(XonoticMultiplayerDialog);
i.configureDialog(i);
n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
n.setNexposee(n, i, SKINPOSITION_DIALOG_MULTIPLAYER, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
- i = spawnXonoticSettingsDialog();
+ i = NEW(XonoticSettingsDialog);
i.configureDialog(i);
n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
n.setNexposee(n, i, SKINPOSITION_DIALOG_SETTINGS, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
- i = spawnXonoticCreditsDialog();
+ i = NEW(XonoticCreditsDialog);
i.configureDialog(i);
n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
n.setNexposee(n, i, SKINPOSITION_DIALOG_CREDITS, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
n.pullNexposee(n, i, eY * (SKINHEIGHT_TITLE * SKINFONTSIZE_TITLE / conheight));
- i = spawnXonoticQuitDialog();
+ i = NEW(XonoticQuitDialog);
i.configureDialog(i);
n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
n.setNexposee(n, i, SKINPOSITION_DIALOG_QUIT, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
#ifdef INTERFACE
-CLASS(XonoticMapList) EXTENDS(XonoticListBox)
+CLASS(XonoticMapList, XonoticListBox)
METHOD(XonoticMapList, configureXonoticMapList, void(entity))
ATTRIB(XonoticMapList, rowsPerItem, float, 4)
METHOD(XonoticMapList, draw, void(entity))
METHOD(XonoticMapList, destroy, void(entity))
- ATTRIB(XonoticListBox, alphaBG, float, 0)
+ ATTRIB(XonoticMapList, alphaBG, float, 0)
ENDCLASS(XonoticMapList)
entity makeXonoticMapList();
void MapList_All(entity btn, entity me);
entity makeXonoticMapList()
{
entity me;
- me = spawnXonoticMapList();
+ me = NEW(XonoticMapList);
me.configureXonoticMapList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticNexposee) EXTENDS(Nexposee)
+CLASS(XonoticNexposee, Nexposee)
METHOD(XonoticNexposee, configureXonoticNexposee, void(entity))
METHOD(XonoticNexposee, close, void(entity))
ENDCLASS(XonoticNexposee)
entity makeXonoticNexposee()
{
entity me;
- me = spawnXonoticNexposee();
+ me = NEW(XonoticNexposee);
me.configureXonoticNexposee(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticPlayerList) EXTENDS(XonoticListBox)
+CLASS(XonoticPlayerList, XonoticListBox)
ATTRIB(XonoticPlayerList, rowsPerItem, float, 1)
METHOD(XonoticPlayerList, resizeNotify, void(entity, vector, vector, vector, vector))
METHOD(XonoticPlayerList, drawListBoxItem, void(entity, float, vector, float))
entity makeXonoticPlayerList()
{
entity me;
- me = spawnXonoticPlayerList();
+ me = NEW(XonoticPlayerList);
me.configureXonoticListBox(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticPlayerModelSelector) EXTENDS(XonoticImage)
+CLASS(XonoticPlayerModelSelector, XonoticImage)
METHOD(XonoticPlayerModelSelector, configureXonoticPlayerModelSelector, void(entity))
METHOD(XonoticPlayerModelSelector, loadCvars, void(entity))
METHOD(XonoticPlayerModelSelector, saveCvars, void(entity))
entity makeXonoticPlayerModelSelector()
{
entity me;
- me = spawnXonoticPlayerModelSelector();
+ me = NEW(XonoticPlayerModelSelector);
me.configureXonoticPlayerModelSelector(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticPlayList) EXTENDS(XonoticListBox)
+CLASS(XonoticPlayList, XonoticListBox)
METHOD(XonoticPlayList, configureXonoticPlayList, void(entity))
ATTRIB(XonoticPlayList, rowsPerItem, float, 1)
METHOD(XonoticPlayList, resizeNotify, void(entity, vector, vector, vector, vector))
entity makeXonoticPlayList()
{
entity me;
- me = spawnXonoticPlayList();
+ me = NEW(XonoticPlayList);
me.configureXonoticPlayList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticRadioButton) EXTENDS(RadioButton)
+CLASS(XonoticRadioButton, RadioButton)
METHOD(XonoticRadioButton, configureXonoticRadioButton, void(entity, float, string, string, string))
METHOD(XonoticRadioButton, draw, void(entity))
METHOD(XonoticRadioButton, setChecked, void(entity, float))
entity makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText)
{
entity me;
- me = spawnXonoticRadioButton();
+ me = NEW(XonoticRadioButton);
me.configureXonoticRadioButton(me, theGroup, theCvar, theValue, theText);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticRootDialog) EXTENDS(XonoticDialog)
+CLASS(XonoticRootDialog, XonoticDialog)
// still to be customized by user
/*
ATTRIB(XonoticDialog, closable, float, 1)
#ifdef INTERFACE
-CLASS(XonoticScreenshotImage) EXTENDS(XonoticImage)
+CLASS(XonoticScreenshotImage, XonoticImage)
METHOD(XonoticScreenshotImage, configureXonoticScreenshotImage, void(entity))
METHOD(XonoticScreenshotImage, load, void(entity, string))
METHOD(XonoticScreenshotImage, draw, void(entity))
entity makeXonoticScreenshotImage()
{
entity me;
- me = spawnXonoticScreenshotImage();
+ me = NEW(XonoticScreenshotImage);
me.configureXonoticScreenshotImage(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticScreenshotList) EXTENDS(XonoticListBox)
+CLASS(XonoticScreenshotList, XonoticListBox)
METHOD(XonoticScreenshotList, configureXonoticScreenshotList, void(entity))
ATTRIB(XonoticScreenshotList, rowsPerItem, float, 1)
METHOD(XonoticScreenshotList, resizeNotify, void(entity, vector, vector, vector, vector))
entity makeXonoticScreenshotList()
{
entity me;
- me = spawnXonoticScreenshotList();
+ me = NEW(XonoticScreenshotList);
me.configureXonoticScreenshotList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticServerList) EXTENDS(XonoticListBox)
+CLASS(XonoticServerList, XonoticListBox)
METHOD(XonoticServerList, configureXonoticServerList, void(entity))
ATTRIB(XonoticServerList, rowsPerItem, float, 1)
METHOD(XonoticServerList, draw, void(entity))
entity makeXonoticServerList()
{
entity me;
- me = spawnXonoticServerList();
+ me = NEW(XonoticServerList);
me.configureXonoticServerList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticSkinList) EXTENDS(XonoticListBox)
+CLASS(XonoticSkinList, XonoticListBox)
METHOD(XonoticSkinList, configureXonoticSkinList, void(entity))
ATTRIB(XonoticSkinList, rowsPerItem, float, 4)
METHOD(XonoticSkinList, resizeNotify, void(entity, vector, vector, vector, vector))
entity makeXonoticSkinList()
{
entity me;
- me = spawnXonoticSkinList();
+ me = NEW(XonoticSkinList);
me.configureXonoticSkinList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticSlider) EXTENDS(Slider)
+CLASS(XonoticSlider, Slider)
METHOD(XonoticSlider, configureXonoticSlider, void(entity, float, float, float, string))
METHOD(XonoticSlider, setValue, void(entity, float))
ATTRIB(XonoticSlider, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
{
entity me;
- me = spawnXonoticSlider();
+ me = NEW(XonoticSlider);
me.configureXonoticSlider(me, theValueMin, theValueMax, theValueStep, theCvar);
return me;
}
#include "../../warpzonelib/mathlib.qh"
#ifdef INTERFACE
-CLASS(XonoticDecibelsSlider) EXTENDS(XonoticSlider)
+CLASS(XonoticDecibelsSlider, XonoticSlider)
METHOD(XonoticDecibelsSlider, loadCvars, void(entity))
METHOD(XonoticDecibelsSlider, saveCvars, void(entity))
METHOD(XonoticDecibelsSlider, valueToText, string(entity, float))
entity makeXonoticDecibelsSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
{
entity me;
- me = spawnXonoticDecibelsSlider();
+ me = NEW(XonoticDecibelsSlider);
me.configureXonoticSlider(me, theValueMin, theValueMax, theValueStep, theCvar);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticParticlesSlider) EXTENDS(XonoticTextSlider)
+CLASS(XonoticParticlesSlider, XonoticTextSlider)
METHOD(XonoticParticlesSlider, configureXonoticParticlesSlider, void(entity))
METHOD(XonoticParticlesSlider, loadCvars, void(entity))
METHOD(XonoticParticlesSlider, saveCvars, void(entity))
entity makeXonoticParticlesSlider()
{
entity me;
- me = spawnXonoticParticlesSlider();
+ me = NEW(XonoticParticlesSlider);
me.configureXonoticParticlesSlider(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticPicmipSlider) EXTENDS(XonoticTextSlider)
+CLASS(XonoticPicmipSlider, XonoticTextSlider)
METHOD(XonoticPicmipSlider, configureXonoticPicmipSlider, void(entity))
METHOD(XonoticPicmipSlider, draw, void(entity))
METHOD(XonoticPicmipSlider, autofix, void(entity))
entity makeXonoticPicmipSlider()
{
entity me;
- me = spawnXonoticPicmipSlider();
+ me = NEW(XonoticPicmipSlider);
me.configureXonoticPicmipSlider(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticResolutionSlider) EXTENDS(XonoticTextSlider)
+CLASS(XonoticResolutionSlider, XonoticTextSlider)
METHOD(XonoticResolutionSlider, configureXonoticResolutionSlider, void(entity))
METHOD(XonoticResolutionSlider, loadResolutions, void(entity, float))
METHOD(XonoticResolutionSlider, addResolution, void(entity, float, float, float))
entity makeXonoticResolutionSlider()
{
entity me;
- me = spawnXonoticResolutionSlider();
+ me = NEW(XonoticResolutionSlider);
me.configureXonoticResolutionSlider(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticScoreboardFadeTimeSlider) EXTENDS(XonoticTextSlider)
+CLASS(XonoticScoreboardFadeTimeSlider, XonoticTextSlider)
METHOD(XonoticScoreboardFadeTimeSlider, configureXonoticScoreboardFadeTimeSlider, void(entity))
METHOD(XonoticScoreboardFadeTimeSlider, loadCvars, void(entity))
METHOD(XonoticScoreboardFadeTimeSlider, saveCvars, void(entity))
entity makeXonoticScoreboardFadeTimeSlider()
{
entity me;
- me = spawnXonoticScoreboardFadeTimeSlider();
+ me = NEW(XonoticScoreboardFadeTimeSlider);
me.configureXonoticScoreboardFadeTimeSlider(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticSoundList) EXTENDS(XonoticListBox)
+CLASS(XonoticSoundList, XonoticListBox)
METHOD(XonoticSoundList, configureXonoticSoundList, void(entity))
ATTRIB(XonoticSoundList, rowsPerItem, float, 1)
METHOD(XonoticSoundList, resizeNotify, void(entity, vector, vector, vector, vector))
entity makeXonoticSoundList()
{
entity me;
- me = spawnXonoticSoundList();
+ me = NEW(XonoticSoundList);
me.configureXonoticSoundList(me);
return me;
}
#include "../../common/playerstats.qh"
#ifdef INTERFACE
-CLASS(XonoticStatsList) EXTENDS(XonoticListBox)
+CLASS(XonoticStatsList, XonoticListBox)
METHOD(XonoticStatsList, configureXonoticStatsList, void(entity))
ATTRIB(XonoticStatsList, rowsPerItem, float, 1.4)
METHOD(XonoticStatsList, resizeNotify, void(entity, vector, vector, vector, vector))
entity makeXonoticStatsList()
{
entity me;
- me = spawnXonoticStatsList();
+ me = NEW(XonoticStatsList);
me.configureXonoticStatsList(me);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticTab) EXTENDS(Tab)
+CLASS(XonoticTab, Tab)
// still to be customized by user
/*
ATTRIB(XonoticTab, intendedWidth, float, 0)
#ifdef INTERFACE
-CLASS(XonoticTabController) EXTENDS(ModalController)
+CLASS(XonoticTabController, ModalController)
METHOD(XonoticTabController, configureXonoticTabController, void(entity, float))
METHOD(XonoticTabController, makeTabButton, entity(entity, string, entity))
ATTRIB(XonoticTabController, rows, float, 0)
entity makeXonoticTabController(float theRows)
{
entity me;
- me = spawnXonoticTabController();
+ me = NEW(XonoticTabController);
me.configureXonoticTabController(me, theRows);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticTextLabel) EXTENDS(Label)
+CLASS(XonoticTextLabel, Label)
METHOD(XonoticTextLabel, configureXonoticTextLabel, void(entity, float, string))
METHOD(XonoticTextLabel, draw, void(entity))
ATTRIB(XonoticTextLabel, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticTextLabel(float theAlign, string theText)
{
entity me;
- me = spawnXonoticTextLabel();
+ me = NEW(XonoticTextLabel);
me.configureXonoticTextLabel(me, theAlign, theText);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticTextSlider) EXTENDS(TextSlider)
+CLASS(XonoticTextSlider, TextSlider)
METHOD(XonoticTextSlider, configureXonoticTextSlider, void(entity, string))
METHOD(XonoticTextSlider, setValue, void(entity, float))
METHOD(XonoticTextSlider, configureXonoticTextSliderValues, void(entity))
entity makeXonoticTextSlider(string theCvar)
{
entity me;
- me = spawnXonoticTextSlider();
+ me = NEW(XonoticTextSlider);
me.configureXonoticTextSlider(me, theCvar);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticWeaponarenaCheckBox) EXTENDS(CheckBox)
+CLASS(XonoticWeaponarenaCheckBox, CheckBox)
METHOD(XonoticWeaponarenaCheckBox, configureXonoticWeaponarenaCheckBox, void(entity, string, string))
METHOD(XonoticWeaponarenaCheckBox, setChecked, void(entity, float))
ATTRIB(XonoticWeaponarenaCheckBox, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticWeaponarenaCheckBox(string theWeapon, string theText)
{
entity me;
- me = spawnXonoticWeaponarenaCheckBox();
+ me = NEW(XonoticWeaponarenaCheckBox);
me.configureXonoticWeaponarenaCheckBox(me, theWeapon, theText);
return me;
}
#ifdef INTERFACE
-CLASS(XonoticWeaponsList) EXTENDS(XonoticListBox)
+CLASS(XonoticWeaponsList, XonoticListBox)
METHOD(XonoticWeaponsList, configureXonoticWeaponsList, void(entity))
METHOD(XonoticWeaponsList, toString, string(entity))
ATTRIB(XonoticWeaponsList, rowsPerItem, float, 1)
entity makeXonoticWeaponsList()
{
entity me;
- me = spawnXonoticWeaponsList();
+ me = NEW(XonoticWeaponsList);
me.configureXonoticWeaponsList(me);
return me;
}