银河奶牛历史价格(包含强化物品)history(enhancement included) price for milkywayidle
< 脚本mooket的反馈
感谢作者提供的插件!在使用中发现两个配置相关的bug,希望合并一下 // 修复进入游戏但不打开市场就退出,导致下一次进入游戏时mooket丢失之前保存的窗口位置
function toggle(save = true) { if (uiContainer.style.display === 'none') {//展开 uiContainer.style.display = ctx.style.display = 'block'; btn_close.value = '📈' + (mwi.isZh ? "隐藏" : "Hide"); leftContainer.style.position = 'absolute' leftContainer.style.top = '1px'; leftContainer.style.left = '1px'; container.style.width = config.w + "px"; container.style.height = config.h + "px"; container.style.minHeight = "150px"; container.style.minWidth = "200px"; config.visible = true; favoContainer.style.top = "35px"; favoContainer.style.right = 0; favoContainer.style.left = null; favoContainer.style.position = 'absolute'; requestItemPrice(delayItemHridName, curDay, delayItemLevel); updateFavo(); } else {//隐藏 uiContainer.style.display = ctx.style.display = 'none'; container.style.width = config.minWidth + "px"; container.style.height = config.minHeight + "px"; container.style.minHeight = "min-content"; container.style.minWidth = "112px"; container.style.width = "min-content"; container.style.height = "min-content"; btn_close.value = '📈' + (mwi.isZh ? "显示" : "Show"); leftContainer.style.position = 'relative' leftContainer.style.top = 0; leftContainer.style.left = 0; favoContainer.style.top = 0; favoContainer.style.left = 0; favoContainer.style.right = null; favoContainer.style.position = 'relative'; config.visible = false; updateFavo(); } // 增加保存可选项 if (save) { save_config() } } ... // 初始化时不保存配置,防止初始化导致的位置变动被保存 toggle(false); console.info("mooket 初始化完成");
修复只进行增加自选操作,无法保存设置的情况
function addFavo(itemHridLevel) { if (mwi.character?.gameMode !== "standard") return; let priceObj = mwi.coreMarket.getItemPrice(itemHridLevel); config.favo[itemHridLevel] = { ask: priceObj.ask, bid: priceObj.bid, time: priceObj.time }; sendFavo(); // 增加自选时保存设置 save_config(); }
好像是初始加载的时候没有位置和宽高数据,改了一下,只在可见的时候保存,再试试呢
自选好像是忘记保存了,已加上,感谢反馈
测了下,都修复了,感谢
登录以发表回复
感谢作者提供的插件!在使用中发现两个配置相关的bug,希望合并一下 // 修复进入游戏但不打开市场就退出,导致下一次进入游戏时mooket丢失之前保存的窗口位置
修复只进行增加自选操作,无法保存设置的情况