| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html lang="ja"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis"> |
| 5 |
<title>plugin-header</title> |
| 6 |
<link rel="stylesheet" type="text/css" href="main.css"> |
| 7 |
<link rel="SHORTCUT ICON" href="interi.ico"> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<a name="pagetop"> |
| 11 |
<div class="centerbox" align="center"> |
| 12 |
<div class="topbox"> |
| 13 |
<div class="contbox"> |
| 14 |
<h1 class="nonterm">plugin-header</h1> |
| 15 |
</div> |
| 16 |
<div class="menubox"> |
| 17 |
<div class="contbox"> |
| 18 |
<h2>コンテンツ</h2> |
| 19 |
<p class="joint"><a href="../index.html">トップページ</a></p> |
| 20 |
<p class="joint"><a href="introduction.html">はじめに</a></p> |
| 21 |
<p class="joint"><a href="operation.html">操作方法</a></p> |
| 22 |
<p class="joint"><a href="plugin.html">プラグイン</a><br>+ <a href="pi_install.html">インストール</a><br>+ <a href="pi_making.html">作成方法</a><br>+ <a href="pi_grammar.html">文法の読み方</a><br>+ <a href="pi_profile.html">プロファイル</a><br> + <a href="pi_rail.html">レール</a><br> + <a href="pi_tie.html">枕木</a><br> + <a href="pi_girder.html">橋桁</a><br> + <a href="pi_pier.html">橋脚</a><br> + <a href="pi_line.html">架線</a><br>+ <a href="pi_pole.html">架線柱</a><br>+ <a href="pi_model.html">モデル</a><br> + <a href="pi_train.html">車輌</a><br> + <a href="pi_station.html">駅舎</a><br> + <a href="pi_struct.html">施設</a><br> + <a href="pi_surface.html">地形</a><br>+ <a href="pi_env.html">環境</a><br>+ <a href="pi_skin.html">スキン</a><br>+ <a href="pi_index.html">索引</a><br> + <span class="appeal">plugin-header</span></p> |
| 23 |
<p class="joint"><a href="thanks.html">謝辞</a></p> |
| 24 |
<p class="joint"><a href="support.html">サポート</a></p> |
| 25 |
<p class="joint"><a href="faq.html">よくある質問</a></p> |
| 26 |
<p><a href="history.html">更新履歴</a></p> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
<div class="mainbox"> |
| 30 |
<div class="contbox"> |
| 31 |
<h2>概要</h2> |
| 32 |
<p>プラグインのヘッダ情報を定義します。</p> |
| 33 |
</div> |
| 34 |
<div class="contbox cb_src"> |
| 35 |
<h2>生成規則</h2> |
| 36 |
<pre class="nonterm">pulgin-header ::=</pre> |
| 37 |
<pre class="ind">PluginHeader{ |
| 38 |
RailSimVersion = <a class="nonterm" href="pi_sym_float.html">float</a>; |
| 39 |
PluginType = <a class="nonterm" href="pi_sym_identifier.html">identifier</a>; |
| 40 |
PluginName = <a class="nonterm" href="pi_sym_string.html">string</a>; |
| 41 |
PluginAuthor = <a class="nonterm" href="pi_sym_string.html">string</a>; |
| 42 |
<span class="ctrl">(</span> IconTexture = <a class="nonterm" href="pi_sym_filename.html">filename</a>; <span class="ctrl">)</span><span class="sub">opt</span> |
| 43 |
<span class="ctrl">(</span> IconRect = <a class="nonterm" href="pi_sym_float.html">float</a>, <a class="nonterm" href="pi_sym_float.html">float</a>, <a class="nonterm" href="pi_sym_float.html">float</a>, <a class="nonterm" href="pi_sym_float.html">float</a>; <span class="ctrl">)</span><span class="sub">opt</span> |
| 44 |
<span class="ctrl">(</span> Description = <a class="nonterm" href="pi_sym_string.html">float</a>; <span class="ctrl">)</span><span class="sup">*</span> |
| 45 |
}</pre> |
| 46 |
</div> |
| 47 |
<div class="contbox"> |
| 48 |
<h2>解説</h2> |
| 49 |
<p class="argname">RailSimVersion</p> |
| 50 |
<p class="argexp">そのプラグインが対応する RailSim のバージョンを指定します。通常、そのプラグインが作成された時点での RailSim の最新バージョンを指定します。例えば、Version 2.00 の場合は <span class="source">RailSimVersion = 2.00;</span> と書きます。</p> |
| 51 |
<p class="argname">PluginType</p> |
| 52 |
<p class="argexp">プラグインタイプを指定します。プラグインタイプは<a href="pluginclass.png">プラグインクラスの図</a>に ( ) で示された英単語です。大文字と小文字は区別されます。</p> |
| 53 |
<p class="argname">PluginName</p> |
| 54 |
<p class="argexp">プラグイン名を指定します。</p> |
| 55 |
<p class="argname">PluginAuthor</p> |
| 56 |
<p class="argexp">プラグインの作者名を指定します。</p> |
| 57 |
<p class="argname">IconTexture</p> |
| 58 |
<p class="argexp">ツリービューで使用されるプラグインのアイコン画像ファイルを指定します。画像ファイルは BMP や PNG 等 DirectX がサポートする画像フォーマットである必要があります。Windows 用アイコンファイル (*.ico) は使用できません。省略した場合は<a href="pi_skin.html">スキン</a>で定義されたデフォルトアイコンが使用されます。アンチエイリアスはかかりませんので、16*16 ちょうどの画像を使用すると最も綺麗に表示されます。</p> |
| 59 |
<p class="argname">IconRect</p> |
| 60 |
<p class="argexp">通常は <span class="source">IconTexture</span> で指定された画像全体をアイコンとして使用しますが、テクスチャファイルの余った部分をアイコンに使いたい場合などに、アイコンとして使用する領域の左上 UV 座標と UV サイズを指定します。ピクセル単位ではないので注意してください。</p> |
| 61 |
<p class="argname">Description</p> |
| 62 |
<p class="argexp_f">プラグイン選択時に表示される説明文を入力します。長い文字列は自動的に折り返されますが、<span class="source">Description</span> を複数指定すればその間は強制的に改行されます。</p> |
| 63 |
</div> |
| 64 |
<div class="contbox"> |
| 65 |
<h2>参照</h2> |
| 66 |
<p><a class="nonterm" href="pi_rail.html">rail-plugin</a> / <a class="nonterm" href="pi_tie.html">tie-plugin</a> / <a class="nonterm" href="pi_girder.html">girder-plugin</a> / <a class="nonterm" href="pi_pier.html">pier-plugin</a> / <a class="nonterm" href="pi_line.html">line-plugin</a> / <a class="nonterm" href="pi_pole.html">pole-plugin</a> / <a class="nonterm" href="pi_train.html">train-plugin</a> / <a class="nonterm" href="pi_station.html">station-plugin</a> / <a class="nonterm" href="pi_struct.html">struct-plugin</a> / <a class="nonterm" href="pi_surface.html">surface-plugin</a> / <a class="nonterm" href="pi_env.html">env-plugin</a> / <a class="nonterm" href="pi_skin.html">skin-plugin</a></p> |
| 67 |
</div> |
| 68 |
</div> |
| 69 |
<div class="footbox"> |
| 70 |
<p class="silent"><a href="pi_index.html">▲SecTop</a> | <a href="#pagetop">▲PageTop</a><br>Copyright (c) 2003-2009 インターネット停留所</p> |
| 71 |
</div> |
| 72 |
</div> |
| 73 |
</div> |
| 74 |
</body> |
| 75 |
</html> |