.float ModalController_factor;
.entity ModalController_controllingButton;
-void initializeDialogModalController(entity me, entity root)
+void ModalController_initializeDialog(entity me, entity root)
{
me.hideAll(me, 1);
me.showChild(me, root, '0 0 0', '0 0 0', 1); // someone else animates for us
tab.parent.hideChild(tab.parent, tab, 0);
}
-void resizeNotifyModalController(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
+void ModalController_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
{
me.resizeNotifyLie(me, relOrigin, relSize, absOrigin, absSize, ModalController_initialOrigin, ModalController_initialSize);
}
-void switchStateModalController(entity me, entity other, float state, float skipAnimation)
+void ModalController_switchState(entity me, entity other, float state, float skipAnimation)
{
float previousState;
previousState = other.ModalController_state;
other.ModalController_factor = 1;
}
-void drawModalController(entity me)
+void ModalController_draw(entity me)
{
entity e;
entity front;
me.setFocus(me, NULL);
else
me.setFocus(me, front);
- drawContainer(me);
+ SUPER(ModalController).draw(me);
};
-void addTabModalController(entity me, entity other, entity tabButton)
+void ModalController_addTab(entity me, entity other, entity tabButton)
{
me.addItem(me, other, '0 0 0', '1 1 1', 1);
tabButton.onClick = TabButton_Click;
}
}
-void addItemModalController(entity me, entity other, vector theOrigin, vector theSize, float theAlpha)
+void ModalController_addItem(entity me, entity other, vector theOrigin, vector theSize, float theAlpha)
{
- addItemContainer(me, other, theOrigin, theSize, (other == me.firstChild) ? theAlpha : 0);
+ SUPER(ModalController).addItem(me, other, theOrigin, theSize, (other == me.firstChild) ? theAlpha : 0);
other.ModalController_initialSize = other.Container_size;
other.ModalController_initialOrigin = other.Container_origin;
other.ModalController_initialAlpha = theAlpha; // hope Container never modifies this
}
-void showChildModalController(entity me, entity other, vector theOrigin, vector theSize, float skipAnimation)
+void ModalController_showChild(entity me, entity other, vector theOrigin, vector theSize, float skipAnimation)
{
if(other.ModalController_state == 0 || skipAnimation)
{
} // zoom in from button (factor increases)
}
-void hideAllModalController(entity me, float skipAnimation)
+void ModalController_hideAll(entity me, float skipAnimation)
{
entity e;
for(e = me.firstChild; e; e = e.nextSibling)
me.hideChild(me, e, skipAnimation);
}
-void hideChildModalController(entity me, entity other, float skipAnimation)
+void ModalController_hideChild(entity me, entity other, float skipAnimation)
{
if(other.ModalController_state || skipAnimation)
{