Skip to content

Commit

Permalink
17.7.7 Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Jul 7, 2017
1 parent cfa0125 commit ae87a6a
Show file tree
Hide file tree
Showing 3 changed files with 735 additions and 737 deletions.
16 changes: 7 additions & 9 deletions Debug/script/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2367,25 +2367,23 @@ AddonOptions = function (Id, fn, Data)
}
}
var info = GetAddonInfo(Id);
var sURL = "../addons/" + Id + "/options.html";
var sURL = "addons\\" + Id + "\\options.html";
if (!Data) {
Data = {};
}
Data.id = Id;
var sFeatures = info.Options;
if (/^Location$/i.test(sFeatures)) {
sFeatures = "Common:6:6";
}
var res = /Common:([\d,]+):(\d)/i.exec(sFeatures);
if (res) {
sURL = "location.html";
sURL = "script\\location.html";
Data.show = res[1];
Data.index = res[2];
sFeatures = 'Default';
}
if (/^Location$/i.test(sFeatures)) {
sURL = "location.html";
Data.show = "6";
Data.index = "6";
sFeatures = 'Default';
}
sURL = fso.BuildPath(fso.GetParentFolderName(api.GetModuleFileName(null)), sURL);
var opt = {MainWindow: MainWindow, Data: Data, event: {}};
if (fn) {
opt.event.TEOk = fn;
Expand All @@ -2395,7 +2393,7 @@ AddonOptions = function (Id, fn, Data)
g_Chg.Addons = true;
}
}
if (window.Addon == 1) {
if (window.Addon == 1 || api.GetKeyState(VK_CONTROL) < 0) {
if (/^Default$/i.test(sFeatures)) {
sFeatures = 'Width: 640; Height: 480';
}
Expand Down
Loading

0 comments on commit ae87a6a

Please sign in to comment.