X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fanim%2Fkeyframe.c;h=de5d54ae1002ad79486867e1a8f4d83da5a152f0;hb=1d02a7ca9ba75edf897d843e7dfb5635ad7dd23f;hp=95fbf63ccefe5b15d5acc6a019db25a868d2fedf;hpb=8da3bbc7349e9daebfe59337d652f0be61193490;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/anim/keyframe.c b/qcsrc/menu/anim/keyframe.c index 95fbf63cc..de5d54ae1 100644 --- a/qcsrc/menu/anim/keyframe.c +++ b/qcsrc/menu/anim/keyframe.c @@ -6,7 +6,7 @@ CLASS(Keyframe) EXTENDS(Animation) ATTRIB(Keyframe, currentChild, entity, NULL) ATTRIB(Keyframe, firstChild, entity, NULL) ATTRIB(Keyframe, lastChild, entity, NULL) -ENDCLASS(Animation) +ENDCLASS(Keyframe) entity makeHostedKeyframe(entity, void(entity, float), float, float, float); entity makeKeyframe(entity, void(entity, float), float, float, float); float getNewChildStart(entity); @@ -31,7 +31,7 @@ entity makeKeyframe(entity obj, void(entity, float) objSetter, float animDuratio return me; } -entity addEasingKeyframe(entity me, float animDurationTime, float animEnd, float(float, float, float, float) func) +entity Keyframe_addEasing(entity me, float animDurationTime, float animEnd, float(float, float, float, float) func) { entity other; other = makeEasing(me.object, me.setter, func, getNewChildStart(me), getNewChildDuration(me, animDurationTime), getNewChildValue(me), animEnd); @@ -65,7 +65,7 @@ float getNewChildValue(entity me) return me.startValue; } -void addAnimKeyframe(entity me, entity other) +void Keyframe_addAnim(entity me, entity other) { if(other.parent) error("Can't add already added anim!"); @@ -92,7 +92,7 @@ void addAnimKeyframe(entity me, entity other) me.lastChild = other; } -float calcValueKeyframe(entity me, float tickTime, float animDuration, float animStartValue, float animDelta) +float Keyframe_calcValue(entity me, float tickTime, float animDuration, float animStartValue, float animDelta) { if (me.currentChild) if (me.currentChild.isFinished(me.currentChild))