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">
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" />
16 <style type="text/css">
17 * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
18 body {behavior: url(/stylesheets/csshover.htc?1238935462);}
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; }
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>
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>
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>
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" />
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>
65 <div class="nosidebar" id="main">
73 <h2>sprite-to-num.sh</h2>
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>
82 <div class="autoscroll">
83 <table class="filecontent CodeRay">
87 <tr><th class="line-num" id="L1"><a href="#L1">1</a></th><td class="line-code"><pre>#!/bin/bash
91 <tr><th class="line-num" id="L2"><a href="#L2">2</a></th><td class="line-code"><pre>offset=0
95 <tr><th class="line-num" id="L3"><a href="#L3">3</a></th><td class="line-code"><pre>numsize=64
99 <tr><th class="line-num" id="L4"><a href="#L4">4</a></th><td class="line-code"><pre>i=0
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
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
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
115 <tr><th class="line-num" id="L8"><a href="#L8">8</a></th><td class="line-code"><pre>
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
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
127 <tr><th class="line-num" id="L11"><a href="#L11">11</a></th><td class="line-code"><pre>
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
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
149 <div id="ajax-indicator" style="display:none;"><span>Loading...</span></div>
152 Powered by <a href="http://www.redmine.org/">Redmine</a> © 2006-2009 Jean-Philippe Lang