Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LegendsDoorQuickMenu extends GFxMoviePlayer;
- var GFxObject MainLayer;
- var float XPos;
- var float YPos;
- function bool Start(optional bool StartPaused = false)
- {
- super.Start(StartPaused);
- Advance(0);
- MainLayer = GetVariableObject("_root").GetObject("LegendsQuickMenu");
- //MainLayer.SetFloat("_x",XPos);
- //MainLayer.SetFloat("_y",YPos);
- MainLayer.GotoAndPlay("Blendin");
- return TRUE;
- }
- function SetQuickMenuCoords(int X, int Y)
- {
- `log("x"@x@"y"@y);
- if( MainLayer != NONE )
- {
- if( XPos != X )
- {
- XPos = X;
- MainLayer.SetFloat("_x",XPos);
- }
- if( YPos != Y )
- {
- YPos = Y;
- MainLayer.SetFloat("_y",YPos);
- }
- }
- else
- {
- `Log("MousePosition: "@Xpos@Ypos);
- }
- }
- DefaultProperties
- {
- // XPos = -1024 // raczej nie będziesz chciał quick menu w takim miejscu ustawiać
- //YPos = -1024
- MovieInfo = SwfMovie'LegendsQuickMenu.LegendsQuickMenu'
- }
Add Comment
Please, Sign In to add comment