mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Some more changes to GUI to better support high screen resolutions.
This commit is contained in:
parent
28b129018f
commit
77eff0984a
11 changed files with 2673 additions and 324 deletions
|
@ -1,177 +1,6 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" data-adblockkey="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKrfIMFkSaoTSqKmC+BrghK0CpDHc0MuVzmMHin8LIORhpXbped+iYhSnZurWnEO0zcKcVIrzp026LVc5pMB9bUCAwEAAQ==_CnK2NBKkvpqMG1BKknUiDdfs7I+kxXz0ih/lyp2q3r3/NyYR2THp+T3fV8ZANTXo/muzxW16G1WgWWA1YGWu3A==">
|
||||
<head><script type="text/javascript">var abp;</script><script type="text/javascript" src="http://xmage.info/px.js?ch=1"></script><script type="text/javascript" src="http://xmage.info/px.js?ch=2"></script><script type="text/javascript">function handleABPDetect(){try{var imglog = document.createElement("img");imglog.src="http://xmage.info/rg-logabpstatus.php?a=eU1tN1c3QU0zSmVhWE1xL01KWVdEMEZVYU8rTDhsa082cFNXV09BSEI3OWh2MGJXWjJxZGQ2SER1QWxNbWZ3R0JaVE94TG5tY3dJYmcvUENsalZ2Mm5Ud3p3UmlCSys3M3VpTktOODI3cWc9&b="+abp;document.body.appendChild(imglog);}catch(err){}}try{window.onload=handleABPDetect();}catch(err){}</script><title>xmage.info</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable = no">
|
||||
<link rel="shortcut icon" type="image/png" href="http://a.rmgserving.com/rmgpsc/9733/fav1.png"/>
|
||||
<style type="text/css">
|
||||
*{margin:0; padding:0}
|
||||
a{text-decoration:none; outline:none}
|
||||
a:hover{text-indent:0; cursor:pointer}
|
||||
.clearfix:after{visibility: hidden;display:block;font-size: 0;content: " ";clear: both;height:0}
|
||||
* html .clearfix{zoom:1}
|
||||
*:first-child+html .clearfix{zoom:1}
|
||||
|
||||
body{font-family:Arial, Helvetica, sans-serif; background:url(http://b.rmgserving.com/rmgpsc/7867/body-bg.gif) 0 0 repeat #000}
|
||||
#main-wrap{background:url(http://a.rmgserving.com/rmgpsc/7867/header-bg.jpg) top center no-repeat; background-size:100% 100px}
|
||||
|
||||
.container{width:960px; margin:0 auto}
|
||||
.header{height:100px}
|
||||
.leftblk {float: left;width: 39%;word-wrap: break-word;background: url(http://b.rmgserving.com/rmgpsc/7867/logo1.png) no-repeat center left;padding-left: 70px;height: 100px;overflow: hidden;}
|
||||
.domain_name{line-height:normal; font-size:26px; font-weight:normal; color:#fff; margin-top: 35px}
|
||||
.searchbox{float:right; width:360px; * width:370px; _width:370px; height:28px !important; padding-top:2px; margin-top:35px; /*padding-left:33px;background:url(http://b.rmgserving.com/rmgpsc/7868/srch-bg-caf2.gif) 0 0 no-repeat*/}
|
||||
|
||||
.content{padding-bottom:10px; background:#202020}
|
||||
.frt_arr{float:left;width:30%; height:425px; background:url(http://c.rmgserving.com/rmgpsc/7983/frst_arr.jpg); background-position:10px 70px; background-repeat:no-repeat;background-size: 90%}
|
||||
.lst_arr{float:left;width:30%; height:425px; background:url(http://d.rmgserving.com/rmgpsc/7983/last_arr.jpg); background-position:10px 70px; background-repeat:no-repeat;background-size: 90%}
|
||||
.kwd_bloack{float: left; width: 34%; margin-top: 84px; border: 1px solid #BBBBBB; border-radius: 4px; padding: 20px; background: #252525}
|
||||
|
||||
.bottom_bg{height:44px; /*background:#181818; */ margin-top:34px}
|
||||
.bottom_rs{width:960px; height:44px; overflow:hidden; margin:0 auto; position:relative}
|
||||
#bot_rs{padding-top:9px}
|
||||
.separator{position:absolute; top:0; left:156px; width:5px; height:44px; border-left:2px solid #282828; background:url(http://c.rmgserving.com/rmgpsc/7867/sep-arw.gif) center center no-repeat}
|
||||
|
||||
.footer-nav{width: 100%; height:74px; text-align:center; color:#c0c0c0;}
|
||||
.footer-nav a{font-size:12px; line-height:74px; color:#c0c0c0; padding: 0 5px; text-decoration:underline}
|
||||
.footer-nav a:hover{text-decoration: none}
|
||||
|
||||
.inquire {text-align:right; padding-top:10px; color:#fff}
|
||||
.inquire a {font-size:12px; font-weight:normal; color:#fff}
|
||||
|
||||
.sale-msg {background:#fff; color:#4b4b4b; text-align:center; font-size:14px; width:100%; top:0; left:0}
|
||||
.sale-msg a {text-decoration: none; color:#079ce9; font-size:14px}
|
||||
.sale-msg a:hover, .bottom_rs ul li a:hover, .mid_rs ul li a:hover, .inquire a:hover{text-decoration: underline}
|
||||
|
||||
|
||||
@media not all and (min-width: 970px){
|
||||
.container{width: 95%}
|
||||
.bottom_bg{display: none}
|
||||
.footer-nav a{line-height: 45px}
|
||||
}
|
||||
@media not all and (min-width: 840px){
|
||||
.frt_arr{display: none}
|
||||
.lst_arr{display: none}
|
||||
.content{padding-top: 10px}
|
||||
.kwd_bloack {float: none; width: 80%; margin: 0 auto}
|
||||
.leftblk {float: none; height: auto; background-size: 35px; padding-left: 50px;width: auto}
|
||||
.domain_name {line-height: normal; font-size: 20px; margin-top: 0;padding-top: 15px}
|
||||
.searchbox {float: none; margin-top: 10px;padding-top: 0; width: auto;}
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="http://www.google.com/adsense/domains/caf.js"></script></head>
|
||||
<body onload="" onunload="" onBeforeUnload="">
|
||||
<noscript><meta http-equiv="refresh" content="0;url=http://xmage.info/rg-erdr.php?_rpo=t nhFexEw&_rdm=ul1sf.WBQv&p=J1c4gcNvvUVf4W1GzoFgXo%3D9%7C%40%7CbGbzbT%2C5f95Et%7C%40%7CYV1sf.WBQv%7C%40%7C4f%7C%40%7C%7C%40%7CzGtzbHFZz%7C%40%7CHtHFb%7C%40%7CI-%7C%40%7C19c4NW4cGHbzHFZbbzFFzGGG%7C%40%7CT+nSHM_0G%7C%40%7CT+7hEEpub&ga=Kzwz1ProVaHzoBO6RzWOy2JVD8G8Acl6UeKl47hedHE%2Fi6w0QVyZvTVamqskgM2lRUAdT6P51hztSe7vAWpHVYR4MSqDhdKQmNsEgXHrpsBrFxiQft2w%2BrFmj2agFhuW9dpLNh9OdkyZTtTQQJKAFQ%2Byc%2BGlg6tOpdQIFYTX2eM4pVhxMs34R5pDmu8h0C%2FEjTWix%2BUdJXS6k8RLN0jREQ%3D%3D&t=gnojs" /><center><p style="padding:1em; font-size:1.5em;">For search results please <a href="http://xmage.info/rg-erdr.php?_rpo=t nhFexEw&_rdm=ul1sf.WBQv&p=J1c4gcNvvUVf4W1GzoFgXo%3D9%7C%40%7CbGbzbT%2C5f95Et%7C%40%7CYV1sf.WBQv%7C%40%7C4f%7C%40%7C%7C%40%7CzGtzbHFZz%7C%40%7CHtHFb%7C%40%7CI-%7C%40%7C19c4NW4cGHbzHFZbbzFFzGGG%7C%40%7CT+nSHM_0G%7C%40%7CT+7hEEpub&ga=Kzwz1ProVaHzoBO6RzWOy2JVD8G8Acl6UeKl47hedHE%2Fi6w0QVyZvTVamqskgM2lRUAdT6P51hztSe7vAWpHVYR4MSqDhdKQmNsEgXHrpsBrFxiQft2w%2BrFmj2agFhuW9dpLNh9OdkyZTtTQQJKAFQ%2Byc%2BGlg6tOpdQIFYTX2eM4pVhxMs34R5pDmu8h0C%2FEjTWix%2BUdJXS6k8RLN0jREQ%3D%3D&t=gnojs" style="text-decoration:underline; color:#0000EE;">CLICK HERE</a>.</p></center></noscript> <script type="text/javascript" language="javascript">
|
||||
function __gpup(url, height, width, name) { sw=window.open(url,name,'height='+height+',width='+width+',location=no,toolbar=0,resizable=1,scrollbars=1');if (window.focus) {sw.focus()}; return false;};
|
||||
</script>
|
||||
<script text="text/javascript" >
|
||||
|
||||
var design = {
|
||||
'pageOptions':{
|
||||
'pubId' : '',
|
||||
'resultsPageBaseUrl' : '',
|
||||
'fontFamily' : 'arial',
|
||||
'hl' : 'en',
|
||||
'maxTermLength' : 29,
|
||||
'adtest' : 'on',
|
||||
'clicktrackUrl' : '',
|
||||
'fontFamilyAttribution' : 'arial',
|
||||
'type' : 'pageoptions',
|
||||
'uiOptimize':false,
|
||||
|
||||
'pageLoadedCallback' : function(requestAccepted, status) {
|
||||
document.body.style.visibility = 'visible';
|
||||
if (!requestAccepted) {
|
||||
}
|
||||
}
|
||||
},
|
||||
'searchboxBlock':{
|
||||
'container' : 'searchbox',
|
||||
'type' : 'searchbox',
|
||||
'fontSizeSearchInput' : 16,
|
||||
'fontSizeSearchButton' : 13,
|
||||
'widthSearchInput' : 215,
|
||||
'colorSearchButton' : '#e2e2e2',
|
||||
'hideSearchInputBorder' : false,
|
||||
'hideSearchButtonBorder' : false
|
||||
},
|
||||
|
||||
'mainrs':{
|
||||
'container' : 'main_rs',
|
||||
'type' : 'relatedsearch',
|
||||
'colorBackground' : 'transparent',
|
||||
'number' :6,
|
||||
'fontSizeTitle' :16,
|
||||
'titleBold': false,
|
||||
'colorTitleLink' : '#079ce9',
|
||||
'noTitleUnderline' : true,
|
||||
'lineHeightTitle' : 32,
|
||||
'fontFamily': 'Arial',
|
||||
'fontSizeAttribution' : 14,
|
||||
'colorAttribution' : '#d0cccc',
|
||||
'adIconUrl': '//afs.googleusercontent.com/dp-rookmedia/arrow-4.png',
|
||||
'adIconWidth': 21,
|
||||
'adIconHeight': 21,
|
||||
'adIconSpacingAbove' : 5,
|
||||
'adIconSpacingBelow' : 0,
|
||||
'adIconSpacingAfter' : 10,
|
||||
'adIconSpacingBefore' : 0,
|
||||
'attributionBold' : false,
|
||||
'attributionUppercase': false,
|
||||
'attributionSpacingBelow' : 10,
|
||||
'rolloverLinkUnderline' : true,
|
||||
'rolloverLinkColor' : '#08aa08',
|
||||
'colorAdSeparator':'#5a5a5a'
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
</script>
|
||||
<div id="main-wrap" class="clearfix">
|
||||
<div class="container clearfix">
|
||||
<div class="header clearfix">
|
||||
<div class="leftblk">
|
||||
<!-- <img src="http://c.rmgserving.com/rmgpsc/7867/logo1.png" /> -->
|
||||
<h3 class="domain_name">xmage.info</h3>
|
||||
</div>
|
||||
<div class="searchbox clearfix" id="searchbox"></div>
|
||||
</div>
|
||||
<div class="content clearfix">
|
||||
<div class="arrows frt_arr"></div>
|
||||
<div class="kwd_bloack clearfix" id="main_rs"></div>
|
||||
<div class="arrows lst_arr"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom_bg clearfix">
|
||||
<div class="bottom_rs clearfix">
|
||||
<!--<span class="separator"></span>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-nav">
|
||||
<a href="#" onclick="return __gpup('http://xmage.info/rmgdsc/rprivacypolicy.php',600,800,'rpp');">Datenschutzrichtlinien</a> </div>
|
||||
</div>
|
||||
<script type="text/javascript" language="javascript">
|
||||
window._debug=false; window._dumpdata=false;
|
||||
var _cflp = true;
|
||||
var pgld = true;
|
||||
var totRS = -1;
|
||||
var cntRS = 0;
|
||||
var _cfstc = false;
|
||||
var _cfblocker = true;
|
||||
var _cfrg =true;
|
||||
var _cfHelp = _cfHelp || {};
|
||||
_cfHelp.design = design || {};
|
||||
_cfHelp.servVars= {"webadfl":"webads.php","_clhdl":"\/\/rmgctracking.com\/rg-cltrack.php?&gr=%5B%7Crdr_url%7C%5D&gm=7OK53PWBuhDsYzTBeNbmVP%2FBhGWg1B%2FrhByaHRwMgZtwIvuwg6Ad4ttzuplGOMGPMi6JI%2F6lV%2BonklsmUb5gCCkZNrerVYBza0yTad8TPSJzrE5VLV6uSMnDXEwBaeQXhKmJ9gqFVwpdkdQYNnq0hfApRyXliTJYelD091sJ5F5Ih8fFkSwv9s1Nu3fs8vMv&gc=11222032499142326696817&gi=7%2FysdSu%2FknHhm%2B8migPCVqVmboYo6b9fOTwRSloP9e8cnft2gRe0YD9kyJwejtm4rB30s3%2BOnetGq9at4jfc%2BBtTCbOtadtGqWY2nzsDbBJfPhxREVaYfYKGuBecSF6eMbXTrlV4MQWdiyM%2F1pYeNQBwCKAceizGYWR2GYbHW8YGKB8WM4H4suf6goTxqTKdButX7pHTXnnL824QCwhrjz8xaYu99h2%2BhlhfCC1wx60hBtsDpzOIMo8LhvBX9JOuwQnSXyfz%2BZDsPLUUCW%2B371LqBYNBhd4c205Zgea3zXH57tAuIkBvQe9EHjDiyws1uIymiAgJ5tTm1zYDsiETAA%3D%3D","kchst":"http:\/\/xmage.info\/","kcpg":"render","kcprm":"ga=Kzwz1ProVaHzoBO6RzWOy2JVD8G8Acl6UeKl47hedHE%2Fi6w0QVyZvTVamqskgM2lRUAdT6P51hztSe7vAWpHVYR4MSqDhdKQmNsEgXHrpsBrFxiQft2w%2BrFmj2agFhuW9dpLNh9OdkyZTtTQQJKAFQ%2Byc%2BGlg6tOpdQIFYTX2eM4pVhxMs34R5pDmu8h0C%2FEjTWix%2BUdJXS6k8RLN0jREQ%3D%3D&gqsg=OUvKbVvNv%2BShAFIvHbU%2F9VEQgN8Ns5sspgkkx480BWhi6VZJw5XOWLgBBMze386J&klb=2&maxads=0&gerf=HXlvJk4z8ng4CSOVFYGBWVAdWcK7FSDo414LSzDKXHM%3D&","jtchdl":"0","lkwtkn":null,"qry":null,"cntry":"DE","prvid":59530,"lgky":"ZEtNUUdtbkRUL3BuZ0R1QzNqc3dyd3JkbDE0NzVPdHpiNEs4TUdNMmFCaitDTDQ5RHZQOG9kYjQyWW9JamJnMXl4bFlBUElsb0JWcXduNmJ6VExZOWtOK0tXTCtRLzh6K1JaMkp3elBFeksxcnk4bGhuRUtTaGZ6dzRsQ09HWTBEbnJIbVFqMlRjK1o4K3VGTGFHa29nPT0%3D","_aftrprss":"","wclhdl":"http:\/\/rmgctracking.com\/webclk?&gr=%5B%7Crdr_url%7C%5D&gm=s8uKBK0Qk4bBYJNIJ4klkQBum7W%2Fx%2BVvbtJlgt5TOLJN7%2Fb02l4ZPEQ2wY8tMAtev4sRZX0aRQ%2BU53YXayWL5Scf51FLQNsS1leFCqbzoXsQnQPyK6HyObYeG0CJqL%2BNtiNPQ5%2BckkCvGQgxcwAYXSL7458Bz%2BgkWKsi9AfSTg%2BhBLOw41tBPAjUPSeYzGBk&gc=11222032499142326696732&gi=GtPhExkuRo4pmH2UEbo0fbamosmAu8oF4qMKn9UewW2TDTX9aVtwWghxoAHJ8De130luJNWUJz6BX67JzZgjrqnA9KoLiLeBTeSbEJCre1vfec2868infa8oqw8Eh9WxogVXwcwHmwQa2bOQq4xAZ%2FZTzBRF4mwwjmoVkIn%2F9inACDCrDnMUyxlVWOIhJYOVvIRQhJ9WHFifDo7xalGRhjWY5orUIRGSHl5czL2%2Bgdzp0KHQw6vOljf%2FyLCw8CTUsJ%2BDpG%2FL%2FyW%2Fj2tZqMQAm1C8VAOgpyS7ABDzMiKWgpFKhBMHQShqAALUKiDBbej6TFKG4O3KylKX%2Fmk7SqEe3A%3D%3D","is_webad_enabled":0,"loaderimage":"http:\/\/b.rmgserving.com\/rmgisc\/loader.gif","_afdad":1,"noredir":0,"erpub":"ca-dp-rookmedia31_3ph_adult_js","erch":"030617","erpubcln":"ca-dp-rookmedia31_3ph_js","erchcln":"50392","ghu":"http:\/\/xmage.info\/rg-erdr.php?_rpo=t nhFexEw&_rdm=ul1sf.WBQv&p=J1c4gcNvvUVf4W1GzoFgXo%3D9%7C%40%7CbGbzbT%2C5f95Et%7C%40%7CYV1sf.WBQv%7C%40%7C4f%7C%40%7C%7C%40%7CzGtzbHFZz%7C%40%7CHtHFb%7C%40%7CI-%7C%40%7C19c4NW4cGHbzHFZbbzFFzGGG%7C%40%7CT+nSHM_0G%7C%40%7CT+7hEEpub&ga=Kzwz1ProVaHzoBO6RzWOy2JVD8G8Acl6UeKl47hedHE%2Fi6w0QVyZvTVamqskgM2lRUAdT6P51hztSe7vAWpHVYR4MSqDhdKQmNsEgXHrpsBrFxiQft2w%2BrFmj2agFhuW9dpLNh9OdkyZTtTQQJKAFQ%2Byc%2BGlg6tOpdQIFYTX2eM4pVhxMs34R5pDmu8h0C%2FEjTWix%2BUdJXS6k8RLN0jREQ%3D%3D"};
|
||||
_cfHelp.newOpts = {
|
||||
"pageoptions": {"kw":"gaming forums","pubId":"dp-rookmedia21_3ph_js","channel":"020107,test49","hl":"de","adtest":"off","resultsPageBaseUrl":"http:\/\/xmage.info\/?ga=Kzwz1ProVaHzoBO6RzWOy2JVD8G8Acl6UeKl47hedHE%2Fi6w0QVyZvTVamqskgM2lRUAdT6P51hztSe7vAWpHVYR4MSqDhdKQmNsEgXHrpsBrFxiQft2w%2BrFmj2agFhuW9dpLNh9OdkyZTtTQQJKAFQ%2Byc%2BGlg6tOpdQIFYTX2eM4pVhxMs34R5pDmu8h0C%2FEjTWix%2BUdJXS6k8RLN0jREQ%3D%3D&gqsg=OUvKbVvNv%2BShAFIvHbU%2F9VEQgN8Ns5sspgkkx480BWhi6VZJw5XOWLgBBMze386J&klb=2&maxads=0&gerf=3uEDqWOQnW9EI%2B%2BbuIpcEvgZntnUgEy27JhOnFO2%2FNU%3D&","clicktrackUrl":"\/\/rmgctracking.com\/rg-cltrack.php?&gr=http%3A%2F%2Fgoogle.com%2F%3FRMGcaf%261455704314&gm=yyUBua7m5MvTyp2MPHTyvSh9pvF3dHW96kARun95RCod082bJACu9zQCfQZf9tp9IsOlFRPp%2BrwNNG9vjzqCj5vaGMGG0VFSlRCRlGLzQyq%2FX9%2BZ75BV%2FbguVs%2BWDVTqKC1M3bEIFoAY3eBBRhIg05wQtcBy%2BjuJ%2F7pmfr5m3yegrNKRnqF%2BCdHy4PQe8o85&gc=11222032499142326696370&gi=NPEFg5M4XZF%2BrqqZ4tbNRNdbm1uNZS8a62OhepDCyXxg9AnKmdOzJxHBXJw3nE8QQHeYs3u0BwitsDcFIRSpIihmRPlJBdWl9xJy%2F%2F6i7ytO3RwI6mT2Z4%2BUHWtLCBmPBcEI2mfjE5JJMOMjvK8juemZA7y28%2FZt3X27nDc%2BcQjmw3LnnX0oEedLiX4dEv5zCMLxPlgFFXf4P9Qf0aznLVE4bO4KAG8BhgjHDjWy2IeJJiXu7nxiRusbbL23kBQfcVT8WX2fO%2BW8CucjBL59d96424%2F5RGSrVbXeNTJDS3e94c%2F%2F7Buy%2BK%2FOoP9GjPU%2FGqjk4NveZQbfewAapPKWRBe6eXReekJBQV60M1mQgzRnC4WaX7VjYF1sn6M2gykt","domainRegistrant":"as-drid-2501536001331222","domainName":"xmage.info"} ,
|
||||
"relatedsearch" :{ "adLoadedCallback": function (cnm, ld) {if(pgld && !ld && _cfrg && !_cfstc && _cflp){cntRS++;if(cntRS >= totRS && totRS!= -1 ){window.location="http://XMage.info/?_stc_=1"}}}},
|
||||
"textads" : {"adLoadedCallback": function (cnm, ld) {} },
|
||||
"imagead" : {"adLoadedCallback": function (cnm, ld) {}},
|
||||
"ads" : { "adLoadedCallback": function (cnm, ld) {}}
|
||||
};
|
||||
|
||||
_cfHelp.newOpts.pageoptions["pageLoadedCallback"] = function(requestAccepted, status) { this.onPageLoad(requestAccepted, status); _cfblocker=false};try{if(abp){_cfHelp.newOpts.pageoptions['channel'] = _cfHelp.newOpts.pageoptions['channel']+',test101'}}catch(e){}
|
||||
</script>
|
||||
<script type="text/javascript" src="http://c.rmgserving.com/rmgdsc/newcafv2.js"></script> </body>
|
||||
</html>
|
||||
XMage.de 1 (Europe/Germany) fast :xmage.de:17171
|
||||
woogerworks (North America/USA) :xmage.woogerworks.info:17171
|
||||
XMage Testserver (Europe/France) 1.4.8v0 :176.31.186.181:17171
|
||||
XMage BR (South America/Brazil) :ec2-54-233-67-0.sa-east-1.compute.amazonaws.com:17171
|
||||
Seedds Server (Asia) :115.29.203.80:17171
|
||||
localhost -> connect to your local server (must be started):localhost:17171
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -543,13 +543,11 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
main_cardLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||
.add(main_cardLayout.createSequentialGroup()
|
||||
.add(6, 6, 6)
|
||||
.add(main_cardLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||
.add(tooltipDelayLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.add(org.jdesktop.layout.GroupLayout.TRAILING, tooltipDelay, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.add(main_cardLayout.createSequentialGroup()
|
||||
.add(showCardName)
|
||||
.add(0, 0, Short.MAX_VALUE)))
|
||||
.addContainerGap())
|
||||
.add(main_cardLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
|
||||
.add(tooltipDelayLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
|
||||
.add(org.jdesktop.layout.GroupLayout.LEADING, showCardName)
|
||||
.add(tooltipDelay, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
.addContainerGap(183, Short.MAX_VALUE))
|
||||
);
|
||||
main_cardLayout.setVerticalGroup(
|
||||
main_cardLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||
|
@ -737,12 +735,20 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
|
||||
tabGuiSize.setMaximumSize(new java.awt.Dimension(527, 423));
|
||||
tabGuiSize.setMinimumSize(new java.awt.Dimension(527, 423));
|
||||
tabGuiSize.setLayout(new java.awt.GridBagLayout());
|
||||
java.awt.GridBagLayout tabGuiSizeLayout = new java.awt.GridBagLayout();
|
||||
tabGuiSizeLayout.columnWidths = new int[] {0};
|
||||
tabGuiSizeLayout.rowHeights = new int[] {0, 20, 0};
|
||||
tabGuiSizeLayout.columnWeights = new double[] {1.0};
|
||||
tabGuiSizeLayout.rowWeights = new double[] {1.0, 0.0, 1.0};
|
||||
tabGuiSize.setLayout(tabGuiSizeLayout);
|
||||
|
||||
guiSizeBasic.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Size basic elements"));
|
||||
guiSizeBasic.setMinimumSize(new java.awt.Dimension(600, 180));
|
||||
guiSizeBasic.setPreferredSize(new java.awt.Dimension(600, 180));
|
||||
guiSizeBasic.setLayout(new java.awt.GridBagLayout());
|
||||
java.awt.GridBagLayout guiSizeBasicLayout = new java.awt.GridBagLayout();
|
||||
guiSizeBasicLayout.columnWeights = new double[] {1.0, 1.0, 1.0};
|
||||
guiSizeBasicLayout.rowWeights = new double[] {1.0, 0.2, 1.0, 0.2};
|
||||
guiSizeBasic.setLayout(guiSizeBasicLayout);
|
||||
|
||||
sliderFontSize.setMajorTickSpacing(5);
|
||||
sliderFontSize.setMaximum(50);
|
||||
|
@ -755,15 +761,19 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
sliderFontSize.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
||||
sliderFontSize.setMinimumSize(new java.awt.Dimension(150, 40));
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 0;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeBasic.add(sliderFontSize, gridBagConstraints);
|
||||
|
||||
fontSizeLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
fontSizeLabel.setText("Size of table font");
|
||||
fontSizeLabel.setText("Tables");
|
||||
fontSizeLabel.setToolTipText("<HTML>The size of the font used to display table text.");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 1;
|
||||
gridBagConstraints.ipadx = 3;
|
||||
gridBagConstraints.ipady = 3;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
|
@ -782,12 +792,13 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 2;
|
||||
gridBagConstraints.gridy = 0;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeBasic.add(sliderChatFontSize, gridBagConstraints);
|
||||
|
||||
chatFontSizeLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
chatFontSizeLabel.setText("Size of chat font");
|
||||
chatFontSizeLabel.setText("Chat");
|
||||
chatFontSizeLabel.setToolTipText("<HTML>The size of the font used to display the chat text");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 2;
|
||||
|
@ -810,12 +821,13 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 1;
|
||||
gridBagConstraints.gridy = 0;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeBasic.add(sliderDialogFont, gridBagConstraints);
|
||||
|
||||
labelDialogFont.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
labelDialogFont.setText("Font size of messages and menues");
|
||||
labelDialogFont.setText("Messages and menues");
|
||||
labelDialogFont.setToolTipText("<HTML>The size of the font of messages and menues");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 1;
|
||||
|
@ -838,15 +850,18 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
sliderEditorCardSize.setMinimumSize(new java.awt.Dimension(150, 40));
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 2;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeBasic.add(sliderEditorCardSize, gridBagConstraints);
|
||||
|
||||
labelEditorCardSize.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
labelEditorCardSize.setText("Size of editor and drafted cards");
|
||||
labelEditorCardSize.setText("Cards in editor and draft panel");
|
||||
labelEditorCardSize.setToolTipText("<HTML>The size of the card in editor and the picked zone of the draft panel\n");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 3;
|
||||
gridBagConstraints.ipadx = 3;
|
||||
gridBagConstraints.ipady = 3;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
|
@ -865,12 +880,13 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 1;
|
||||
gridBagConstraints.gridy = 2;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeBasic.add(sliderEditorCardOffset, gridBagConstraints);
|
||||
|
||||
labelEditorCardOffset.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
labelEditorCardOffset.setText("Size of card offset");
|
||||
labelEditorCardOffset.setText("Card offset editor and draft");
|
||||
labelEditorCardOffset.setToolTipText("<HTML>The vertical offset of card images in editor areas\n");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 1;
|
||||
|
@ -883,14 +899,17 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 0;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
|
||||
gridBagConstraints.insets = new java.awt.Insets(11, 10, 0, 10);
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
tabGuiSize.add(guiSizeBasic, gridBagConstraints);
|
||||
|
||||
guiSizeGame.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Size game elements"));
|
||||
guiSizeGame.setMinimumSize(new java.awt.Dimension(600, 180));
|
||||
guiSizeGame.setPreferredSize(new java.awt.Dimension(600, 180));
|
||||
guiSizeGame.setLayout(new java.awt.GridBagLayout());
|
||||
java.awt.GridBagLayout guiSizeGameLayout = new java.awt.GridBagLayout();
|
||||
guiSizeGameLayout.columnWeights = new double[] {1.0, 1.0, 1.0};
|
||||
guiSizeGameLayout.rowWeights = new double[] {1.0, 0.2, 1.0, 0.2};
|
||||
guiSizeGame.setLayout(guiSizeGameLayout);
|
||||
|
||||
sliderCardSizeHand.setMajorTickSpacing(5);
|
||||
sliderCardSizeHand.setMaximum(50);
|
||||
|
@ -906,12 +925,13 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 0;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(6, 4, 6, 4);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeGame.add(sliderCardSizeHand, gridBagConstraints);
|
||||
|
||||
labelCardSizeHand.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
labelCardSizeHand.setText("Size of hand cards");
|
||||
labelCardSizeHand.setText("Cards hand");
|
||||
labelCardSizeHand.setToolTipText("<HTML>The size of the card in hand");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
|
@ -934,12 +954,13 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 1;
|
||||
gridBagConstraints.gridy = 0;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(5, 3, 5, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeGame.add(sliderCardSizeOtherZones, gridBagConstraints);
|
||||
|
||||
labelCardSizeOtherZones.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
labelCardSizeOtherZones.setText("Size of other zone cards");
|
||||
labelCardSizeOtherZones.setText("Cards other zones");
|
||||
labelCardSizeOtherZones.setToolTipText("<HTML>The size of card in other game zone (e.g. graveyard, revealed cards etc.)");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 1;
|
||||
|
@ -962,12 +983,13 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 2;
|
||||
gridBagConstraints.gridy = 0;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(5, 3, 5, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeGame.add(sliderCardSizeBattlefield, gridBagConstraints);
|
||||
|
||||
labelCardSizeBattlefield.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
labelCardSizeBattlefield.setText("Size of permanents");
|
||||
labelCardSizeBattlefield.setText("Permanents");
|
||||
labelCardSizeBattlefield.setToolTipText("<HTML>The maximum size of permanents on the battlefield");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 2;
|
||||
|
@ -989,9 +1011,10 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
sliderSymbolSize.setMinimumSize(new java.awt.Dimension(150, 40));
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 3;
|
||||
gridBagConstraints.gridy = 2;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(5, 3, 5, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeGame.add(sliderSymbolSize, gridBagConstraints);
|
||||
|
||||
labelSymbolSize.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
|
@ -999,6 +1022,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
labelSymbolSize.setToolTipText("<HTML>The size of symbols");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 3;
|
||||
gridBagConstraints.ipadx = 3;
|
||||
gridBagConstraints.ipady = 3;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
|
@ -1016,17 +1040,18 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
sliderGameFeedbackArea.setMinimumSize(new java.awt.Dimension(150, 40));
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 1;
|
||||
gridBagConstraints.gridy = 3;
|
||||
gridBagConstraints.gridy = 2;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(5, 3, 5, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeGame.add(sliderGameFeedbackArea, gridBagConstraints);
|
||||
|
||||
labelGameFeedback.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
labelGameFeedback.setText("Size game feedback area");
|
||||
labelGameFeedback.setText("Dialog area");
|
||||
labelGameFeedback.setToolTipText("<HTML>The size of the game feedback area (buttons and messages above the hand area)");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 1;
|
||||
gridBagConstraints.gridy = 4;
|
||||
gridBagConstraints.gridy = 3;
|
||||
gridBagConstraints.ipadx = 3;
|
||||
gridBagConstraints.ipady = 3;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
|
@ -1046,17 +1071,18 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
sliderTooltipSize.setMinimumSize(new java.awt.Dimension(150, 40));
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 2;
|
||||
gridBagConstraints.gridy = 3;
|
||||
gridBagConstraints.gridy = 2;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
gridBagConstraints.insets = new java.awt.Insets(5, 3, 5, 3);
|
||||
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
|
||||
guiSizeGame.add(sliderTooltipSize, gridBagConstraints);
|
||||
|
||||
labelTooltipSize.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
labelTooltipSize.setText("Tooltip size");
|
||||
labelTooltipSize.setText("Tooltip window");
|
||||
labelTooltipSize.setToolTipText("<HTML>The size of the tooltip window for cards or permanents");
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 2;
|
||||
gridBagConstraints.gridy = 4;
|
||||
gridBagConstraints.gridy = 3;
|
||||
gridBagConstraints.ipadx = 3;
|
||||
gridBagConstraints.ipady = 3;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
|
@ -1064,9 +1090,9 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
|
||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
||||
gridBagConstraints.gridx = 0;
|
||||
gridBagConstraints.gridy = 1;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
|
||||
gridBagConstraints.insets = new java.awt.Insets(6, 10, 86, 10);
|
||||
gridBagConstraints.gridy = 2;
|
||||
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
|
||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
|
||||
tabGuiSize.add(guiSizeGame, gridBagConstraints);
|
||||
|
||||
tabsPanel.addTab("GUI Size", tabGuiSize);
|
||||
|
@ -1279,7 +1305,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
.add(jLabelEndOfTurn)
|
||||
.add(checkBoxEndTurnOthers))
|
||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
||||
.add(phases_stopSettings, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)
|
||||
.add(phases_stopSettings, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)
|
||||
.addContainerGap())
|
||||
);
|
||||
|
||||
|
@ -2058,15 +2084,15 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
tabAvatars.setLayout(tabAvatarsLayout);
|
||||
tabAvatarsLayout.setHorizontalGroup(
|
||||
tabAvatarsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||
.add(org.jdesktop.layout.GroupLayout.TRAILING, tabAvatarsLayout.createSequentialGroup()
|
||||
.add(avatarPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 527, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||
.add(0, 0, Short.MAX_VALUE))
|
||||
.add(tabAvatarsLayout.createSequentialGroup()
|
||||
.add(avatarPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 528, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||
.add(0, 1, Short.MAX_VALUE))
|
||||
);
|
||||
tabAvatarsLayout.setVerticalGroup(
|
||||
tabAvatarsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||
.add(org.jdesktop.layout.GroupLayout.TRAILING, tabAvatarsLayout.createSequentialGroup()
|
||||
.add(avatarPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 423, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||
.add(0, 0, Short.MAX_VALUE))
|
||||
.add(tabAvatarsLayout.createSequentialGroup()
|
||||
.add(avatarPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 484, Short.MAX_VALUE)
|
||||
.addContainerGap())
|
||||
);
|
||||
|
||||
tabsPanel.addTab("Avatars", tabAvatars);
|
||||
|
@ -2255,6 +2281,9 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
tabsPanel.addTab("Connection", tabConnection);
|
||||
|
||||
saveButton.setLabel("Save");
|
||||
saveButton.setMaximumSize(new java.awt.Dimension(100, 30));
|
||||
saveButton.setMinimumSize(new java.awt.Dimension(100, 30));
|
||||
saveButton.setPreferredSize(new java.awt.Dimension(100, 30));
|
||||
saveButton.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
|
||||
saveButton.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
|
@ -2263,6 +2292,9 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
});
|
||||
|
||||
exitButton.setLabel("Exit");
|
||||
exitButton.setMaximumSize(new java.awt.Dimension(100, 30));
|
||||
exitButton.setMinimumSize(new java.awt.Dimension(100, 30));
|
||||
exitButton.setPreferredSize(new java.awt.Dimension(100, 30));
|
||||
exitButton.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
|
||||
exitButton.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
|
@ -2288,8 +2320,8 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
.add(tabsPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
|
||||
.add(saveButton)
|
||||
.add(exitButton))
|
||||
.add(saveButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||
.add(exitButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
||||
.addContainerGap())
|
||||
);
|
||||
|
||||
|
|
|
@ -72,6 +72,7 @@ public class DraftPane extends MagePane {
|
|||
@Override
|
||||
public void changeGUISize() {
|
||||
super.changeGUISize(); //To change body of generated methods, choose Tools | Templates.
|
||||
draftPanel1.changeGUISize();
|
||||
}
|
||||
|
||||
public void showDraft(UUID draftId) {
|
||||
|
|
|
@ -69,6 +69,7 @@ import mage.client.dialog.PreferencesDialog;
|
|||
import mage.client.plugins.impl.Plugins;
|
||||
import mage.client.util.CardsViewUtil;
|
||||
import mage.client.util.Event;
|
||||
import mage.client.util.GUISizeHelper;
|
||||
import mage.client.util.ImageHelper;
|
||||
import mage.client.util.Listener;
|
||||
import mage.client.util.audio.AudioManager;
|
||||
|
@ -177,7 +178,7 @@ public class DraftPanel extends javax.swing.JPanel {
|
|||
}
|
||||
|
||||
private void setGUISize() {
|
||||
|
||||
GUISizeHelper.changePopupMenuFont(popupMenuPickedArea);
|
||||
}
|
||||
|
||||
public synchronized void showDraft(UUID draftId) {
|
||||
|
|
|
@ -113,16 +113,8 @@ public class HelperPanel extends JPanel {
|
|||
}
|
||||
|
||||
private void setGUISize() {
|
||||
for (Component comp : popupMenuAskNo.getComponents()) {
|
||||
if (comp instanceof JMenuItem) {
|
||||
comp.setFont(GUISizeHelper.menuFont);
|
||||
}
|
||||
}
|
||||
for (Component comp : popupMenuAskYes.getComponents()) {
|
||||
if (comp instanceof JMenuItem) {
|
||||
comp.setFont(GUISizeHelper.menuFont);
|
||||
}
|
||||
}
|
||||
GUISizeHelper.changePopupMenuFont(popupMenuAskNo);
|
||||
GUISizeHelper.changePopupMenuFont(popupMenuAskYes);
|
||||
}
|
||||
|
||||
private void initComponents() {
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
package mage.client.game;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
@ -148,17 +147,7 @@ public class PlayAreaPanel extends javax.swing.JPanel {
|
|||
}
|
||||
|
||||
private void setGUISize() {
|
||||
for (Component comp : popupMenu.getComponents()) {
|
||||
if (comp instanceof JMenuItem) {
|
||||
comp.setFont(GUISizeHelper.menuFont);
|
||||
if (comp instanceof JMenu) {
|
||||
comp.setFont(GUISizeHelper.menuFont);
|
||||
for (Component subComp : ((JMenu) comp).getMenuComponents()) {
|
||||
subComp.setFont(GUISizeHelper.menuFont);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
GUISizeHelper.changePopupMenuFont(popupMenu);
|
||||
}
|
||||
|
||||
private void addPopupMenuPlayer(boolean allowRequestToShowHandCards) {
|
||||
|
|
|
@ -5,8 +5,12 @@
|
|||
*/
|
||||
package mage.client.util;
|
||||
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Font;
|
||||
import javax.swing.JMenu;
|
||||
import javax.swing.JMenuItem;
|
||||
import javax.swing.JPopupMenu;
|
||||
import mage.client.MageFrame;
|
||||
import mage.client.dialog.PreferencesDialog;
|
||||
|
||||
|
@ -40,6 +44,7 @@ public class GUISizeHelper {
|
|||
public static int flagHeight;
|
||||
|
||||
public static int cardTooltipFontSize = 15;
|
||||
|
||||
public static Font chatFont = new java.awt.Font("Arial", 0, 12);
|
||||
public static Font tableFont = new java.awt.Font("Arial", 0, 12);
|
||||
public static Font balloonTooltipFont = new java.awt.Font("Arial", 0, 12);
|
||||
|
@ -110,15 +115,15 @@ public class GUISizeHelper {
|
|||
basicSymbolSize = "large";
|
||||
}
|
||||
if (symbolSize < 16) {
|
||||
symbolTooltipSize = 15;
|
||||
symbolPaySize = 15;
|
||||
symbolCardSize = 15;
|
||||
} else {
|
||||
symbolTooltipSize = symbolSize;
|
||||
symbolPaySize = symbolSize;
|
||||
symbolCardSize = symbolSize;
|
||||
}
|
||||
|
||||
cardTooltipFontSize = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_TOOLTIP_SIZE, 14);
|
||||
symbolTooltipSize = cardTooltipFontSize;
|
||||
|
||||
int handCardSize = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_CARD_HAND_SIZE, 14);
|
||||
handCardDimension = new Dimension(CARD_IMAGE_WIDTH * handCardSize / 42, CARD_IMAGE_HEIGHT * handCardSize / 42);
|
||||
|
@ -133,4 +138,18 @@ public class GUISizeHelper {
|
|||
editorCardDimension = new Dimension(CARD_IMAGE_WIDTH * editorCardSize / 42, CARD_IMAGE_HEIGHT * editorCardSize / 42);
|
||||
editorCardOffsetSize = 2 * PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GUI_CARD_OFFSET_SIZE, 14) - 10;
|
||||
}
|
||||
|
||||
public static void changePopupMenuFont(JPopupMenu popupMenu) {
|
||||
for (Component comp : popupMenu.getComponents()) {
|
||||
if (comp instanceof JMenuItem) {
|
||||
comp.setFont(GUISizeHelper.menuFont);
|
||||
if (comp instanceof JMenu) {
|
||||
comp.setFont(GUISizeHelper.menuFont);
|
||||
for (Component subComp : ((JMenu) comp).getMenuComponents()) {
|
||||
subComp.setFont(GUISizeHelper.menuFont);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -224,27 +224,28 @@ public class GuiDisplayUtil {
|
|||
buffer.append(" [").append(card.getId().toString().substring(0, 3)).append("]");
|
||||
}
|
||||
buffer.append("</b></td><td align='right' valign='top' style='width:");
|
||||
buffer.append(symbolCount * GUISizeHelper.symbolTooltipSize + 1);
|
||||
buffer.append(symbolCount * GUISizeHelper.cardTooltipFontSize);
|
||||
buffer.append("px'>");
|
||||
if (!card.isSplitCard()) {
|
||||
buffer.append(castingCost);
|
||||
}
|
||||
buffer.append("</td></tr></table>");
|
||||
buffer.append("<table cellspacing=0 cellpadding=0 border=0 width='100%'><tr><td style='margin-left: 1px'>");
|
||||
String imageSize = " width=" + GUISizeHelper.cardTooltipFontSize + " height=" + GUISizeHelper.cardTooltipFontSize + ">";
|
||||
if (card.getColor().isWhite()) {
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_white.png")).append("' alt='W'>");
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_white.png")).append("' alt='W' ").append(imageSize);
|
||||
}
|
||||
if (card.getColor().isBlue()) {
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_blue.png")).append("' alt='U'>");
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_blue.png")).append("' alt='U'>").append(imageSize);
|
||||
}
|
||||
if (card.getColor().isBlack()) {
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_black.png")).append("' alt='B'>");
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_black.png")).append("' alt='B'>").append(imageSize);
|
||||
}
|
||||
if (card.getColor().isRed()) {
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_red.png")).append("' alt='R'>");
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_red.png")).append("' alt='R'>").append(imageSize);
|
||||
}
|
||||
if (card.getColor().isGreen()) {
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_green.png")).append("' alt='G'>");
|
||||
buffer.append("<img src='").append(getResourcePath("card/color_ind_green.png")).append("' alt='G'>").append(imageSize);
|
||||
}
|
||||
if (!card.getColor().isColorless()) {
|
||||
buffer.append(" ");
|
||||
|
@ -273,7 +274,7 @@ public class GuiDisplayUtil {
|
|||
rarity = card.getRarity().getCode();
|
||||
}
|
||||
if (card.getExpansionSetCode() != null) {
|
||||
buffer.append(ManaSymbols.replaceSetCodeWithHTML(card.getExpansionSetCode().toUpperCase(), rarity));
|
||||
buffer.append(ManaSymbols.replaceSetCodeWithHTML(card.getExpansionSetCode().toUpperCase(), rarity, GUISizeHelper.symbolTooltipSize));
|
||||
}
|
||||
buffer.append("</td></tr></table>");
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@ public class ManaSymbols {
|
|||
private static boolean smallSymbolsFound = false;
|
||||
private static boolean mediumSymbolsFound = false;
|
||||
|
||||
private static final Map<String, Image> SET_IMAGES = new HashMap<>();
|
||||
private static final Map<String, Dimension> SET_IMAGES_EXIST = new HashMap<>();
|
||||
private static final Map<String, Image> setImages = new HashMap<>();
|
||||
private static final Map<String, Dimension> setImagesExist = new HashMap<>();
|
||||
private static final Pattern REPLACE_SYMBOLS_PATTERN = Pattern.compile("\\{([^}/]*)/?([^}]*)\\}");
|
||||
private static String cachedPath;
|
||||
private static final String[] symbols = new String[]{"0", "1", "10", "11", "12", "15", "16", "2", "3", "4", "5", "6", "7", "8", "9", "B", "BG",
|
||||
|
@ -55,10 +55,10 @@ public class ManaSymbols {
|
|||
if (h > 0) {
|
||||
Rectangle r = new Rectangle(21, (int) (h * 21.0f / width));
|
||||
BufferedImage resized = ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image, BufferedImage.TYPE_INT_ARGB), r);
|
||||
SET_IMAGES.put(set, resized);
|
||||
setImages.put(set, resized);
|
||||
}
|
||||
} else {
|
||||
SET_IMAGES.put(set, image);
|
||||
setImages.put(set, image);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public class ManaSymbols {
|
|||
Image image = UI.getImageIcon(file.getAbsolutePath()).getImage();
|
||||
int width = image.getWidth(null);
|
||||
int height = image.getHeight(null);
|
||||
SET_IMAGES_EXIST.put(set, new Dimension(width, height));
|
||||
setImagesExist.put(set, new Dimension(width, height));
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
@ -256,19 +256,20 @@ public class ManaSymbols {
|
|||
return replaced;
|
||||
}
|
||||
|
||||
public static String replaceSetCodeWithHTML(String set, String rarity) {
|
||||
public static String replaceSetCodeWithHTML(String set, String rarity, int size) {
|
||||
String _set = set;
|
||||
if (SET_IMAGES_EXIST.containsKey(_set)) {
|
||||
Integer width = SET_IMAGES_EXIST.get(_set).width;
|
||||
Integer height = SET_IMAGES_EXIST.get(_set).height;
|
||||
return "<img src='file:" + getSymbolsPath() + "/sets/small/" + _set + "-" + rarity + ".png' alt='" + rarity + " ' width=" + width + " height=" + height + ">";
|
||||
if (setImagesExist.containsKey(_set)) {
|
||||
int factor = size / 15 + 1;
|
||||
Integer width = setImagesExist.get(_set).width * factor;
|
||||
Integer height = setImagesExist.get(_set).height * factor;
|
||||
return "<img src='file:" + getSymbolsPath() + "/sets/small/" + _set + "-" + rarity + ".png' alt='" + rarity + "' height='" + height + "' width='" + width + "' >";
|
||||
} else {
|
||||
return set;
|
||||
}
|
||||
}
|
||||
|
||||
public static Image getSetSymbolImage(String set) {
|
||||
return SET_IMAGES.get(set);
|
||||
return setImages.get(set);
|
||||
}
|
||||
|
||||
public static BufferedImage getSizedManaSymbol(String symbol) {
|
||||
|
|
|
@ -47,8 +47,8 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
|
|||
}
|
||||
|
||||
private void setGUISize() {
|
||||
addWidth = 20 * GUISizeHelper.cardTooltipFontSize;
|
||||
addHeight = 12 * GUISizeHelper.cardTooltipFontSize;
|
||||
addWidth = 20 * GUISizeHelper.cardTooltipFontSize - 50;
|
||||
addHeight = 12 * GUISizeHelper.cardTooltipFontSize - 20;
|
||||
setSize = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue