-------------------------------------------------------------------------------- -- Handler.......... : onEnterFrame -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function OSVMain.onEnterFrame ( ) -------------------------------------------------------------------------------- -- Hide/Show controls -- if ( not this.bMouseButtonDown ( ) ) then local x, y = hud.getCursorPosition ( this.getUser ( ) ) if ( y > 0 and y < 20 ) then if ( not hud.isActionRunning ( this.getUser ( ), "controls.ShowButtonBar" ) ) then hud.callAction ( this.getUser ( ), "controls.ShowButtonBar" ) end else if ( not hud.isActionRunning ( this.getUser ( ), "controls.HideButtonBar" ) ) then hud.callAction ( this.getUser ( ), "controls.HideButtonBar" ) end end end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------