Coder Social home page Coder Social logo

Comments (3)

LmeSzinc avatar LmeSzinc commented on June 17, 2024

调整 offset 即可

auto_search = Switch('Auto_Search', offset=(20, 20))
auto_search.add_status('on', check_button=AUTO_SEARCH_ON)
auto_search.add_status('off', check_button=AUTO_SEARCH_OFF)

from azurlaneautoscript.

Air111 avatar Air111 commented on June 17, 2024

调整 offset 即可

自律寻敌选择框是最后出来的(在最右侧),只能提早一帧识别出来,我觉得不太行

from azurlaneautoscript.

Air111 avatar Air111 commented on June 17, 2024

def handle_auto_search(self):
"""
Returns:
bool: If changed
Pages:
in: MAP_PREPARATION
"""
# if not self.map_is_clear_mode:
# return False
if not auto_search.appear(main=self):
logger.info('No auto search option.')
self.map_is_auto_search = False
return False
status = 'on' if self.map_is_auto_search else 'off'
changed = auto_search.set(status=status, main=self)

我觉得这里可以用被注释掉的来判断。这个函数在 453b38f 加进去的时候就是这个样子,所以我也没法判断是什么原因弃用了被注释掉的判断方式。

from azurlaneautoscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.