~ubuntu-branches/ubuntu/wily/steam/wily

« back to all changes in this revision

Viewing changes to server/libraries/Slotter.pmod/Inserts.pmod/UniMenu.pike

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-10-29 19:51:18 UTC
  • mfrom: (1.1.4) (0.1.4 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131029195118-b9bxciz5hwx5z459
Tags: 1:1.0.0.39-2ubuntu1
Add an epoch to the version number as there was an unrelated steam package
in the archive with a higher version number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000-2004  Thomas Bopp, Thorsten Hampel, Ludger Merkens
2
 
 *
3
 
 *  This program is free software; you can redistribute it and/or modify
4
 
 *  it under the terms of the GNU General Public License as published by
5
 
 *  the Free Software Foundation; either version 2 of the License, or
6
 
 *  (at your option) any later version.
7
 
 *
8
 
 *  This program is distributed in the hope that it will be useful,
9
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 *  GNU General Public License for more details.
12
 
 *
13
 
 *  You should have received a copy of the GNU General Public License
14
 
 *  along with this program; if not, write to the Free Software
15
 
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
 
 * 
17
 
 * $Id: UniMenu.pike,v 1.1.1.1 2006/03/27 12:40:11 exodusd Exp $
18
 
 */
19
 
 
20
 
constant cvs_version="$Id: UniMenu.pike,v 1.1.1.1 2006/03/27 12:40:11 exodusd Exp $";
21
 
 
22
 
inherit Slotter.Inserts.VerticalMenu;
23
 
 
24
 
string sBaseDir = ".";
25
 
string sProto = "";
26
 
 
27
 
void create(string|void basedir, string|void proto)
28
 
{
29
 
    if (basedir)
30
 
        sBaseDir = basedir;
31
 
 
32
 
    if (proto)
33
 
        sProto = proto;
34
 
    
35
 
    set_active_icons(sProto+
36
 
                     combine_path(basedir,"./unimenu/UniActiveL.gif"), 20 ,
37
 
                     sProto+
38
 
                     combine_path(basedir,"./unimenu/UniActiveM.gif"), 35,
39
 
                     sProto+
40
 
                     combine_path(basedir,"./unimenu/UniActiveR.gif"),20);
41
 
    set_inactive_icons(sProto+
42
 
                       combine_path(basedir,"./unimenu/UniInActiveL.gif"), 20,
43
 
                       sProto+
44
 
                       combine_path(basedir,"./unimenu/UniInActiveM.gif"), 35,
45
 
                       sProto+
46
 
                       combine_path(basedir,"./unimenu/UniInActiveR.gif"),20);
47
 
    set_active_style("class=\"UniActiv\"");
48
 
    set_inactive_style("class=\"UniInActiv\"");
49
 
}
50
 
 
51
 
 
52
 
array generate()
53
 
{
54
 
    object session = Session.get_user_session();
55
 
    string var = get_variable();
56
 
    string val = session->get_global(var);
57
 
    set_state(val);
58
 
    return ::generate();
59
 
}
60
 
 
61
 
                  
62
 
array(string) need_style_sheets() {
63
 
    return ({ sProto + combine_path(sBaseDir,"./unimenu/menu.css") });
64
 
}
65