raze/polymer/eduke32/source/lunatic
hendricks266 93a3ff34e8 Add events EVENT_DISPLAYINACTIVEMENU and EVENT_DISPLAYINACTIVEMENUREST and userdef members m_origin_x and m_origin_y.
This allows for CON screen display code to use menu animations. The following is an example of how to adapt screen features that should animate.

before:

onevent EVENT_DISPLAYMENUREST
    ifvare current_menu 0 // main menu
    {
        setvar x 1
        setvar y 1
        rotatesprite x y zoom ang tilenum shade pal orientation 0 0 xdim ydim
    }
endevent

after:

state DisplayMenuCommon
    ifvare RETURN 0 // main menu
    {
        getuserdef[THISACTOR].m_origin_x x
        getuserdef[THISACTOR].m_origin_y y
        addvar x 65536
        addvar y 65536
        rotatesprite16 x y zoom ang tilenum shade pal orientation 0 0 xdim ydim
    }
ends

onevent EVENT_DISPLAYMENUREST state DisplayMenuCommon endevent
onevent EVENT_DISPLAYINACTIVEMENUREST state DisplayMenuCommon endevent

git-svn-id: https://svn.eduke32.com/eduke32@4945 1a8010ca-5511-0410-912e-c29ae57300e0
2015-01-25 12:16:58 +00:00
..
doc Lunatic: fix build and linking. DONT_BUILD. 2015-01-19 00:11:25 +00:00
m32 Rename the external 'gethitickms()' to 'gethiticks()'. 2013-07-07 20:59:05 +00:00
test CON: always return non-negative values from 'clipmove' and related. 2015-01-04 18:44:58 +00:00
util lunatic/util/build.lua: in readdefs(), add option of requesting picnum->name mapping. 2014-06-01 20:50:14 +00:00
bcarray.lua Lunatic: remap16 method for engine.shadetab, 2nd attempt at recreating orig. one. 2014-01-05 14:06:14 +00:00
bcheck.lua Lunatic: fix setup under Mapster32, remove a few obsolete lines in defs_common.lua. 2013-12-31 11:51:55 +00:00
bitar.lua Lunatic: prototypical gamevar serialization, currently very CON-centric. 2013-05-20 19:31:42 +00:00
con_lang.lua Add events EVENT_DISPLAYINACTIVEMENU and EVENT_DISPLAYINACTIVEMENUREST and userdef members m_origin_x and m_origin_y. 2015-01-25 12:16:58 +00:00
control.lua CON: Add new commands "getmusicposition" and "setmusicposition" that operate on the playback position of the current music track. 2015-01-17 00:28:49 +00:00
defs.ilua Add events EVENT_DISPLAYINACTIVEMENU and EVENT_DISPLAYINACTIVEMENUREST and userdef members m_origin_x and m_origin_y. 2015-01-25 12:16:58 +00:00
defs_common.lua LunaCON: fix tilesizx[] and tilesizy[] system gamearrays. 2014-11-07 22:07:07 +00:00
defs_m32.ilua Lunatic: add 'engine' module, currently allowing to create custom shade tables. 2013-12-31 11:52:00 +00:00
dis_x64.lua Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. 2013-03-24 18:54:14 +00:00
dis_x86.lua Lunatic: add LuaJIT's 'dump' module, printing traced bytecode, IR and mcode. 2013-03-24 18:54:14 +00:00
dump.lua A couple of minor changes. 2013-09-05 17:37:44 +00:00
dynsymlist CON: Add new commands "getmusicposition" and "setmusicposition" that operate on the playback position of the current music track. 2015-01-17 00:28:49 +00:00
dynsymlist_m32 LunaCON: fix tilesizx[] and tilesizy[] system gamearrays. 2014-11-07 22:07:07 +00:00
engine.lua lunatic/test/shadexfog.lua: add function create_brightpass_trans(). 2014-05-22 11:17:51 +00:00
engine_maptext.lua Rename sector[].filler member to '.fogpal'. From CON, keep the '.alignto' alias. 2014-04-05 11:28:10 +00:00
fs.lua Lunatic: in fs.listpath() use FIND_NOCURDIR. Also document that function. 2013-12-01 18:28:02 +00:00
listglobals.sh Lunatic: gv.getangle() vs. analogous Lua function test, add some anchors to doc. 2013-09-05 17:37:36 +00:00
lunacon.lua CON: Add new commands "getmusicposition" and "setmusicposition" that operate on the playback position of the current music track. 2015-01-17 00:28:49 +00:00
lunatic_game.c Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD. 2014-11-26 04:39:23 +00:00
lunatic_game.h Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD. 2014-11-26 04:39:23 +00:00
lunatic_m32.c Lunatic: make it possible to build with LuaJIT 2.1, add -Lopts=profile there. 2013-10-16 19:43:06 +00:00
lunatic_m32.h Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD. 2014-11-26 04:39:23 +00:00
profdemo.lua Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
randgen.lua Lunatic: fix building and startup up to tilesizx[] failure. DONT_BUILD. 2014-10-30 21:44:22 +00:00
savegame.lua LunaCON: implement NORESET flag for gamevars. 2013-11-08 18:08:37 +00:00
stat.lua Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
strict.lua Lunatic t.: handle prefix-problematic commands for real, definelevelname, ... 2012-06-17 19:45:37 +00:00
test.lua Lunatic: for gameactor(), deprecate AF.replace_hard, make AF.replace default. 2014-03-15 14:10:50 +00:00
v.lua A couple of minor changes. 2013-09-05 17:37:44 +00:00
xmath.lua Lunatic: make hitscan accept ray as vector, add xmath.kangvec. 2013-09-13 20:23:54 +00:00