PageRenderTime 24ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/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--------------------------------------------------------------------------------
 8function YeuxAI.onYeuxChanged ( newPosition )
 9--------------------------------------------------------------------------------
10	
11	local getPosition
12    
13    getPosition=this._getPosition ( )+ newPosition
14    if(getPosition<0)then getPosition=0 end
15    this._getPosition (getPosition)
16    this._getLastFileName (this._getFileName ( ))
17    this.SelectObj()
18    this.Load (  )
19	
20--------------------------------------------------------------------------------
21end
22--------------------------------------------------------------------------------