diff --git a/images/osd-bg-1.jpg b/images/osd-bg-1.jpg new file mode 100644 index 00000000..8e0a6b48 Binary files /dev/null and b/images/osd-bg-1.jpg differ diff --git a/images/osd-bg-1.png b/images/osd-bg-1.png deleted file mode 100644 index ec7b3156..00000000 Binary files a/images/osd-bg-1.png and /dev/null differ diff --git a/images/osd-bg-2.png b/images/osd-bg-2.png index 7ad115c1..ec7b3156 100644 Binary files a/images/osd-bg-2.png and b/images/osd-bg-2.png differ diff --git a/js/libraries/inflection.min.js b/js/libraries/inflection.min.js new file mode 100644 index 00000000..b59c55b3 --- /dev/null +++ b/js/libraries/inflection.min.js @@ -0,0 +1,31 @@ +/*! + * inflection + * Copyright(c) 2011 Ben Lin + * MIT Licensed + * + * @fileoverview + * A port of inflection-js to node.js module. + */ +(function(a,b){if(typeof define==="function"&&define.amd){define([],b); +}else{if(typeof exports==="object"){module.exports=b();}else{a.inflection=b();}}}(this,function(){var d=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"]; +var i={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}}; +var g=[[i.plural.men],[i.plural.people],[i.plural.children],[i.plural.tia],[i.plural.analyses],[i.plural.hives],[i.plural.curves],[i.plural.lrves],[i.plural.foves],[i.plural.aeiouyies],[i.plural.series],[i.plural.movies],[i.plural.xes],[i.plural.mice],[i.plural.buses],[i.plural.oes],[i.plural.shoes],[i.plural.crises],[i.plural.octopi],[i.plural.aliases],[i.plural.summonses],[i.plural.oxen],[i.plural.matrices],[i.plural.feet],[i.plural.teeth],[i.plural.geese],[i.plural.quizzes],[i.plural.whereases],[i.plural.criteria],[i.plural.genera],[i.singular.man,"$1en"],[i.singular.person,"$1ople"],[i.singular.child,"$1ren"],[i.singular.ox,"$1en"],[i.singular.axis,"$1es"],[i.singular.octopus,"$1i"],[i.singular.alias,"$1es"],[i.singular.summons,"$1es"],[i.singular.bus,"$1ses"],[i.singular.buffalo,"$1oes"],[i.singular.tium,"$1a"],[i.singular.sis,"ses"],[i.singular.ffe,"$1$2ves"],[i.singular.hive,"$1ves"],[i.singular.aeiouyy,"$1ies"],[i.singular.matrix,"$1ices"],[i.singular.vertex,"$1ices"],[i.singular.x,"$1es"],[i.singular.mouse,"$1ice"],[i.singular.foot,"feet"],[i.singular.tooth,"teeth"],[i.singular.goose,"geese"],[i.singular.quiz,"$1zes"],[i.singular.whereas,"$1es"],[i.singular.criterion,"$1a"],[i.singular.genus,"genera"],[i.singular.s,"s"],[i.singular.common,"s"]]; +var a=[[i.singular.man],[i.singular.person],[i.singular.child],[i.singular.ox],[i.singular.axis],[i.singular.octopus],[i.singular.alias],[i.singular.summons],[i.singular.bus],[i.singular.buffalo],[i.singular.tium],[i.singular.sis],[i.singular.ffe],[i.singular.hive],[i.singular.aeiouyy],[i.singular.x],[i.singular.matrix],[i.singular.mouse],[i.singular.foot],[i.singular.tooth],[i.singular.goose],[i.singular.quiz],[i.singular.whereas],[i.singular.criterion],[i.singular.genus],[i.plural.men,"$1an"],[i.plural.people,"$1rson"],[i.plural.children,"$1"],[i.plural.genera,"genus"],[i.plural.criteria,"$1on"],[i.plural.tia,"$1um"],[i.plural.analyses,"$1$2sis"],[i.plural.hives,"$1ve"],[i.plural.curves,"$1"],[i.plural.lrves,"$1f"],[i.plural.foves,"$1fe"],[i.plural.movies,"$1ovie"],[i.plural.aeiouyies,"$1y"],[i.plural.series,"$1eries"],[i.plural.xes,"$1"],[i.plural.mice,"$1ouse"],[i.plural.buses,"$1"],[i.plural.oes,"$1"],[i.plural.shoes,"$1"],[i.plural.crises,"$1is"],[i.plural.octopi,"$1us"],[i.plural.aliases,"$1"],[i.plural.summonses,"$1"],[i.plural.oxen,"$1"],[i.plural.matrices,"$1ix"],[i.plural.vertices,"$1ex"],[i.plural.feet,"foot"],[i.plural.teeth,"tooth"],[i.plural.geese,"goose"],[i.plural.quizzes,"$1"],[i.plural.whereases,"$1"],[i.plural.ss,"ss"],[i.plural.s,""]]; +var c=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"];var k=new RegExp("(_ids|_id)$","g"); +var f=new RegExp("_","g");var j=new RegExp("[ _]","g");var e=new RegExp("([A-Z])","g");var h=new RegExp("^_");var b={_apply_rules:function(q,p,o,n){if(n){q=n; +}else{var r=(b.indexOf(o,q.toLowerCase())>-1);if(!r){var m=0;var l=p.length;for(;m1){return b._apply_rules(o,g,d,l);}else{return b._apply_rules(o,a,d,m);}},camelize:function(t,o){var v=t.split("/"); +var r=0;var q=v.length;var u,m,p,n,s;for(;r + diff --git a/tabs/osd.css b/tabs/osd.css index 37285731..6205df45 100644 --- a/tabs/osd.css +++ b/tabs/osd.css @@ -1,276 +1,276 @@ .tab-osd .info { - margin: 10px 0 0 0; - position: relative; + margin: 10px 0 0 0; + position: relative; } .tab-osd .info .progressLabel { - position: absolute; - width: 100%; - height: 26px; - top: 0px; - left: 0; - text-align: center; - line-height: 24px; - color: white; - font-weight: bold; + position: absolute; + width: 100%; + height: 26px; + top: 0px; + left: 0; + text-align: center; + line-height: 24px; + color: white; + font-weight: bold; - /* text-shadow: 1px 0px 2px rgba(0, 0, 0, 0.9);*/ + /* text-shadow: 1px 0px 2px rgba(0, 0, 0, 0.9);*/ } - + .darkgrey { - background-color: #575757; + background-color: #575757; } .tab-osd .spacer_box_title { - float: none; + float: none; } .tab-osd .info { - float: left; - width: 100%; + float: left; + width: 100%; } .info .progressLabel a { - color: white; + color: white; } .info .progressLabel a:hover { - text-decoration: underline; + text-decoration: underline; } .info .progress { - width: 100%; - height: 26px; - border-radius: 5px; - border: 1px solid silver; + width: 100%; + height: 26px; + border-radius: 5px; + border: 1px solid silver; } .info .progress { - -webkit-appearance: none; + -webkit-appearance: none; } .info .progress::-webkit-progress-bar { - background-color: #4f4f4f; - border-radius: 4px; - box-shadow: inset 0px 0px 5px #2f2f2f; + background-color: #4f4f4f; + border-radius: 4px; + box-shadow: inset 0px 0px 5px #2f2f2f; } .info .progress::-webkit-progress-value { - background-color: #F86008; - border-radius: 4px; + background-color: #F86008; + border-radius: 4px; } .info .progress.valid::-webkit-progress-bar { - background-color: #56ac1d; - border-radius: 4px; + background-color: #56ac1d; + border-radius: 4px; } .info .progress.valid::-webkit-progress-value { - background-color: #56ac1d; - border-radius: 4px; + background-color: #56ac1d; + border-radius: 4px; } .info .progress.invalid::-webkit-progress-bar { - background-color: #A62E32; - border-radius: 4px; + background-color: #A62E32; + border-radius: 4px; } .info .progress.invalid::-webkit-progress-value { - background-color: #A62E32; - border-radius: 4px; + background-color: #A62E32; + border-radius: 4px; } .tab-osd ul li { - list-style: initial; - list-style-type: circle; - margin-left: 30px; + list-style: initial; + list-style-type: circle; + margin-left: 30px; } .tab-osd .options { - position: relative; - margin-bottom: 10px; - line-height: 18px; - text-align: left; + position: relative; + margin-bottom: 10px; + line-height: 18px; + text-align: left; } .tab-osd td { - text-align: left; + text-align: left; } .tab-osd .options label input { - float: left; - margin-top: 2px; + float: left; + margin-top: 2px; } .tab-osd .options label span { - font-weight: bold; - margin-left: 6px; + font-weight: bold; + margin-left: 6px; } .tab-osd .options select { - width: 300px; - height: 20px; - border: 1px solid silver; + width: 300px; + height: 20px; + border: 1px solid silver; } .tab-osd .options .releases select { - width: 280px; + width: 280px; } .tab-osd .option.releases { - margin: 0 0 2px 0; - line-height: 20px; + margin: 0 0 2px 0; + line-height: 20px; } .tab-osd .options .description { - position: relative; - left: 0px; - font-style: italic; - color: #818181; + position: relative; + left: 0px; + font-style: italic; + color: #818181; } .tab-osd .cf_table td:last-child { - text-align: left; + text-align: left; } .tab-osd .options .flash_on_connect_wrapper { - display: none; + display: none; } .tab-osd .options .manual_baud_rate select { - width: 75px; - margin-left: 19px; + width: 75px; + margin-left: 19px; } .tab-osd .release_info { - display: none; + display: none; } .tab-osd .release_info .title { - line-height: 20px; - text-align: center; - font-weight: bold; - color: white; - border-bottom: 1px solid silver; - background-color: #3f4241; + line-height: 20px; + text-align: center; + font-weight: bold; + color: white; + border-bottom: 1px solid silver; + background-color: #3f4241; } .tab-osd .release_info .target { - color: blue; + color: blue; } .tab-osd .release_info p { - padding: 5px; + padding: 5px; } .tab-osd .release_info p a { - font-weight: bold; + font-weight: bold; } .tab-osd .release_info p a:hover { - text-decoration: underline; + text-decoration: underline; } .tab-osd .release_info .notes { - padding: 5px; + padding: 5px; } .tab-osd .git_info { - display: none; - margin-bottom: 10px; - border: 1px solid silver; + display: none; + margin-bottom: 10px; + border: 1px solid silver; } .tab-osd .git_info .title { - line-height: 20px; - text-align: center; - font-weight: bold; - color: white; - border-bottom: 1px solid silver; - background-color: #3f4241; + line-height: 20px; + text-align: center; + font-weight: bold; + color: white; + border-bottom: 1px solid silver; + background-color: #3f4241; } .tab-osd .git_info p { - padding: 5px; + padding: 5px; } .tab-osd .git_info p a { - font-weight: bold; + font-weight: bold; } .tab-osd .git_info p a:hover { - text-decoration: underline; + text-decoration: underline; } .tab-osd .buttons { - width: calc(100% - 20px); - margin-top: 10px; - bottom: 10px; + width: calc(100% - 20px); + margin-top: 10px; + bottom: 10px; } .tab-osd .buttons a { - display: block; - float: left; - margin: 0 10px 0 0; - padding: 0 15px 0 15px; - height: 28px; - line-height: 28px; - text-align: center; - font-weight: bold; - border: 1px solid silver; - background-color: #ececec; + display: block; + float: left; + margin: 0 10px 0 0; + padding: 0 15px 0 15px; + height: 28px; + line-height: 28px; + text-align: center; + font-weight: bold; + border: 1px solid silver; + background-color: #ececec; } .tab-osd .buttons a:hover { - background-color: #dedcdc; + background-color: #dedcdc; } .tab-osd .buttons a.flash_font.locked { - background-color: #b8b8b8; + background-color: #b8b8b8; } .tab-osd .buttons a.flash_font.locked:hover { - cursor: default; - background-color: #b8b8b8; + cursor: default; + background-color: #b8b8b8; } .tab-osd .buttons a.load_remote_file.locked { - background-color: #b8b8b8; + background-color: #b8b8b8; } .tab-osd .buttons a.load_remote_file.locked:hover { - cursor: default; - background-color: #b8b8b8; + cursor: default; + background-color: #b8b8b8; } .tab-osd .buttons .back { - float: right; - margin: 0; + float: right; + margin: 0; } .tab-osd .btn .disabled { - cursor: default; - color: #fff; - background-color: #AFAFAF; - border: none; - pointer-events: none; - text-shadow: none; - opacity: 0.5; + cursor: default; + color: #fff; + background-color: #AFAFAF; + border: none; + pointer-events: none; + text-shadow: none; + opacity: 0.5; } .tab-osd .display-layout label { - margin: .25em .1em; - display: inline-block; + margin: .25em .1em; + display: inline-block; } .tab-osd .display-layout input { - margin: .1em 1em; + margin: .1em 1em; } .tab-osd .display-layout input.position{ - width: 5em; - border-bottom: 1px solid #ccc + width: 5em; + border-bottom: 1px solid #ccc } .tab-osd .hide { @@ -278,125 +278,128 @@ } .tab-osd .note { - padding: 1em; + padding: 1em; } .tab-osd .col { - display: inline-block; + display: inline-block; } .tab-osd .left { - float: left; + float: left; } .tab-osd .right { - float: right; - margin-top: -7px; + float: right; + margin-top: -7px; } .tab-osd .preview .char { - display: inline-block; - padding: 0; - margin: 0; + display: inline-block; + padding: 0; + margin: 0; } .tab-osd .preview .char[draggable="true"] { - cursor: move; + cursor: move; } .tab-osd .preview .row { - height: 18px; + height: 18px; } .tab-osd .content_wrapper { - height: calc(100% - 41px); + height: calc(100% - 41px); } .tab-osd .content_toolbar { - text-align: right; + text-align: right; } .tab-osd .content_toolbar button { - margin-right: 1em; + margin-right: 1em; } button { - padding: 4px 10px !important; - font-family: 'open_sanssemibold', Arial; - font-size: 9pt !important; - cursor: pointer; + padding: 4px 10px !important; + font-family: 'open_sanssemibold', Arial; + font-size: 9pt !important; + cursor: pointer; } .fontbuttons { - display: inline-block; - position: absolute; - right: 1.2em; - top: .8em; + display: inline-block; + position: absolute; + right: 1.2em; + top: .8em; } .tab-osd .display-field { - padding-bottom: 4px; - padding-top: 4px; - border-bottom: 1px solid #ddd; + padding-bottom: 4px; + padding-top: 4px; + border-bottom: 1px solid #ddd; } .tab-osd .display-field input { - float: right; - width: 50px; - border-radius: 3px; - border: 1px solid #ddd; - padding:2px; - margin-top: -2px; - display: none; + float: right; + width: 50px; + border-radius: 3px; + border: 1px solid #ddd; + padding:2px; + margin-top: -2px; + display: none; } .tab-osd .display-field label { - margin-left: 5px; + margin-left: 5px; } .tab-osd .display-fields { - float: left; - margin-top: 5px; - margin-bottom: 8px; - width: 100%; + float: left; + margin-top: 5px; + margin-bottom: 8px; + width: 100%; } .spacer_box_title span { - font-size: 11px; - font-weight: normal; - font-family: 'open_sansregular', 'Segoe UI', Tahoma, sans-serif; + font-size: 11px; + font-weight: normal; + font-family: 'open_sansregular', 'Segoe UI', Tahoma, sans-serif; } .video-types input { - margin-right: 5px; + margin-right: 5px; } .video-types label { - margin-right: 10px; + margin-right: 10px; } .tab-osd .display-field:last-child { - border-bottom: 0px; + border-bottom: 0px; } .tab-osd .preview { - width: 360px; + width: 360px; } .tab-osd .preview { - background: url(/images/osd-bg-1.png); - background-size: cover; - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; + /* please don't copy the generic background image from another project + * and replace the one that @nathantsoi took :) + */ + background: url(/images/osd-bg-1.jpg); + background-size: cover; + border-bottom-left-radius: 3px; + border-bottom-right-radius: 3px; } @media only screen and (max-width: 1055px) , only screen and (max-device-width: 1055px) { -.tab-osd .content_wrapper { + .tab-osd .content_wrapper { height: calc(100% - 30px); -} + } } diff --git a/tabs/osd.html b/tabs/osd.html index c1fc3bbb..2ab1f9d5 100755 --- a/tabs/osd.html +++ b/tabs/osd.html @@ -17,7 +17,7 @@
-
OSD +
OSD Elements
@@ -102,4 +102,4 @@
- \ No newline at end of file + diff --git a/tabs/osd.js b/tabs/osd.js index 809e3fe9..d513db82 100755 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -225,83 +225,83 @@ OSD.constants = { // order matters, so these are going in an array... pry could iterate the example map instead DISPLAY_FIELDS: [ { - name: 'Battery Voltage', + name: 'MAIN_BATT_VOLTAGE', default_position: -29, positionable: true, preview: FONT.symbol(SYM.VOLT) + '16.8' }, { - name: 'RSSI Value', + name: 'RSSI_VALUE', default_position: -59, positionable: true, preview: FONT.symbol(SYM.RSSI) + '99' }, { - name: 'Timer', + name: 'TIMER', default_position: -39, positionable: true, preview: FONT.symbol(SYM.ON_M) + ' 11:11' }, { - name: 'Throttle Position', + name: 'THROTTLE_POSITION', default_position: -9, positionable: true, preview: FONT.symbol(SYM.THR) + FONT.symbol(SYM.THR1) + ' 69' }, { - name: 'CPU Load', + name: 'CPU_LOAD', default_position: 26, positionable: true, preview: '15' }, { - name: 'VTX Channel', + name: 'VTX_CHANNEL', default_position: 1, positionable: true, preview: 'CH:1' }, { - name: 'Voltage Warning', + name: 'VOLTAGE_WARNING', default_position: -80, positionable: true, preview: 'LOW VOLTAGE' }, { - name: 'Armed', + name: 'ARMED', default_position: -107, positionable: true, preview: 'ARMED' }, { - name: 'Diasrmed', + name: 'DIASRMED', default_position: -109, positionable: true, preview: 'DISARMED' }, { - name: 'Artificial Horizon', + name: 'ARTIFICIAL_HORIZON', default_position: -1, positionable: false }, { - name: 'Horizon Sidebars', + name: 'HORIZON_SIDEBARS', default_position: -1, positionable: false }, { - name: 'Current Draw', + name: 'CURRENT_DRAW', default_position: -23, positionable: true, preview: FONT.symbol(SYM.AMP) + '42.0' }, { - name: 'mAh Drawn', + name: 'MAH_DRAWN', default_position: -18, positionable: true, preview: FONT.symbol(SYM.MAH) + '690' }, { - name: 'Craft Name', + name: 'CRAFT_NAME', default_position: -77, positionable: true, preview: '[CRAFT_NAME]' @@ -468,7 +468,7 @@ TABS.osd.initialize = function (callback) { }); }) ); - $field.append(''); + $field.append(''); if (field.positionable && field.position != -1) { $field.append( $('') @@ -522,7 +522,7 @@ TABS.osd.initialize = function (callback) { } var centerishPosition = 194; // artificial horizon - if ($('input[name="Artificial Horizon"]').prop('checked')) { + if ($('input[name="ARTIFICIAL_HORIZON"]').prop('checked')) { for (var i = 0; i < 9; i++) { OSD.data.preview[centerishPosition - 4 + i] = SYM.AH_BAR9_0 + 4; } @@ -531,7 +531,7 @@ TABS.osd.initialize = function (callback) { OSD.data.preview[centerishPosition] = SYM.AH_CENTER; } // sidebars - if ($('input[name="Horizon Sidebars"]').prop('checked')) { + if ($('input[name="HORIZON_SIDEBARS"]').prop('checked')) { var hudwidth = OSD.constants.AHISIDEBARWIDTHPOSITION; var hudheight = OSD.constants.AHISIDEBARHEIGHTPOSITION; for (var i = -hudheight; i <= hudheight; i++) {