float scale;
entity e, e2;
vector emins, emaxs, e2mins, e2maxs;
-
+
for(scale = 0.7;; scale *= 0.99)
{
Nexposee_Calc_Scale(me, scale);
me.animationState = 0;
}
- //print(ftos(me.animationState), "\n");
-
f = min(1, frametime * 5);
switch(me.animationState)
{
}
SUPER(Nexposee).draw(me);
-};
+}
float Nexposee_mousePress(entity me, vector pos)
{
}
else if(me.animationState == 2)
{
- if not(SUPER(Nexposee).mousePress(me, pos))
+ if (!(SUPER(Nexposee).mousePress(me, pos)))
{
me.animationState = 3;
SUPER(Nexposee).setFocus(me, NULL);
if(me.animationState == 0)
{
if(me.mouseFocusedChild)
- if(me.mouseFocusedChild != e)
+ if(me.mouseFocusedChild != e || me.mouseFocusedChild != me.selectedChild)
me.selectedChild = me.mouseFocusedChild;
return 1;
}
float Nexposee_keyDown(entity me, float scan, float ascii, float shift)
{
- float nexposeeKey;
+ float nexposeeKey = 0;
if(me.animationState == 2)
if(SUPER(Nexposee).keyDown(me, scan, ascii, shift))
return 1;
{
if(me.selectedChild)
me.selectedChild = me.selectedChild.prevSibling;
- if not(me.selectedChild)
+ if (!me.selectedChild)
me.selectedChild = me.lastChild;
}
else
{
if(me.selectedChild)
me.selectedChild = me.selectedChild.nextSibling;
- if not(me.selectedChild)
+ if (!me.selectedChild)
me.selectedChild = me.firstChild;
}
}
}
switch(me.animationState)
{
+ default:
case 0:
case 3:
nexposeeKey = ((scan == K_SPACE) || (scan == K_ENTER) || (scan == K_KP_ENTER));
{
switch(me.animationState)
{
+ default:
case 0:
case 3:
me.animationState = 1;
}
if(me.focusedChild)
me.selectedChild = me.focusedChild;
- if not(me.selectedChild)
+ if (!me.selectedChild)
me.animationState = 0;
SUPER(Nexposee).setFocus(me, NULL);
return 1;