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
↓ 3 callers
Function
_is_notify_enabled
判断通知总开关是否开启。 Args: operation: Operation 实例 Returns: bool: 通知总开关是否开启
src/one_dragon/base/operation/operation_notify.py:49
↓ 3 callers
Method
_is_same_plan
(self, x: ChargePlanItem, y: ChargePlanItem)
src/zzz_od/application/notorious_hunt/notorious_hunt_config.py:224
↓ 3 callers
Method
_match_mission_type
匹配任务类型名称(支持别名双向查找)
src/zzz_od/operation/compendium/notorious_hunt.py:82
↓ 3 callers
Method
_need_pause_in_background
(self)
src/zzz_od/application/commission_assistant/commission_assistant_app.py:91
↓ 3 callers
Method
_record_entry_nav_click
(self)
src/zzz_od/application/hollow_zero/lost_void/lost_void_app.py:904
↓ 3 callers
Method
_refresh_app_config
(self)
src/one_dragon_qt/view/one_dragon/one_dragon_run_interface.py:112
↓ 3 callers
Method
_refresh_style
(self)
src/one_dragon_qt/widgets/overlay_text_widget.py:45
↓ 3 callers
Method
_refresh_style
(self)
src/one_dragon_qt/overlay/panels/resizable_panel.py:146
↓ 3 callers
Method
_release_keys
松开可能影响下一个角色的按键,避免按键冲突(系统只能同时按下3个按键) :return:
src/zzz_od/auto_battle/auto_battle_context.py:1063
↓ 3 callers
Method
_request
使用 urllib.request 发送 GET 请求
tools/ci/update_redemption_code.py:31
↓ 3 callers
Method
_reset_cached_window
清空缓存窗口对象与句柄,触发后续重新查找窗口。
src/one_dragon/base/controller/pc_game_window.py:71
↓ 3 callers
Method
_reset_turn_calibration_status
重置转向校准相关的状态
src/zzz_od/application/hollow_zero/lost_void/operation/lost_void_move_by_det.py:167
↓ 3 callers
Method
_reset_ui_disappear_stuck
(self)
src/zzz_od/application/world_patrol/operation/world_patrol_run_route.py:555
↓ 3 callers
Method
_resize_video_view
调整视频视图大小
src/one_dragon_qt/widgets/banner.py:270
↓ 3 callers
Method
_scale_pixmap_keep_ratio
按比例缩放图片,保持长宽比
src/one_dragon_qt/widgets/fixed_size_image_label.py:96
↓ 3 callers
Method
_send_activate
发送 WM_ACTIVATE(WA_ACTIVE) 到游戏窗口。 让游戏认为自己被激活,但不实际改变前台窗口。 后台 PostMessage 点击前必须调用。 Returns: 是否成功
src/one_dragon/base/controller/pc_controller_base.py:247
↓ 3 callers
Method
_set_agent_input_error
(self, is_error: bool)
src/zzz_od/gui/view/devtools/agent_template_generator_interface.py:182
↓ 3 callers
Method
_set_cards_enabled
(self, enabled: bool)
src/zzz_od/gui/view/devtools/agent_template_generator_interface.py:215
↓ 3 callers
Method
_set_cursor_to
将物理光标移动到窗口客户区坐标 (cx, cy) 对应的屏幕位置。
src/one_dragon/base/controller/pc_controller_base.py:268
↓ 3 callers
Method
_set_title_bar_home_mode
切换标题栏首页模式。启用时额外检查当前页是否为首页,避免误伤其他页面。
src/zzz_od/gui/view/home/home_interface.py:760
↓ 3 callers
Method
_start_auto_scroll
启动自动滚动
src/one_dragon_qt/widgets/notice_card.py:681
↓ 3 callers
Method
_stop_auto_scroll
停止自动滚动
src/one_dragon_qt/widgets/notice_card.py:686
↓ 3 callers
Method
_stop_running_task
停止正在运行的任务 调用这个函数的地方都使用了 self._task_lock 锁 :return:
src/one_dragon/base/conditional_operation/operator.py:253
↓ 3 callers
Method
_sync_code
同步代码:首次运行时克隆,后续运行时自动更新
src/one_dragon/launcher/runtime_launcher.py:19
↓ 3 callers
Method
_to_qt_rect
Convert native/physical window coordinates to Qt logical coordinates. This prevents overlay misalignment on high-DPI scaling.
src/one_dragon_qt/overlay/overlay_manager.py:892
↓ 3 callers
Method
_try_get_client_rect
(hwnd: int)
src/one_dragon/base/controller/pc_game_window.py:77
↓ 3 callers
Method
_update_all_remove_buttons
更新所有删除按钮状态
src/one_dragon_qt/widgets/setting_card/key_value_setting_card.py:120
↓ 3 callers
Method
_update_grid_layout
使用 FlowLayout 更新标签布局,并动态调整父组件宽度 核心逻辑: 1. 通过父组件的公共接口计算并设置合适的宽度 2. 清除 FlowLayout 中的所有现有元素 3. 将所有标签添加到 FlowLayout
src/one_dragon_qt/widgets/multi_selection_combo_box.py:187
↓ 3 callers
Method
_update_height
根据内容更新卡片高度
src/one_dragon_qt/widgets/setting_card/key_value_setting_card.py:112
↓ 3 callers
Method
_update_indices
更新所有列表项的索引
src/one_dragon_qt/widgets/draggable_list.py:532
↓ 3 callers
Method
_update_points_circle_2_rect
圆形转成矩形 :return:
src/one_dragon/base/screen/template_info.py:490
↓ 3 callers
Method
_update_route_list
更新路线列表
src/zzz_od/gui/view/world_patrol/world_patrol_route_recorder_interface.py:322
↓ 3 callers
Method
_update_start_button_style_from_banner
从当前背景取主色,应用到启动按钮。
src/zzz_od/gui/view/home/home_interface.py:744
↓ 3 callers
Method
add_code
添加单个兑换码到用户配置 Args: code: 兑换码 end_dt: 过期日期 (YYYYMMDD 格式)
src/zzz_od/application/redemption_code/redemption_code_config.py:61
↓ 3 callers
Method
add_item
添加一个列表项 Args: data: 列表项关联的数据 content_widget: 显示内容的组件 Note: 透明度效果由 DraggableList 的 enabl
src/one_dragon_qt/widgets/draggable_list.py:412
↓ 3 callers
Method
add_node_finished
将某个节点加入完成 @param node_idx: @return:
src/zzz_od/application/shiyu_defense/shiyu_defense_run_record.py:54
↓ 3 callers
Method
after_app_shutdown
App关闭后进行的操作 关闭一切可能资源操作
src/zzz_od/context/zzz_context.py:136
↓ 3 callers
Function
area_route_dir
(area: WorldPatrolArea)
src/zzz_od/application/world_patrol/world_patrol_service.py:32
↓ 3 callers
Method
cal_current_map_by_screen
根据当前的游戏画面 计算对应的空洞地图 :param screen: 游戏画面 :param screenshot_time: 截图时间 :return:
src/zzz_od/hollow_zero/hollow_map/hollow_zero_map_service.py:36
↓ 3 callers
Method
chain_cancel
(self, press: bool = False, press_time: float | None = None, release: bool = False)
src/zzz_od/auto_battle/auto_battle_context.py:486
↓ 3 callers
Method
chain_left
(self, press: bool = False, press_time: float | None = None, release: bool = False)
src/zzz_od/auto_battle/auto_battle_context.py:358
↓ 3 callers
Method
chain_right
(self, press: bool = False, press_time: float | None = None, release: bool = False)
src/zzz_od/auto_battle/auto_battle_context.py:383
↓ 3 callers
Method
check_agent_list
识别空洞画面里的角色列表
src/zzz_od/application/hollow_zero/withered_domain/withered_domain_context.py:462
↓ 3 callers
Method
check_and_update_display
检查并更新显示状态 根据下载器状态和下载任务运行状态来设置各个按钮的启用/禁用状态
src/one_dragon_qt/widgets/setting_card/common_download_card.py:198
↓ 3 callers
Method
check_and_update_status
检查并更新状态 各个app按需实现 :return:
src/one_dragon/base/operation/application_run_record.py:46
↓ 3 callers
Method
check_battle_encounter_in_period
持续一段时间检测是否进入战斗 @param total_check_seconds: 总共检测的秒数 @return:
src/zzz_od/application/hollow_zero/lost_void/context/lost_void_context.py:223
↓ 3 callers
Method
check_dodge_flash
识别画面是否有闪光。 :param screen: 屏幕截图 :param screenshot_time: 截图时间 :param audio_future: 音频识别结果的Future对象 :return: 是否应
src/zzz_od/auto_battle/auto_battle_dodge_context.py:223
↓ 3 callers
Method
check_entry_list_input
(self, input_str: str)
src/zzz_od/hollow_zero/hollow_zero_data_service.py:244
↓ 3 callers
Method
check_interact_stop
判断是否应该为交互停下来 1. 先检查交互按钮,如果有则返回True 2. 检测图标是否变大,如果变大则返回True 3. 检查普攻按钮是否丢失,如果丢失则停下(停下动作每5秒最多触发一次) @param screen
src/zzz_od/application/hollow_zero/lost_void/operation/lost_void_move_by_det.py:609
↓ 3 callers
Method
check_screen_with_can_go
识别当前画面的名称并判断能否前往目标画面。 Args: screen: 游戏截图。 screen_name: 目标画面名称。 Returns: tuple[str, bool]: 当前画面名称
src/one_dragon/base/operation/operation.py:1470
↓ 3 callers
Method
check_shiyu_countdown
检查防卫战倒计时状态 :param screen: 屏幕截图 :return: True表示有倒计时(战斗继续),False表示没有倒计时(战斗结束)
src/zzz_od/application/shiyu_defense/shiyu_defense_battle.py:238
↓ 3 callers
Method
clear_pending_sample
清空上一轮尚未学习的转向样本,保留补偿比例。
src/zzz_od/operation/turning/turn_compensation.py:27
↓ 3 callers
Method
click_confirm
(self)
src/zzz_od/application/hollow_zero/lost_void/operation/interact/lost_void_choose_common.py:184
↓ 3 callers
Function
click_empty
(op: ZOperation, bottom_opt_pos: Optional[MatchResult] = None)
src/zzz_od/hollow_zero/event/hollow_event_utils.py:206
↓ 3 callers
Method
close_game
(self)
src/one_dragon/base/operation/one_dragon_app.py:105
↓ 3 callers
Function
configure_logger
显式配置 logger。 职责只有一个:将一个现成的 logger 调整到目标配置。 仅会替换框架自己创建的 handler,不会移除外部追加的 handler。
src/one_dragon/utils/log_utils.py:39
↓ 3 callers
Function
connection_erase
通过连通性检测 消除一些噪点 :param mask: 黑白图 掩码图 :param threshold: 小于多少连通时 认为是噪点 :param erase_white: 是否清除白色 :param connectivity: 连通性检测方向 4 or
src/one_dragon/utils/cv2_utils.py:563
↓ 3 callers
Function
create_blank_img
()
src/onnxocr/utils.py:140
↓ 3 callers
Method
crop_and_match_template
裁剪图片后进行模板匹配 自动处理 overlay 坐标偏移 :param source: 原图 :param rect: 裁剪区域 :param template_sub_dir: 模板的子文件夹 :param tem
src/one_dragon/base/matcher/template_matcher.py:134
↓ 3 callers
Method
decode
convert text-index into text-label.
src/onnxocr/rec_postprocess.py:425
↓ 3 callers
Method
dodge
(self, press: bool = False, press_time: float | None = None, release: bool = False)
src/zzz_od/auto_battle/auto_battle_context.py:237
↓ 3 callers
Method
download
( self, download_by_github: bool = True, download_by_gitee: bool = False,
src/one_dragon/base/web/zip_downloader.py:29
↓ 3 callers
Method
enable_ds4
(self)
src/zzz_od/controller/zzz_pc_controller.py:69
↓ 3 callers
Method
enable_xbox
(self)
src/zzz_od/controller/zzz_pc_controller.py:64
↓ 3 callers
Method
ensure_cache_dir
确保缓存目录存在
src/one_dragon_qt/widgets/notice_card.py:255
↓ 3 callers
Method
enter_battle
更新进入战斗后的公共状态。
src/zzz_od/application/hollow_zero/lost_void/operation/lost_void_run_level.py:218
↓ 3 callers
Method
execute
执行处理步骤 :param context: 流水线上下文
src/one_dragon/base/cv_process/cv_step.py:202
↓ 3 callers
Method
fetch_latest_code
更新最新的代码:不存在 .git 则克隆,存在则拉取并更新分支
src/one_dragon/envs/git_service.py:675
↓ 3 callers
Method
generate_curl_command
生成 cURL 命令 Args: config: 配置字典 style: 命令风格,'pwsh' 或 'unix' Returns: 生成的 cURL 命令字符串,如果配置无
src/one_dragon/base/push/curl_generator.py:16
↓ 3 callers
Method
get_agent_pos
获取指定代理人在队伍当前的位置 :return: 如果存在就返回1~3 不存在就返回0
src/zzz_od/auto_battle/auto_battle_agent_context.py:250
↓ 3 callers
Method
get_app_notify_modes
获取应用通知二维模式。
src/one_dragon/base/config/notify_config.py:74
↓ 3 callers
Method
get_application
创建应用实例。 通过已注册的工厂创建指定参数的应用实例。 Args: app_id: 应用ID instance_idx: 账号实例下标 group_id: 应用组ID,可将
src/one_dragon/base/operation/application/application_run_context.py:166
↓ 3 callers
Method
get_area_list_by_entry
(self, entry: WorldPatrolEntry)
src/zzz_od/application/world_patrol/world_patrol_service.py:180
↓ 3 callers
Function
get_auto_battle_config_file_path
自动战斗配置文件路径 :param sub_dir: 目录名称 :param template_name: 模板名称 :return:
src/zzz_od/application/battle_assistant/auto_battle_config.py:57
↓ 3 callers
Method
get_data_list
获取当前顺序的数据列表 Returns: 按当前顺序排列的数据列表
src/one_dragon_qt/widgets/draggable_list.py:514
↓ 3 callers
Method
get_default_avoid_entry_list
默认的避免途经点类型 :return:
src/zzz_od/hollow_zero/hollow_zero_data_service.py:303
↓ 3 callers
Method
get_gamepad_action_keys
获取指定手柄类型的后台模式动作 → 实际按键映射。 Args: gamepad_type: GamepadTypeEnum 的值,如 'xbox' / 'ds4'。 为 None 时使用当前配置的 back
src/zzz_od/config/game_config.py:276
↓ 3 callers
Method
get_input_feed
input_feed={self.input_name: image_numpy} :param input_name: :param image_numpy: :return:
src/onnxocr/predict_base.py:37
↓ 3 callers
Method
get_input_name
input_name = onnx_session.get_inputs()[0].name :param onnx_session: :return:
src/onnxocr/predict_base.py:26
↓ 3 callers
Method
get_large_map_by_area_full_id
(self, area_full_id: str)
src/zzz_od/application/world_patrol/world_patrol_service.py:183
↓ 3 callers
Method
get_mini_boxes
(self, contour)
src/onnxocr/db_postprocess.py:159
↓ 3 callers
Function
get_mini_map_in_circle
获取圆形区域的小地图 Args: mini_map: 小地图 Returns: MiniMapSnapshot: 裁剪后的小地图
src/zzz_od/application/devtools/large_map_recorder/large_map_recorder_utils.py:32
↓ 3 callers
Method
get_onnx_session
(self, model_dir: str, use_gpu: bool, gpu_id: int = 0)
src/onnxocr/predict_base.py:12
↓ 3 callers
Method
get_output_name
output_name = onnx_session.get_outputs()[0].name :param onnx_session: :return:
src/onnxocr/predict_base.py:15
↓ 3 callers
Method
get_panel_geometry
(self, panel_name: str)
src/one_dragon_qt/overlay/overlay_config.py:489
↓ 3 callers
Method
get_possible_agent_list
获取用于匹配的候选角色列表
src/zzz_od/auto_battle/auto_battle_agent_context.py:336
↓ 3 callers
Method
get_route_pos_before_op_idx
获取路线 在某个指令之前一个的坐标 Args: route: 路线 op_idx: 指定的指令下标 Returns: Point: 坐标
src/zzz_od/application/world_patrol/world_patrol_service.py:415
↓ 3 callers
Method
get_screen_route
获取两个画面之间的路径 :param from_screen: :param to_screen: :return:
src/one_dragon/base/screen/screen_loader.py:411
↓ 3 callers
Function
get_template_mask_path
模板掩码的路径 :param sub_dir: 模板分类 :param template_id: 模板id :return:
src/one_dragon/base/screen/template_info.py:622
↓ 3 callers
Method
get_template_mask_to_display
获取用于开发工具显示的模板掩码 :return:
src/one_dragon/base/screen/template_info.py:314
↓ 3 callers
Method
get_template_raw_by_screen_point
根据配置和画面 扣出模板原图 :return:
src/one_dragon/base/screen/template_info.py:249
↓ 3 callers
Function
get_template_raw_path
模板原图的路径 :param sub_dir: 模板分类 :param template_id: 模板id :return:
src/one_dragon/base/screen/template_info.py:611
↓ 3 callers
Method
get_template_raw_to_display
获取用于开发工具显示的模板原图 :return:
src/one_dragon/base/screen/template_info.py:259
↓ 3 callers
Method
get_unused_code_list
按日期获取未使用的兑换码 :return:
src/zzz_od/application/redemption_code/redemption_code_run_record.py:90
↓ 3 callers
Method
get_world_patrol_route_lists
获取所有路线列表
src/zzz_od/application/world_patrol/world_patrol_service.py:320
↓ 3 callers
Method
get_yml_file_path
(self)
src/one_dragon/base/screen/template_info.py:63
↓ 3 callers
Method
had_been_entry
是否曾经到达过某种类型的格子 :param entry_name: :return:
src/zzz_od/application/hollow_zero/withered_domain/withered_domain_context.py:370
↓ 3 callers
Function
import_module_from_file
通过 spec_from_file_location 导入模块,自动处理中间包。 Args: file_path: .py 文件的绝对路径 module_name: dotted module name module_root: 模块根目录(
src/one_dragon/utils/plugin_module_loader.py:62
↓ 3 callers
Method
init
初始化 MSS 截图方法 Returns: 是否初始化成功
src/one_dragon/base/controller/pc_screenshot/mss_screencapper.py:18
↓ 3 callers
Method
init_auto_battle_box
(self)
src/zzz_od/gui/view/one_dragon/charge_plan_interface.py:174
← previous
next →
401–500 of 5,764, ranked by callers