/usr/share/games/adanaxisgpl/ruby/AdanaxisRender.rb is in adanaxisgpl-data 1.2.5.dfsg.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | #%Header {
##############################################################################
#
# File data-adanaxis/ruby/AdanaxisRender.rb
#
# Copyright Andy Southgate 2006-2007
#
# This file may be used and distributed under the terms of the Mushware
# Software Licence version 1.4, under the terms for 'Proprietary original
# source files'. If not supplied with this software, a copy of the licence
# can be obtained from Mushware Limited via http://www.mushware.com/.
# One of your options under that licence is to use and distribute this file
# under the terms of the GNU General Public Licence version 2.
#
# This software carries NO WARRANTY of any kind.
#
##############################################################################
#%Header } EVzTvV0QrXwUNNo3xXEfsg
# $Id: AdanaxisRender.rb,v 1.12 2007/06/27 13:18:55 southa Exp $
# $Log: AdanaxisRender.rb,v $
# Revision 1.12 2007/06/27 13:18:55 southa
# Debian packaging
#
# Revision 1.11 2007/06/27 12:58:12 southa
# Debian packaging
#
# Revision 1.10 2007/04/18 09:21:53 southa
# Header and level fixes
#
# Revision 1.9 2007/04/16 08:41:06 southa
# Level and header mods
#
# Revision 1.8 2007/03/13 21:45:08 southa
# Release process
#
# Revision 1.7 2007/02/08 17:55:12 southa
# Common routines in space generation
#
# Revision 1.6 2006/11/09 23:53:59 southa
# Explosion and texture loading
#
# Revision 1.5 2006/10/17 15:28:00 southa
# Player collisions
#
# Revision 1.4 2006/08/01 17:21:18 southa
# River demo
#
# Revision 1.3 2006/08/01 13:41:12 southa
# Pre-release updates
#
require 'Mushware.rb'
class AdanaxisRender < MushObject
def initialize
@m_packageID = MushGame.cPackageID
end
def mCreate
@m_menuFont = MushGLFont.new(:name => 'library-font1');
@m_menuStr = "Menu from ruby";
end
def mRenderMenu
@m_menuFont.mRender(@m_menuStr)
end
def mRender
mRenderMenu
end
def mPrecacheRender(inPercentage, inMB)
@m_menuFont.colour = MushVector.new(1,1,1,0.3)
@m_menuFont.mRenderAtSize("Loading... #{inPercentage}%", -0.4, -0.25, 0.02);
@m_menuFont.colour = MushVector.new(1,1,1,0.1)
@m_menuFont.mRenderAtSize("#{inMB}MB", -0.4, -0.27, 0.015);
end
def mPackageIDRender
@m_menuFont.colour = MushVector.new(1,1,1,0.3)
@m_menuFont.mRenderAtSize(@m_packageID, -@m_packageID.length * 0.006, -0.27, 0.012);
end
end
|