Xolonium font v1.0
[xonotic/mediasource.git] / gfx / hud / sprite-to-num.sh
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3 <head>
4 <title>Nexuiz - Alientrap Development</title>
5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <meta name="description" content="Redmine" />
7 <meta name="keywords" content="issue,bug,tracker" />
8 <link href="/stylesheets/application.css?1241613297" media="all" rel="stylesheet" type="text/css" />
9 <script src="/javascripts/prototype.js?1238935462" type="text/javascript"></script>
10 <script src="/javascripts/effects.js?1238935462" type="text/javascript"></script>
11 <script src="/javascripts/dragdrop.js?1238935462" type="text/javascript"></script>
12 <script src="/javascripts/controls.js?1238935462" type="text/javascript"></script>
13 <script src="/javascripts/application.js?1238935462" type="text/javascript"></script>
14 <link href="/stylesheets/jstoolbar.css?1238935462" media="screen" rel="stylesheet" type="text/css" />
15 <!--[if IE]>
16     <style type="text/css">
17       * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
18       body {behavior: url(/stylesheets/csshover.htc?1238935462);}
19     </style>
20 <![endif]-->
21   <style type="text/css">
22 .question { background-color:#FFEBC1; border:2px solid #FDBD3B; margin-bottom:12px; padding:0px 4px 8px 4px; }
23 td.formatted_questions { text-align: left; white-space: normal}
24 td.formatted_questions ol { margin-top: 0px; margin-bottom: 0px; }
25   </style>
26  <link href="/plugin_assets/redmine_vote/stylesheets/stylesheet.css?1241479970" media="screen" rel="stylesheet" type="text/css" />
27 <!-- page specific tags -->
28     <link href="/stylesheets/scm.css?1238935462" media="screen" rel="stylesheet" type="text/css" /></head>
29 <body>
30 <div id="wrapper">
31 <div id="top-menu">
32     <div id="account">
33         <ul><li><a href="/login" class="login">Sign in</a></li>
34 <li><a href="/account/register" class="register">Register</a></li></ul>    </div>
35     
36     <ul><li><a href="/" class="home">Home</a></li>
37 <li><a href="/projects" class="projects">Projects</a></li>
38 <li><a href="http://www.redmine.org/guide" class="help">Help</a></li></ul></div>
39       
40 <div id="header">
41     <div id="quick-search">
42         <form action="/search/index/nexuiz" method="get">
43         <a href="/search/index/nexuiz" accesskey="4">Search</a>:
44         <input accesskey="f" class="small" id="q" name="q" size="20" type="text" />
45         </form>
46         
47     </div>
48     
49     <h1>Nexuiz</h1>
50     
51     <div id="main-menu">
52         <ul><li><a href="/projects/show/nexuiz" class="overview">Overview</a></li>
53 <li><a href="/projects/activity/nexuiz" class="activity">Activity</a></li>
54 <li><a href="/projects/roadmap/nexuiz" class="roadmap">Roadmap</a></li>
55 <li><a href="/projects/nexuiz/issues" class="issues">Issues</a></li>
56 <li><a href="/projects/nexuiz/news" class="news">News</a></li>
57 <li><a href="/projects/nexuiz/documents" class="documents">Documents</a></li>
58 <li><a href="/wiki/nexuiz" class="wiki">Wiki</a></li>
59 <li><a href="/projects/list_files/nexuiz" class="files">Files</a></li>
60 <li><a href="/repositories/show/nexuiz" class="repository">Repository</a></li>
61 <li><a href="/ezfaq/index/nexuiz" class="ezfaq">FAQ</a></li></ul>
62     </div>
63 </div>
64
65 <div class="nosidebar" id="main">
66     <div id="sidebar">        
67         
68         
69     </div>
70     
71     <div id="content">
72                                 
73         <h2>sprite-to-num.sh</h2>
74
75 <div class="attachments">
76 <p>fruitiex's script to slice them - 
77    <span class="author">-z-, 06/28/2009 10:56 AM</span></p>
78 <p><a href="/attachments/download/273/sprite-to-num.sh">Download</a>   <span class="size">(470 Bytes)</span></p>
79
80 </div>
81 &nbsp;
82 <div class="autoscroll">
83 <table class="filecontent CodeRay">
84 <tbody>
85
86
87 <tr><th class="line-num" id="L1"><a href="#L1">1</a></th><td class="line-code"><pre>#!/bin/bash
88 </pre></td></tr>
89
90
91 <tr><th class="line-num" id="L2"><a href="#L2">2</a></th><td class="line-code"><pre>offset=0
92 </pre></td></tr>
93
94
95 <tr><th class="line-num" id="L3"><a href="#L3">3</a></th><td class="line-code"><pre>numsize=64
96 </pre></td></tr>
97
98
99 <tr><th class="line-num" id="L4"><a href="#L4">4</a></th><td class="line-code"><pre>i=0
100 </pre></td></tr>
101
102
103 <tr><th class="line-num" id="L5"><a href="#L5">5</a></th><td class="line-code"><pre>while [ $i -lt 13 ];do convert -crop $((numsize))x$numsize+$offset+0 numbers.png num_$i.tga;convert -crop $((numsize))x$numsize+$offset+0 numbers_outline.png num_$((i))_stroke.tga;offset=$((offset+$numsize));i=$((i+1));done
104 </pre></td></tr>
105
106
107 <tr><th class="line-num" id="L6"><a href="#L6">6</a></th><td class="line-code"><pre>mv num_10.tga num_minus.tga
108 </pre></td></tr>
109
110
111 <tr><th class="line-num" id="L7"><a href="#L7">7</a></th><td class="line-code"><pre>mv num_10_stroke.tga num_minus_stroke.tga
112 </pre></td></tr>
113
114
115 <tr><th class="line-num" id="L8"><a href="#L8">8</a></th><td class="line-code"><pre>
116 </pre></td></tr>
117
118
119 <tr><th class="line-num" id="L9"><a href="#L9">9</a></th><td class="line-code"><pre>mv num_11.tga num_plus.tga
120 </pre></td></tr>
121
122
123 <tr><th class="line-num" id="L10"><a href="#L10">10</a></th><td class="line-code"><pre>mv num_11_stroke.tga num_plus_stroke.tga
124 </pre></td></tr>
125
126
127 <tr><th class="line-num" id="L11"><a href="#L11">11</a></th><td class="line-code"><pre>
128 </pre></td></tr>
129
130
131 <tr><th class="line-num" id="L12"><a href="#L12">12</a></th><td class="line-code"><pre>mv num_12.tga num_colon.tga
132 </pre></td></tr>
133
134
135 <tr><th class="line-num" id="L13"><a href="#L13">13</a></th><td class="line-code"><pre>mv num_12_stroke.tga num_colon_stroke.tga
136 </pre></td></tr>
137
138
139 </tbody>
140 </table>
141 </div>
142
143
144
145         
146     </div>
147 </div>
148
149 <div id="ajax-indicator" style="display:none;"><span>Loading...</span></div>
150         
151 <div id="footer">
152     Powered by <a href="http://www.redmine.org/">Redmine</a> &copy; 2006-2009 Jean-Philippe Lang
153 </div>
154 </div>
155
156 </body>
157 </html>