Browse Source

书写文档

tags/v1.0
枫谷剑仙 7 years ago
parent
commit
d3154e0275
5 changed files with 54 additions and 32 deletions
  1. +53
    -0
      README.md
  2. +1
    -2
      languages/language-list.js
  3. +0
    -0
      monsters-info/StartextractByNode.bat
  4. +0
    -1
      monsters-info/jajson.js
  5. +0
    -29
      monsters-info/test.html

+ 53
- 0
README.md View File

@@ -0,0 +1,53 @@
智龙迷城车队阵型图制作工具 | Puzzle & Dragons Dash Formation Maker
======
这个工具可以帮助你方便的制作和分享车队阵型。
This tool can help you easily create and share Dash Formation.
# 如何使用 | HOW TO USE
## 在哪里打开 | Where to open
* 快速使用在线版 | Fast Start
http://mapaler.gitee.io/paddashformation/
* 或下载压缩包后使用火狐浏览器打开`index.html`。
Or download ZIP, and open the `index.html` by Firefox.
# 翻译我 | TRANSLATE ME
## How to **Pull requests**
1. Click **Fork** In the page top right corner. Fork your own copy of this repository to your account.
1. Use Git to clone/pull repository locally for modification(How to modify please see below).
1. Use Git to commit and push changes to your repository on GitHub.
1. Go to the **[Pull requests](//github.com/puzzled-dragon/pad-helper/pulls)** page in the top middle of this repository, and click the **New pull request** button.
1. Click the **Compare Across Forks** button and select your fork, the page then displays the changes.
1. Click the **Create pull request** button and enter the details of the modification, create your pull request.
## Translate
1. Push your language info into `language-list.js`.
This is a Object for a language list item.
```js
{
name:"English",i18n:"en",searchlist:["en","ja"],
guideURL:"http://www.puzzledragonx.com/en/awokenskill.asp?n=$1"
},
```
* `name` is the name shown in the list.
* `i18n` is the language-code for your language.
* `searchlist` is the search candidate list string order when you search monster in edit window.
Currently only `ja`,`en`,`ko` languages.(See `monsters-info`)
* `guideURL` is the language-code for your language.
1. Create your language's Localisation file `i18n.css` and `i18n.js`.
1. The original English webpage is `web/news/news.html` and `web/changelog/changelog.html`.
1. Copy the two HTML files to themselves folder, change filename to `news-your_language_tag.html` and `changelog-your_language_tag.html`, and then add to Git repository.
1. Translate your HTML files.
1. Change the `i18n_suffix` node value in your `strings.xml` to your language tag.
# Languages that are now supported
| Language Tag | Language variant |
| --- | --- |
| en | English |
| zh-rCN | 简体中文(中国) |
| zh-rHK | 繁體中文(香港) |
| zh-rTW | 繁體中文(台灣) |
### 智龙迷城官网 | Puzzle & Dragons Official Website
* [パズル&ドラゴンズ](http://pad.gungho.jp)
* [龍族拼圖](https://pad.gungho.jp/hktw/pad/)
* [Puzzle & Dragons](https://www.puzzleanddragons.us/)
* [퍼즐앤드래곤](https://pad.neocyon.com/W/)

+ 1
- 2
languages/language-list.js View File

@@ -1,5 +1,4 @@
/**/
var languageList = [
var languageList = [
{
name:"中文(简体)",i18n:"zh",searchlist:["ja","en"],
guideURL:"http://pad.skyozora.com/pets/$1"


monsters-info/提取信息.bat → monsters-info/StartextractByNode.bat View File


+ 0
- 1
monsters-info/jajson.js
File diff suppressed because it is too large
View File


+ 0
- 29
monsters-info/test.html View File

@@ -1,29 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="jajson.js"></script>
</head>
<body>
<script type="text/javascript">
function g(id)
{
var m = gw.card[id];
var pn = ["火","水","木","光","暗"];
var p1 = pn[m[2]]||"无",p2 = pn[m[3]]||"无";
var tn = ["0进化","1平衡","2体力","3回复","4龙","5神","6攻击","7恶魔","8机械","9","10","11","12觉醒","13","14强化","15卖钱"];
var type = [];
type.push(tn[m[5]]);
if (m[6]!=-1) //第二个type
type.push(tn[m[6]]);
if (m[m.length-9]!=-1) //第三个type要倒着来
type.push(tn[m[m.length-9]]);
console.log(m);
console.log("编号:%d,名字:%s,属性:%s/%s,%s退化,类型:%s,%d星,COST:%d,%s个觉醒,110级增长%d%%,卖%d MP,%s当二技",m[0],m[1],p1,p2,m[4]?"可":"不可",type.join("|"),m[7],m[8],
m[58+m[57]*3],m[m.length-3],m[m.length-8],m[m.length-5]>2?"能":"不能"
);
}
</script>
</body>
</html>

Loading…
Cancel
Save