Guest User

Untitled

a guest
Dec 11th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class LegendsDoorQuickMenu extends GFxMoviePlayer;
  2.  
  3. var GFxObject MainLayer;
  4. var float XPos;
  5. var float YPos;
  6.  
  7.  
  8. function bool Start(optional bool StartPaused = false)
  9. {
  10. super.Start(StartPaused);
  11. Advance(0);
  12. MainLayer = GetVariableObject("_root").GetObject("LegendsQuickMenu");
  13. //MainLayer.SetFloat("_x",XPos);
  14. //MainLayer.SetFloat("_y",YPos);
  15. MainLayer.GotoAndPlay("Blendin");
  16.  
  17.  
  18. return TRUE;
  19. }
  20.  
  21. function SetQuickMenuCoords(int X, int Y)
  22. {
  23.     `log("x"@x@"y"@y);
  24.     if( MainLayer != NONE )
  25.     {
  26.         if( XPos != X )
  27.             {
  28.             XPos = X;
  29.             MainLayer.SetFloat("_x",XPos);
  30.             }
  31.         if( YPos != Y )
  32.             {
  33.             YPos = Y;
  34.             MainLayer.SetFloat("_y",YPos);
  35.             }
  36.     }
  37.     else
  38.     {
  39.     `Log("MousePosition: "@Xpos@Ypos);
  40.     }
  41.     }
  42.  
  43.  
  44.  
  45. DefaultProperties
  46. {
  47. //  XPos = -1024 // raczej nie będziesz chciał quick menu w takim miejscu ustawiać
  48.     //YPos = -1024
  49.     MovieInfo = SwfMovie'LegendsQuickMenu.LegendsQuickMenu'
  50.    
  51. }
Add Comment
Please, Sign In to add comment