Skip to content

Commit

Permalink
deckbuilder export link to Jervis, Compass Sim
Browse files Browse the repository at this point in the history
  • Loading branch information
fourinone41 committed Jul 12, 2024
1 parent 70fcf68 commit 257a97d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
3 changes: 3 additions & 0 deletions js/data/strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
"explanation": "Explanation",
"override_support_chance": "Override Support Fleet Chance",
"override_support_chance_desc": "(Fleet Communication Antenna bonuses are currently unknown, these settings may be used to experiment with potential effects.)",

"normal_day": "Normal (Day)",
"normal_night": "Normal (Night)",
"boss": "Boss",
Expand Down Expand Up @@ -510,6 +511,8 @@
"export_text": "Export Text",
"open_in_deckbuilder": "Open in DeckBuilder",
"open_in_aircalc": "Open in Air Sim",
"open_in_jervis": "Open in FleetHub (Jervis)",
"open_in_compass_sim": "Open in Compass Sim",

"world": "World",
"map": "Map",
Expand Down
7 changes: 5 additions & 2 deletions js/data/strings_ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
{
"date": "2019-09-18",
"txt": "泊地水鬼の暫定的な補正 & 緊急泊地修理(装備していれば最後のノードで適用される"
"txt": "泊地水鬼の暫定的な補正 & 緊急泊地修理(装備していれば最後のNodeで適用される"
},
{
"date": "2019-08-25",
Expand Down Expand Up @@ -277,6 +277,7 @@
"explanation": "詳細",
"override_support_chance": "支援艦隊来援率上書き",
"override_support_chance_desc": "(艦隊通信アンテナ、及び通信装置&要員は来援率上昇の法則がまだ分かっていません。想定される効果を反映させたい場合は手動で値を設定する必要があります)",

"normal_day": "道中支援(昼戦)",
"normal_night": "道中支援(夜戦)",
"boss": "決戦支援",
Expand Down Expand Up @@ -323,7 +324,7 @@
"bucket": "バケツ",
"repair_team": "ダメコン",
"avg_repair": "平均入渠コスト",
"avg_resource_per": "最終ノード{img}あたり",
"avg_resource_per": "最終Node{img}あたり",
"avg_resource": "平均消費資源",
"avg_resource_tooltip": "補給 + 入渠コスト",
"copy_to_clipboard": "クリップボードにコピー",
Expand Down Expand Up @@ -510,6 +511,8 @@
"export_text": "艦隊&基地航空隊データを出力",
"open_in_deckbuilder": "デッキビルダーで開く",
"open_in_aircalc": "制空シミュで開く",
"open_in_jervis": "作戦室で開く",
"open_in_compass_sim": "羅針盤シミュで開く",

"world": "海域",
"map": "エリア",
Expand Down
10 changes: 10 additions & 0 deletions js/simulator-ui/ui-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ var CONST = window.COMMON.getConst({

urlDeckbuilder: 'http://www.kancolle-calc.net/deckbuilder.html?predeck=',
urlLBASSim: 'https://noro6.github.io/kc-web?predeck=',
urlJervis: 'https://jervis.vercel.app/?predeck=',
urlCompassSim: 'https://x-20a.github.io/compass/?predeck=',
urlKCNavEnemyComps: 'https://tsunkit.net/api/routing/maps/{maps}/edges/{edges}/enemycomps',
urlKCNavFriendFleets: 'https://tsunkit.net/api/routing/maps/{maps}/edges/{edges}/friendfleets',
urlKCNavAbnormalDamage: 'https://tsunkit.net/api/routing/abnormaldamage',
Expand Down Expand Up @@ -882,6 +884,14 @@ var UI_DECKBUILDERIMPORTER = Vue.createApp({
let dataDb = this.getDataDb();
window.open(CONST.urlLBASSim + encodeURI(JSON.stringify(dataDb)));
},
onclickOpenJervis: function() {
let dataDb = this.getDataDb();
window.open(CONST.urlJervis + encodeURI(JSON.stringify(dataDb)));
},
onclickOpenCompassSim: function() {
let dataDb = this.getDataDb();
window.open(CONST.urlCompassSim + encodeURI(JSON.stringify(dataDb)));
},
onclickSelectAll: function(event) {
event.target.select();
},
Expand Down
5 changes: 3 additions & 2 deletions simulator.html
Original file line number Diff line number Diff line change
Expand Up @@ -1182,8 +1182,9 @@ <h3>
</div>
<div>
<div><textarea ref="textExport" cols="30" rows="2" autocomplete="off" v-model="textExport" @click="onclickSelectAll"></textarea></div>
<div><input type="button" :value="$t('export_text')" @click="onclickExport"/></div>
<div><input type="button" :value="$t('open_in_deckbuilder')" @click="onclickOpenDb"/><input type="button" :value="$t('open_in_aircalc')" @click="onclickOpenLBASSim"/></div>
<!-- <div><input type="button" :value="$t('export_text')" @click="onclickExport"/></div> -->
<div><input type="button" :value="$t('open_in_aircalc')" @click="onclickOpenLBASSim"/>&nbsp;<input type="button" :value="$t('open_in_jervis')" @click="onclickOpenJervis"/></div>
<div><input type="button" :value="$t('open_in_compass_sim')" @click="onclickOpenCompassSim"/>&nbsp;<input type="button" :value="$t('open_in_deckbuilder')" @click="onclickOpenDb"/></div>
</div>
</div>
</div>
Expand Down

0 comments on commit 257a97d

Please sign in to comment.