7d4f5d53b61a996b9829fb3eb08df2618b5f7e42
[sdk] / samples / guiAndGfx / fliPlay / FliPlayApp.ec
1 /****************************************************************************
2    FLC/FLI Player
3
4    Copyright (c) 2001 Jerome Jacovella-St-Louis
5    All Rights Reserved.
6    
7    FliPlayApp.ec - Main Module
8 ****************************************************************************/
9 import "fliPlay"
10
11 class FliPlayApp : GuiApplication
12 {   
13    appName = "ECERE FLC Player";
14
15    // driver = "OpenGL";
16    // driver = "Direct3D";
17
18    bool Init()
19    {
20       if(argc>1)
21       {
22          FliPlay
23          {
24             borderStyle = sizable, hasClose = true, hasMaximize = true, hasMinimize = true, 
25             text = "ECERE FLC Player", anchor = { left = 0.125, top = 0.125, right = 0.125, bottom = 0.125 },
26             animation = argv[1]
27          };
28       }
29       else
30          Log("Syntax:\n   FLIPLAY <FLI/FLC Movie>\n");
31       return true;
32    }
33 }