/Resources/Scripts/YeuxAI_Handler_onYeuxChanged.lua

http://github.com/thebigbang/Face_Editor · Lua · 22 lines · 9 code · 4 blank · 9 comment · 1 complexity · 0b44c66362961000e3bdd2ff23a22f80 MD5 · raw file

  1. --------------------------------------------------------------------------------
  2. -- Handler.......... : onYeuxChanged
  3. -- Author........... :
  4. -- Description...... :
  5. --------------------------------------------------------------------------------
  6. --------------------------------------------------------------------------------
  7. function YeuxAI.onYeuxChanged ( newPosition )
  8. --------------------------------------------------------------------------------
  9. local getPosition
  10. getPosition=this._getPosition ( )+ newPosition
  11. if(getPosition<0)then getPosition=0 end
  12. this._getPosition (getPosition)
  13. this._getLastFileName (this._getFileName ( ))
  14. this.SelectObj()
  15. this.Load ( )
  16. --------------------------------------------------------------------------------
  17. end
  18. --------------------------------------------------------------------------------