From: TimePath Date: Sun, 3 May 2015 22:50:36 +0000 (+1000) Subject: #include base classes X-Git-Tag: xonotic-v0.8.1~61^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=31f1af233d6944afb34a58bafd4794878762b290;p=xonotic%2Fxonotic-data.pk3dir.git #include base classes --- diff --git a/qcsrc/menu/anim/animation.qc b/qcsrc/menu/anim/animation.qc index 94df30b37..3039d85b8 100644 --- a/qcsrc/menu/anim/animation.qc +++ b/qcsrc/menu/anim/animation.qc @@ -1,5 +1,6 @@ #ifndef ANIM_ANIMATION_H #define ANIM_ANIMATION_H +#include "../oo/base.qh" void setterDummy(entity, float); CLASS(Animation, Object) METHOD(Animation, configureAnimation, void(entity, entity, void(entity, float), float, float, float, float)) diff --git a/qcsrc/menu/anim/animhost.qc b/qcsrc/menu/anim/animhost.qc index fb4961d86..61a040cff 100644 --- a/qcsrc/menu/anim/animhost.qc +++ b/qcsrc/menu/anim/animhost.qc @@ -2,6 +2,7 @@ #ifndef ANIM_ANIMHOST_H #define ANIM_ANIMHOST_H +#include "../oo/base.qh" CLASS(AnimHost, Object) METHOD(AnimHost, addAnim, void(entity, entity)) METHOD(AnimHost, removeAnim, void(entity, entity)) diff --git a/qcsrc/menu/anim/easing.qc b/qcsrc/menu/anim/easing.qc index f2c3d46e9..fe4c0fb65 100644 --- a/qcsrc/menu/anim/easing.qc +++ b/qcsrc/menu/anim/easing.qc @@ -1,5 +1,6 @@ #ifndef ANIM_EASING_H #define ANIM_EASING_H +#include "animation.qc" entity makeHostedEasing(entity, void(entity, float), float(float, float, float, float), float, float, float); entity makeEasing(entity, void(entity, float), float(float, float, float, float), float, float, float, float); float easingLinear(float, float, float, float); diff --git a/qcsrc/menu/anim/keyframe.qc b/qcsrc/menu/anim/keyframe.qc index 0e194bf6b..d310ef72c 100644 --- a/qcsrc/menu/anim/keyframe.qc +++ b/qcsrc/menu/anim/keyframe.qc @@ -1,5 +1,6 @@ #ifndef ANIM_KEYFRAME_H #define ANIM_KEYFRAME_H +#include "animation.qc" CLASS(Keyframe, Animation) METHOD(Keyframe, addEasing, entity(entity, float, float, float(float, float, float, float))) METHOD(Keyframe, addAnim, void(entity, entity)) diff --git a/qcsrc/menu/item.qc b/qcsrc/menu/item.qc index 62cfa1378..cb24866d1 100644 --- a/qcsrc/menu/item.qc +++ b/qcsrc/menu/item.qc @@ -1,5 +1,7 @@ #ifndef ITEM_H #define ITEM_H +#include "skin.qh" +#include "oo/base.qh" CLASS(Item, Object) METHOD(Item, draw, void(entity)) METHOD(Item, keyDown, float(entity, float, float, float)) diff --git a/qcsrc/menu/item/button.qc b/qcsrc/menu/item/button.qc index 8d17f98c6..796ce40a3 100644 --- a/qcsrc/menu/item/button.qc +++ b/qcsrc/menu/item/button.qc @@ -1,5 +1,6 @@ #ifndef ITEM_BUTTON_H #define ITEM_BUTTON_H +#include "label.qc" CLASS(Button, Label) METHOD(Button, configureButton, void(entity, string, float, string)) METHOD(Button, draw, void(entity)) diff --git a/qcsrc/menu/item/checkbox.qc b/qcsrc/menu/item/checkbox.qc index e220b0766..e8b4e15e3 100644 --- a/qcsrc/menu/item/checkbox.qc +++ b/qcsrc/menu/item/checkbox.qc @@ -1,5 +1,6 @@ #ifndef ITEM_CHECKBOX_H #define ITEM_CHECKBOX_H +#include "button.qc" void CheckBox_Click(entity me, entity other); CLASS(CheckBox, Button) METHOD(CheckBox, configureCheckBox, void(entity, string, float, string)) diff --git a/qcsrc/menu/item/container.qc b/qcsrc/menu/item/container.qc index a5d01bf92..449bb0675 100644 --- a/qcsrc/menu/item/container.qc +++ b/qcsrc/menu/item/container.qc @@ -1,5 +1,6 @@ #ifndef ITEM_CONTAINER_H #define ITEM_CONTAINER_H +#include "../item.qc" CLASS(Container, Item) METHOD(Container, draw, void(entity)) METHOD(Container, keyUp, float(entity, float, float, float)) diff --git a/qcsrc/menu/item/image.qc b/qcsrc/menu/item/image.qc index 83e5d427a..7756b4991 100644 --- a/qcsrc/menu/item/image.qc +++ b/qcsrc/menu/item/image.qc @@ -1,5 +1,6 @@ #ifndef ITEM_IMAGE_H #define ITEM_IMAGE_H +#include "../item.qc" CLASS(Image, Item) METHOD(Image, configureImage, void(entity, string)) METHOD(Image, draw, void(entity)) diff --git a/qcsrc/menu/item/inputbox.qc b/qcsrc/menu/item/inputbox.qc index fd6eab1fa..5bcfd5f9c 100644 --- a/qcsrc/menu/item/inputbox.qc +++ b/qcsrc/menu/item/inputbox.qc @@ -1,5 +1,6 @@ #ifndef ITEM_INPUTBOX_H #define ITEM_INPUTBOX_H +#include "label.qc" CLASS(InputBox, Label) METHOD(InputBox, configureInputBox, void(entity, string, float, float, string)) METHOD(InputBox, draw, void(entity)) diff --git a/qcsrc/menu/item/inputcontainer.qc b/qcsrc/menu/item/inputcontainer.qc index b06e25565..90ca719dc 100644 --- a/qcsrc/menu/item/inputcontainer.qc +++ b/qcsrc/menu/item/inputcontainer.qc @@ -1,5 +1,6 @@ #ifndef ITEM_INPUTCONTAINER_H #define ITEM_INPUTCONTAINER_H +#include "container.qc" CLASS(InputContainer, Container) METHOD(InputContainer, keyDown, float(entity, float, float, float)) METHOD(InputContainer, mouseMove, float(entity, vector)) diff --git a/qcsrc/menu/item/label.qc b/qcsrc/menu/item/label.qc index 751e5c727..75e79f0b2 100644 --- a/qcsrc/menu/item/label.qc +++ b/qcsrc/menu/item/label.qc @@ -1,5 +1,6 @@ #ifndef ITEM_LABEL_H #define ITEM_LABEL_H +#include "../item.qc" CLASS(Label, Item) METHOD(Label, configureLabel, void(entity, string, float, float)) METHOD(Label, draw, void(entity)) diff --git a/qcsrc/menu/item/listbox.qc b/qcsrc/menu/item/listbox.qc index 385ed502a..044c9e34a 100644 --- a/qcsrc/menu/item/listbox.qc +++ b/qcsrc/menu/item/listbox.qc @@ -1,5 +1,6 @@ #ifndef ITEM_LISTBOX_H #define ITEM_LISTBOX_H +#include "../item.qc" CLASS(ListBox, Item) METHOD(ListBox, resizeNotify, void(entity, vector, vector, vector, vector)) METHOD(ListBox, configureListBox, void(entity, float, float)) diff --git a/qcsrc/menu/item/modalcontroller.qc b/qcsrc/menu/item/modalcontroller.qc index c1bc021f8..a13fcdd69 100644 --- a/qcsrc/menu/item/modalcontroller.qc +++ b/qcsrc/menu/item/modalcontroller.qc @@ -1,5 +1,6 @@ #ifndef ITEM_MODALCONTROLLER_H #define ITEM_MODALCONTROLLER_H +#include "container.qc" CLASS(ModalController, Container) METHOD(ModalController, resizeNotify, void(entity, vector, vector, vector, vector)) METHOD(ModalController, draw, void(entity)) diff --git a/qcsrc/menu/item/radiobutton.qc b/qcsrc/menu/item/radiobutton.qc index d8cadea3d..c1e034855 100644 --- a/qcsrc/menu/item/radiobutton.qc +++ b/qcsrc/menu/item/radiobutton.qc @@ -1,5 +1,6 @@ #ifndef ITEM_RADIOBUTTON_H #define ITEM_RADIOBUTTON_H +#include "checkbox.qc" void RadioButton_Click(entity me, entity other); CLASS(RadioButton, CheckBox) METHOD(RadioButton, configureRadioButton, void(entity, string, float, string, float, float)) diff --git a/qcsrc/menu/item/slider.qc b/qcsrc/menu/item/slider.qc index 7ee9cefa7..e944a96ae 100644 --- a/qcsrc/menu/item/slider.qc +++ b/qcsrc/menu/item/slider.qc @@ -2,6 +2,7 @@ // to use this, you FIRST call configureSliderVisuals, then configureSliderValues #ifndef ITEM_SLIDER_H #define ITEM_SLIDER_H +#include "label.qc" CLASS(Slider, Label) METHOD(Slider, resizeNotify, void(entity, vector, vector, vector, vector)) METHOD(Slider, configureSliderVisuals, void(entity, float, float, float, string)) diff --git a/qcsrc/menu/item/tab.qc b/qcsrc/menu/item/tab.qc index 3fdcccc68..fbbf77668 100644 --- a/qcsrc/menu/item/tab.qc +++ b/qcsrc/menu/item/tab.qc @@ -1,5 +1,6 @@ #ifndef ITEM_TAB_H #define ITEM_TAB_H +#include "dialog.qc" CLASS(Tab, Dialog) ATTRIB(Tab, isTabRoot, float, 0) ATTRIB(Tab, closable, float, 0) diff --git a/qcsrc/menu/item/textslider.qc b/qcsrc/menu/item/textslider.qc index 663f33a8f..f22e632d6 100644 --- a/qcsrc/menu/item/textslider.qc +++ b/qcsrc/menu/item/textslider.qc @@ -2,6 +2,7 @@ // to use this, you FIRST call configureSliderVisuals, then multiple times addValue, then configureTextSlider #ifndef ITEM_TEXTSLIDER_H #define ITEM_TEXTSLIDER_H +#include "slider.qc" CLASS(TextSlider, Slider) METHOD(TextSlider, valueToText, string(entity, float)) METHOD(TextSlider, valueToIdentifier, string(entity, float))