Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OneDragon-Anything/ZenlessZoneZero-OneDragon
/ functions
Functions
5,764 in github.com/OneDragon-Anything/ZenlessZoneZero-OneDragon
⨍
Functions
5,764
◇
Types & classes
890
↳
Endpoints
25
↓ 789 callers
Function
gt
(msg: str | None, model: str = 'ui', lang: str | None = None)
src/one_dragon/utils/i18_utils.py:49
↓ 753 callers
Method
append
添加匹配结果,如果开启合并,则保留置信度更高的结果 :param a: 需要添加的结构 :param auto_merge: 是否与之前结果进行合并 :param merge_distance: 多少距离内的 :ret
src/one_dragon/base/matcher/match_result.py:72
↓ 625 callers
Method
round_success
创建成功的轮次结果。 Args: status: 可选状态消息。默认为None。 data: 可选返回数据。默认为None。 wait: 等待时间(秒)。默认为None。 wait_ro
src/one_dragon/base/operation/operation.py:777
↓ 373 callers
Method
get
(self, prop: str, value=None)
src/one_dragon/base/config/yaml_operator.py:154
↓ 275 callers
Method
round_retry
创建重试的轮次结果。 Args: status: 可选状态消息。默认为None。 data: 可选返回数据。默认为None。 wait: 等待时间(秒)。默认为None。 wait_ro
src/one_dragon/base/operation/operation.py:809
↓ 272 callers
Method
update
(self, key: str, value, save: bool = True)
src/one_dragon/base/config/yaml_operator.py:159
↓ 267 callers
Method
get
(self)
src/zzz_od/gui/view/home/home_interface.py:214
↓ 238 callers
Method
get
(self)
src/one_dragon/thread/atomic_int.py:9
↓ 236 callers
Method
round_by_find_and_click_area
在屏幕上查找并点击目标区域。 Args: screen: 截图图像。默认为None(将截取新截图)。 screen_name: 屏幕名称。默认为None。 area_name: 区域名称。默认为None。
src/one_dragon/base/operation/operation.py:882
↓ 232 callers
Method
round_wait
创建等待的轮次结果。 Args: status: 可选状态消息。默认为None。 data: 可选返回数据。默认为None。 wait: 等待时间(秒)。默认为None。 wait_ro
src/one_dragon/base/operation/operation.py:793
↓ 215 callers
Method
execute
(self)
src/zzz_od/auto_battle/atomic_op/turn.py:18
↓ 199 callers
Method
info
(self, msg: str, *args: Any, **kwargs: Any)
src/onnxocr/logger.py:23
↓ 181 callers
Method
get_area
获取某个区域的信息 :return:
src/one_dragon/base/screen/screen_loader.py:236
↓ 180 callers
Method
init_with_adapter
绑定适配器并异步同步初始值。
src/one_dragon_qt/widgets/adapter_init_mixin.py:22
↓ 179 callers
Method
setText
(self, text)
src/one_dragon_qt/widgets/label.py:12
↓ 176 callers
Method
error
创建错误通知。
src/one_dragon/base/operation/context_notify_event.py:43
↓ 172 callers
Method
emit
将新日志记录添加到日志队列
src/one_dragon_qt/widgets/log_display_card.py:23
↓ 171 callers
Method
round_by_find_area
检查是否能在屏幕上找到目标区域。 Args: screen: 截图图像。 screen_name: 屏幕名称。 area_name: 区域名称。 success_wai
src/one_dragon/base/operation/operation.py:981
↓ 131 callers
Method
round_by_op_result
根据操作结果获取当前轮次结果。 Args: op_result: 要转换的操作结果。 status: 可选的状态覆盖值。如果提供,则优先使用此值代替 op_result.status。默认为None。 retr
src/one_dragon/base/operation/operation.py:855
↓ 126 callers
Method
info
创建普通通知。
src/one_dragon/base/operation/context_notify_event.py:28
↓ 116 callers
Method
debug
(self, msg: str, *args: Any, **kwargs: Any)
src/onnxocr/logger.py:28
↓ 113 callers
Method
add_widget
(self, widget: QWidget, stretch: int = 0, alignment: Qt.AlignmentFlag = Qt.AlignmentFlag.AlignTop)
src/one_dragon_qt/widgets/column.py:28
↓ 104 callers
Method
addSettingCard
添加设置卡片(自动插入分隔线,去除子卡自身边框)
src/one_dragon_qt/widgets/setting_card/expand_setting_card_group.py:34
↓ 101 callers
Method
round_fail
创建失败的轮次结果。 Args: status: 可选状态消息。默认为None。 data: 可选返回数据。默认为None。 wait: 等待时间(秒)。默认为None。 wait_ro
src/one_dragon/base/operation/operation.py:825
↓ 95 callers
Method
get_prop_adapter
获取一个配置适配器 :param prop: 配置字段 :param getter_convert: 获取时的转换器 :param setter_convert: 设置时的转换器 :return:
src/one_dragon/base/config/yaml_config.py:112
↓ 90 callers
Method
width
(self)
src/one_dragon/base/geometry/rectangle.py:38
↓ 85 callers
Method
height
(self)
src/one_dragon/base/geometry/rectangle.py:42
↓ 84 callers
Method
round_by_click_area
点击特定区域。 Args: screen_name: 屏幕名称。 area_name: 区域名称。 click_left_top: 是否点击左上角。默认为False。 pre_delay
src/one_dragon/base/operation/operation.py:1092
↓ 83 callers
Function
get_prop_adapter
获取一个属性适配器 Args: config: 来源配置 prop: 属性名称 getter_convert: 获取属性时使用的转化器 setter_convert: 设置属性时使用的转化器 Returns
src/one_dragon_qt/utils/config_utils.py:7
↓ 82 callers
Method
click
点击位置 :param pos: 点击位置 (x,y) 默认分辨率下的游戏窗口里的坐标 :param press_time: 大于0时长按若干秒 :param pc_alt: 只在PC端有用 使用ALT键进行点击(仅前台模式)
src/one_dragon/base/controller/controller_base.py:48
↓ 72 callers
Method
setDisabled
(self, disabled: bool)
src/zzz_od/gui/view/one_dragon/predefined_team_interface.py:131
↓ 72 callers
Method
setEnabled
(self, enabled: bool)
src/zzz_od/gui/view/one_dragon/predefined_team_interface.py:122
↓ 66 callers
Method
error
(self, msg: str, *args: Any, **kwargs: Any)
src/onnxocr/logger.py:38
↓ 63 callers
Method
y
(self)
src/one_dragon/base/config/pip_config.py:35
↓ 60 callers
Method
round_by_ocr_and_click
使用OCR在区域内查找目标文本并点击。 Args: screen: 游戏截图。 target_cn: 要查找的目标文本。 area: 要搜索的目标区域。默认为None(搜索整个屏幕)。
src/one_dragon/base/operation/operation.py:1129
↓ 58 callers
Method
setValue
设置下拉框的值。
src/one_dragon_qt/widgets/combo_box.py:69
↓ 57 callers
Method
get_config
获取配置实例。 使用缓存机制,如果配置已存在则返回缓存的配置,否则创建新的配置并缓存。 Args: instance_idx: 账号实例下标 group_id: 应用组ID,不同应用组可以有不同的应
src/one_dragon/base/operation/application/application_factory.py:104
↓ 56 callers
Method
warning
创建警告通知。
src/one_dragon/base/operation/context_notify_event.py:38
↓ 55 callers
Method
x
(self)
src/one_dragon/base/config/pip_config.py:27
↓ 53 callers
Method
add_widget
(self, widget: QWidget, stretch: int = 0, alignment: Qt.AlignmentFlag = Qt.AlignmentFlag.AlignLeft)
src/one_dragon_qt/widgets/row.py:28
↓ 53 callers
Method
start_running
开始运行。 将上下文状态设置为运行,初始化控制器并发送开始事件。 只有在停止状态下才能开始运行。 Returns: bool: 是否成功开始运行
src/one_dragon/base/operation/application/application_run_context.py:304
↓ 49 callers
Function
get_title
根据字体支持情况返回合适的标题 Args: chinese_title: 中文标题 english_title: 英文标题 Returns: 合适的标题文本
src/one_dragon/utils/mini_map_angle_visualizer.py:99
↓ 48 callers
Method
add
添加一条通知到池中
src/one_dragon/base/operation/notify_pool.py:33
↓ 48 callers
Method
screenshot
截图并保存在内存中。 此方法包装截图功能并将最后一张截图保存在内存中 以用于错误处理。 Returns: np.ndarray: 截图图像。
src/one_dragon/base/operation/operation.py:631
↓ 47 callers
Method
set_items
更新选项 且尽量复用原来的选项
src/one_dragon_qt/widgets/combo_box.py:20
↓ 46 callers
Method
init
(self)
src/one_dragon/base/operation/one_dragon_context.py:257
↓ 43 callers
Method
init_ocr
初始化OCR :return:
src/one_dragon/base/operation/one_dragon_context.py:482
↓ 42 callers
Method
exec
模态执行窗口,等待窗口关闭
src/one_dragon_qt/app/directory_picker.py:402
↓ 39 callers
Method
_overlay_data
(self)
src/one_dragon_qt/overlay/overlay_config.py:121
↓ 39 callers
Method
setFixedSize
重写setFixedSize方法,同时更新内部的固定尺寸参数
src/one_dragon_qt/widgets/fixed_size_image_label.py:128
↓ 38 callers
Method
check_and_update_current_screen
识别当前画面的名称并保存起来。 Args: screen: 游戏截图。默认为None。 screen_name_list: 传入时只判断这里的画面。默认为None。 crop_first: 是
src/one_dragon/base/operation/operation.py:1442
↓ 38 callers
Method
rect
(self)
src/one_dragon/base/screen/screen_area.py:38
↓ 38 callers
Method
setDisabled
(self, arg__1: bool)
src/one_dragon_qt/widgets/setting_card/app_run_card.py:153
↓ 37 callers
Method
drag_to
按住拖拽 :param end: 拖拽目的点 :param start: 拖拽开始点 :param duration: 拖拽持续时间 :return:
src/one_dragon/base/controller/controller_base.py:110
↓ 37 callers
Method
stop_auto_battle
停止自动战斗 Returns: None
src/zzz_od/auto_battle/auto_battle_context.py:174
↓ 37 callers
Method
update
Override update so YamlConfigAdapter can still write overlay.* fields.
src/one_dragon_qt/overlay/overlay_config.py:187
↓ 36 callers
Method
clear
(self)
src/one_dragon_qt/overlay/panels/log_panel.py:97
↓ 36 callers
Method
extend
加入将另一个列表的所有元素 :param mrl: 另一个列表 :param auto_merge: 是否合并 :param merge_distance: 合并距离 :return:
src/one_dragon/base/matcher/match_result.py:101
↓ 35 callers
Method
_update_overlay_data
(self, key: str, value: Any)
src/one_dragon_qt/overlay/overlay_config.py:182
↓ 35 callers
Method
round_by_ocr_and_click_by_priority
使用OCR按优先级在区域内查找文本并点击。 Args: screen: 游戏截图。 target_cn_list: 按优先级排序的目标文本列表。 ignore_cn_list: 要忽略的文本列表。目标列表中的某
src/one_dragon/base/operation/operation.py:1218
↓ 34 callers
Method
add_sub_interface
添加子页面,并在导航栏创建对应按钮
src/one_dragon_qt/windows/app_window_base.py:57
↓ 32 callers
Method
decode
convert text-index into text-label.
src/onnxocr/rec_postprocess.py:244
↓ 31 callers
Method
run_ocr
对图片进行OCR 返回所有匹配结果 :param image: 图片 :param threshold: 匹配阈值 :param merge_line_distance: 多少行距内合并结果 -1为不合并 理论中文情况不会出现过长分行
src/one_dragon/base/matcher/ocr/ocr_matcher.py:54
↓ 31 callers
Method
setFixedWidth
设置固定宽度
src/one_dragon_qt/widgets/multi_selection_combo_box.py:448
↓ 30 callers
Method
get_ocr_result_list
获取全图OCR结果,优先从缓存获取 Args: image: 输入图片 color_range: 颜色范围过滤 [[lower], [upper]] rect: 指定区域。识别结果后,筛选在指
src/one_dragon/base/matcher/ocr/ocr_service.py:134
↓ 30 callers
Method
stop
停止日志显示
src/one_dragon_qt/widgets/log_display_card.py:123
↓ 28 callers
Method
get_text
获取翻译文本
src/one_dragon_qt/app/directory_picker.py:82
↓ 27 callers
Method
set_options_by_list
通过 ConfigItem 列表设置下拉框选项。
src/one_dragon_qt/widgets/setting_card/combo_box_setting_card.py:125
↓ 26 callers
Method
round_by_ocr
使用OCR在区域内查找目标文本。 Args: screen: 游戏截图。 target_cn: 要查找的目标文本。 area: 要搜索的目标区域。默认为None。 lcs_percent
src/one_dragon/base/operation/operation.py:1360
↓ 25 callers
Method
clear
(self)
src/one_dragon/base/operation/notify_pool.py:66
↓ 25 callers
Method
get_run_record
获取运行记录实例。 使用缓存机制,如果运行记录已存在则返回缓存的记录,否则创建新的记录并缓存。 Args: instance_idx: 账号实例下标 Returns: AppRun
src/one_dragon/base/operation/application/application_factory.py:132
↓ 25 callers
Method
setMinimumWidth
设置最小宽度
src/one_dragon_qt/widgets/multi_selection_combo_box.py:433
↓ 24 callers
Method
_add_channel
添加一个推送渠道 Args: channel: 推送渠道
src/one_dragon/base/push/push_service.py:101
↓ 24 callers
Method
setIcon
(self, icon: QIcon)
src/one_dragon_qt/windows/window.py:175
↓ 23 callers
Method
crop_and_run_ocr
裁剪图片后进行OCR 自动处理 overlay 坐标偏移 :param image: 原图 :param rect: 裁剪区域 :param threshold: 匹配阈值 :param merge_line_dist
src/one_dragon/base/matcher/ocr/ocr_matcher.py:84
↓ 23 callers
Method
save
(self)
src/zzz_od/application/charge_plan/charge_plan_config.py:105
↓ 22 callers
Method
clear
清空所有列表项 同时重置拖拽状态和停止自动滚动。
src/one_dragon_qt/widgets/draggable_list.py:493
↓ 22 callers
Method
start
启动日志显示
src/one_dragon_qt/widgets/log_display_card.py:98
↓ 20 callers
Method
match_template
在原图中 匹配模板 如果模板图中有掩码图 会自动使用 :param source: 原图 :param template_sub_dir: 模板的子文件夹 :param template_id: 模板id :param
src/one_dragon/base/matcher/template_matcher.py:18
↓ 19 callers
Method
warning
(self, msg: str, *args: Any, **kwargs: Any)
src/onnxocr/logger.py:33
↓ 18 callers
Method
listen_event
新增监听事件 监听的回调,如果耗时过长,应该在自己的线程池的工作,避免阻塞 :param event_id: :param callback: :return:
src/one_dragon/base/operation/context_event_bus.py:36
↓ 18 callers
Method
move_s
(self, press: bool = False, press_time: float | None = None, release: bool = False)
src/zzz_od/auto_battle/auto_battle_context.py:438
↓ 18 callers
Function
print_message
(message: str, level: str = "INFO", flush: bool = False)
src/one_dragon/devtools/python_launcher.py:37
↓ 18 callers
Method
run_ocr_single_line
单行文本识别 手动合成一行 按匹配结果从左到右 从上到下 理论中文情况不会出现过长分行的 这里只是为了兼容英语的情况 :param image: 图片 :param threshold: 阈值 :param stric
src/one_dragon/base/matcher/ocr/ocr_matcher.py:43
↓ 18 callers
Method
start
(self)
src/zzz_od/application/random_play/random_play_app.py:384
↓ 17 callers
Method
move_w
向前移动
src/zzz_od/controller/zzz_pc_controller.py:119
↓ 17 callers
Method
move_w
(self, press: bool = False, press_time: float | None = None, release: bool = False)
src/zzz_od/auto_battle/auto_battle_context.py:426
↓ 17 callers
Method
release
施释放按键
src/one_dragon/base/controller/pc_button/pc_button_controller.py:55
↓ 17 callers
Method
setImage
设置图像的接口,兼容Cv2Image和QPixmap
src/one_dragon_qt/widgets/fixed_size_image_label.py:77
↓ 17 callers
Method
title
(self)
src/one_dragon/base/config/notify_config.py:44
↓ 17 callers
Method
turn_by_distance
横向转向 按距离转 Args: d: 正数往右转 负数往左转
src/zzz_od/controller/zzz_pc_controller.py:163
↓ 16 callers
Method
_action_btn
通用按键动作:按下/释放/点按
src/zzz_od/controller/zzz_pc_controller.py:74
↓ 16 callers
Method
batch_update_states
批量更新多个状态后的回调 然后看是否需要触发对应的场景 清除状态的不进行触发 只触发优先级最高的一个 多个相同优先级时 随机触发一个 没有场景需要触发时 判断是否符合当前运行指令的打断 如果符合 则打断
src/one_dragon/base/conditional_operation/operator.py:295
↓ 16 callers
Function
get_auto_battle_op_config_list
获取用于配置页面显示的指令列表 :return:
src/zzz_od/application/battle_assistant/auto_battle_config.py:9
↓ 16 callers
Method
setContent
更新左侧详细文本 :param content: 文本 中文 :return:
src/one_dragon_qt/widgets/setting_card/key_setting_card.py:101
↓ 16 callers
Method
stop_moving_forward
停止向前移动
src/zzz_od/controller/zzz_pc_controller.py:156
↓ 15 callers
Function
_log
(msg: str)
tools/ci/prepare_release_assets.py:14
↓ 15 callers
Method
_update_all_image_display
更新所有图片的显示 :return:
src/one_dragon_qt/view/devtools/devtools_template_helper_interface.py:441
↓ 15 callers
Method
_update_large_map_display
(self)
src/zzz_od/gui/view/world_patrol/world_patrol_large_map_recorder_interface.py:521
↓ 15 callers
Method
start
(self)
src/one_dragon_qt/overlay/overlay_manager.py:82
next →
1–100 of 5,764, ranked by callers