[Actor] Make the xy command a source-code level command.
This commit is contained in:
@@ -4,6 +4,10 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes
|
||||
from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt.
|
||||
________________________________________________________________________________
|
||||
|
||||
2012/05/19
|
||||
----------
|
||||
* [Actor] Made the xy command a source-code level command.
|
||||
|
||||
2012/05/17
|
||||
----------
|
||||
* [LoadingWindow_Gtk] Actually resolve the path to the Splash file. [djpohly]
|
||||
|
||||
@@ -156,25 +156,9 @@ function Actor:scale_or_crop_background()
|
||||
self:zoomto(SCREEN_HEIGHT*graphicAspect,SCREEN_HEIGHT)
|
||||
end
|
||||
|
||||
-- xy(actorX,actorY)
|
||||
-- Sets the x and y of an actor in one command.
|
||||
function Actor:xy(actorX,actorY)
|
||||
self:x(actorX)
|
||||
self:y(actorY)
|
||||
end
|
||||
|
||||
function Actor:CenterX()
|
||||
self:x(SCREEN_CENTER_X)
|
||||
end
|
||||
|
||||
function Actor:CenterY()
|
||||
self:y(SCREEN_CENTER_Y)
|
||||
end
|
||||
|
||||
function Actor:Center()
|
||||
self:x(SCREEN_CENTER_X)
|
||||
self:y(SCREEN_CENTER_Y)
|
||||
end
|
||||
function Actor:CenterX() self:x(SCREEN_CENTER_X) end
|
||||
function Actor:CenterY() self:y(SCREEN_CENTER_Y) end
|
||||
function Actor:Center() self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y) end
|
||||
|
||||
function Actor:bezier(...)
|
||||
local a = {...}
|
||||
@@ -392,7 +376,7 @@ function Actor:hidden(bHide)
|
||||
self:visible(not bHide)
|
||||
end
|
||||
|
||||
-- (c) 2006-2011 Glenn Maynard, SSC
|
||||
-- (c) 2006-2012 Glenn Maynard, the Spinal Shark Collective, et al.
|
||||
-- All rights reserved.
|
||||
--
|
||||
-- Permission is hereby granted, free of charge, to any person obtaining a
|
||||
|
||||
@@ -1351,6 +1351,7 @@ public:
|
||||
static int x( T* p, lua_State *L ) { p->SetX(FArg(1)); return 0; }
|
||||
static int y( T* p, lua_State *L ) { p->SetY(FArg(1)); return 0; }
|
||||
static int z( T* p, lua_State *L ) { p->SetZ(FArg(1)); return 0; }
|
||||
static int xy( T* p, lua_State *L ) { p->SetXY(FArg(1),FArg(2)); return 0; }
|
||||
static int addx( T* p, lua_State *L ) { p->AddX(FArg(1)); return 0; }
|
||||
static int addy( T* p, lua_State *L ) { p->AddY(FArg(1)); return 0; }
|
||||
static int addz( T* p, lua_State *L ) { p->AddZ(FArg(1)); return 0; }
|
||||
@@ -1569,6 +1570,7 @@ public:
|
||||
ADD_METHOD( x );
|
||||
ADD_METHOD( y );
|
||||
ADD_METHOD( z );
|
||||
ADD_METHOD( xy );
|
||||
ADD_METHOD( addx );
|
||||
ADD_METHOD( addy );
|
||||
ADD_METHOD( addz );
|
||||
|
||||
Reference in New Issue
Block a user