// ==UserScript== // @name JBurgund_yct // @namespace JBurgund_yct // @description バグ報告: http://www50.atpages.jp/northpia/tree/tree.php // @include http://www.yucata.de/en/Game/CastlesOfBurgundy/* // @version 0.1.5 // @require http://code.jquery.com/jquery-1.8.2.js // @grant hoge // ==/UserScript== (function() { $("#divFooterButtons").append(""); $("#divFooterButtons").append("
"); setTimeout(function(){initLoad();},300); //Infoエリアのメッセージ日本語化 var infotext_en = [ "Can change die value by 1 while placing a Ship or Animal tile", "Can Ship goods from 2 adjacent depots", "You may take a knowledge, mine or castle tile from the depot without using a die.", "Buy a tile from the black depot or", "Awaiting next turn", "Choose your color", "Choose your player board.", "Choose a location for your starting castle.", "Place your starting castle.", "Finish your move.", "Choose a die to play.", "Select die with value", "Choose your action for die value of your choice", "Choose a tile from a depot to place it in your storage.", "Choose a type of goods to sell.", "Hire 2 workers.", "Choose a tile from your storage to place it in your estate.", "Sell all goods of this type", "Select a field in your estate to place this tile.", "Select a tile from your storage to place in your estate. Tile: ", "Place the tile on this field.", "Choose a single goods depot from which you may take all goods that you can store.", "Take all goods from depot", "for which you have space.", "Choose a tile to buy from the black depot", "Allow an immediate additional action", "Can change die value by 1 while placing a Castle, Knowledge or Mine tile", "Score 4 points per type of animal", "Score 4 points per City Hall", "Each Animal tile scores 1 additional point", "Get 4 Workers when using Worker action", "Score 2 points per bonus tile obtained", "Score 4 points per Carpenter's Workshop", "Take this tile to your storage. Tile:", "Move 1 space on the track and take all goods from a single depot", "Sell any type of goods", "Get 2 Silver when selling goods", "Score 1 point per Pig in the same pasture", "Score 1 point per Cow in the same pasture", "Score 1 point per Sheep in the same pasture", "Score 1 point per Chicken in the same pasture", "Can buy tiles from any depot", "Take a Ship or Animal tile", "Get 4 Workers", "Score 4 points per Watchtower", "Score 4 points per Market", "Score 4 points per Church", "Buy this tile from the black depot for 2 silver. Tile:", "Score 1 point per good sold", "Get 2 Silver", "Get additional 1 Silver when using Worker action", "Get 1 Silver and 1 Worker when selling goods", "Take a Castle, Knowledge or Mine tile", "Score 4 points", "Get 1 Silver at the end of each phase", "Place an additional tile in your estate", "Take a Building tile", ]; var infotext_jp = [ "船や動物タイルを配置する際にダイス目を1だけ操作できる", "隣接する2つの倉庫から商品を取ることができる", "ダイスを使用することなく知識、鉱山、城タイルを倉庫から取れる", "闇市場からタイルを購入してください もしくは", "次のターンをお待ちください", "色を選んでください", "プレーヤーボードを選んでください", "開始時の城を置く場所を選んでください", "開始時の城を置いてください", "ターン終了してください", "プレイするダイスを選んでください", "選んだダイスの目:", "選択したダイス目に合ったアクションを選んでください", "自分の保管場所に置くタイルを倉庫から選んでください", "売る商品の種類を選んでください", "労働者2人を雇います", "あなたの用地に置くタイルを保管庫から選んでください", "この種類の商品全てを売却する", "このタイルを置く自分の用地のマスを選んでください", "用地に置くタイルを保管庫から選んでください. タイル: ", "このマスに置きます", "保管する全ての商品を倉庫から選んでください", "倉庫番号", "から全ての商品を取り保管庫に収める", "闇市場から購入するタイルを選んでください", "直ちに追加アクションが可能", "城、知識、鉱山タイルを配置する時に限りダイス目をプラスマイナス1調整できる", "動物の種類1つにつき勝利点4を得る", "市庁舎1つにつき勝利点4を得る", "動物タイル1枚ごとに追加で勝利点1", "労働者アクションをする際に労働者4人を得る", "持っているボーナスタイル1枚につき勝利点2を得る", "大工の作業場1つにつき勝利点4を得る", "このタイルを保管庫におきます: ", "任意の倉庫スペースから全商品を取り、手番順マーカーを右に移動させます", "任意の商品を売ります", "商品を売却して2銀を得ます", "同じ牧場にいる豚1匹につき1点得る", "同じ牧場にいる牛1匹につき1点得る", "同じ牧場にいる羊1匹につき1点得る", "同じ牧場にいる鶏1匹につき1点得る", "任意の倉庫からタイルを購入できる", "船か動物のタイルを入手する", "労働者4人を得る", "見張り台1つにつき4点得る", "市場1つにつき4点得る", "教会1つにつき4点得る", "闇市場から2銀でタイルを購入します. タイル:", "売却商品1つごとに勝利点1を得る", "2銀を得る", "労働者アクションの時に追加で1銀得る", "商品売却の際に1銀と労働者1を得る", "城か知識か鉱山のいずれかのタイルを取る", "勝利点4を得る", "フェイズ終了時に1銀を得る", "用地に追加のタイルを配置する", "建物タイルを取る", ]; var helptext_en = [ "", ]; var helptext_jp = [ "", ]; var logtext_en = [ "", ]; var logtext_jp = [ "", ]; setTimeout(function(){infotext_update(0);},300); $("body").on("mouseenter mouseleave","#boardChooser",function(){setTimeout(function(){infotext_update(0);},300);}); $("body").on("mouseenter mouseleave","#playerCardsTabContainer",function(){setTimeout(function(){infotext_update(0);},300);}); for(i=0;i<37;i++){$("body").on("mouseenter mouseleave","#tile"+i+"_overlay",function(){setTimeout(function(){infotext_update(0);},300);});}; for(i=1;i<3;i++){$("body").on("mouseenter mouseleave","#die"+i,function(){setTimeout(function(){infotext_update(0);},300);});}; for(i=0;i<3;i++){$("body").on("mouseenter mouseleave","#store"+i,function(){setTimeout(function(){infotext_update(0);},300);});}; for(i=0;i<3;i++){$("body").on("mouseenter mouseleave","#good"+i,function(){setTimeout(function(){infotext_update(0);},300);});}; for(i=0;i<5;i++){$("body").on("mouseenter mouseleave","#goods"+i,function(){setTimeout(function(){infotext_update(0);},300);});}; // $("body").on("mouseenter mouseleave","#die1",function(){setTimeout(function(){infotext_update(0);},300);}); $("body").on("mouseenter mouseleave","#depotAction_overlay",function(){setTimeout(function(){infotext_update(0);},300);}); $("body").on("mouseenter mouseleave","#estateAction_overlay",function(){setTimeout(function(){infotext_update(0);},300);}); $("body").on("mouseenter mouseleave","#sellAction_overlay",function(){setTimeout(function(){infotext_update(0);},300);}); $("body").on("mouseenter mouseleave","#workersAction_overlay",function(){setTimeout(function(){infotext_update(0);},300);}); for(i=0;i<7;i++) { for(j=0;j<6;j++) { $("body").on("mouseenter mouseleave","#depot"+i+"tile"+j,function(){setTimeout(function(){infotext_update(0);},300);}); } } /* $("body").on("mouseenter mouseleave","#depot0tile0",function(){setTimeout(function(){infotext_update(0);},300);}); $("body").on("mouseenter mouseleave","#depot0tile1",function(){setTimeout(function(){infotext_update(0);},300);}); $("body").on("mouseenter mouseleave","#depot0tile2",function(){setTimeout(function(){infotext_update(0);},300);}); $("body").on("mouseenter mouseleave","#depot0tile3",function(){setTimeout(function(){infotext_update(0);},300);}); */ $("body").on("mouseenter mouseleave","#tilesDepot",function(){setTimeout(function(){infotext_update(0);},300);}); //■■■■■カードのマウスオーバー時の処理 function initLoad() { /* for(var i in logtext_en){$("#moveInfo").html($("#moveInfo").html().replace(RegExp(logtext_en[i],"ig"),logtext_jp[i]));}; $("body").on("click",".click4help",function(){chip_overwrite0(0);}); $("body").on("click",".help" + ".pts",function(){chip_overwrite0(0);}); for(i=0;i<4;i++){$("#gameWindow").on("mouseenter mouseleave","#bonus"+i,function(){infotext_update(0);});} //ボーナスタイル選択 $("#gameWindow").on("mouseenter mouseleave",".UIaction",function(){infotext_update(0);}); $("#gameWindow").on("mouseenter mouseleave",".UItoDo",function(){infotext_update(0);}); */ // $("#gameWindow").hover(function(){infotext_update(0);},function(){infotext_update(0);}); infotext_update(0); } function infotext_update(num) { for(var i in infotext_en) { if($("#colorChooserTitle").length){$("#colorChooserTitle").html($("#colorChooserTitle").html().replace(RegExp(infotext_en[i],"i"),infotext_jp[i]))}; if($("#boardChooserTitle").length){$("#boardChooserTitle").html($("#boardChooserTitle").html().replace(RegExp(infotext_en[i],"i"),infotext_jp[i]))}; if($("#infoLabel").length){$("#infoLabel").html($("#infoLabel").html().replace(RegExp(infotext_en[i],"i"),infotext_jp[i]))}; }; // for(var i in infotext_en){$("#infoLabel").html($("#infoLabel").html().replace(RegExp(infotext_en[i],"i"),infotext_jp[i]));}; } function chip_overwrite0(num) { for(var i in helptext_en){if($(".clickedHelp").length){$(".clickedHelp").html($(".clickedHelp").html().replace(RegExp(helptext_en[i],"i"),helptext_jp[i]));};}; for(var i in helptext_en) { if($(".help"+".pts"+".player"+".player0").length){$(".help"+".pts"+".player"+".player0").html($(".help"+".pts"+".player"+".player0").html().replace(RegExp(helptext_en[i],"ig"),helptext_jp[i]));}; if($(".help"+".pts"+".player"+".player1").length){$(".help"+".pts"+".player"+".player1").html($(".help"+".pts"+".player"+".player1").html().replace(RegExp(helptext_en[i],"ig"),helptext_jp[i]));}; if($(".help"+".pts"+".player"+".player2").length){$(".help"+".pts"+".player"+".player2").html($(".help"+".pts"+".player"+".player2").html().replace(RegExp(helptext_en[i],"ig"),helptext_jp[i]));}; if($(".help"+".pts"+".player"+".player3").length){$(".help"+".pts"+".player"+".player3").html($(".help"+".pts"+".player"+".player3").html().replace(RegExp(helptext_en[i],"ig"),helptext_jp[i]));}; }; $(".add_helptext").css("font-size","1.3em"); } })();