MCPcopy Create free account

hub / github.com/runhey/OnmyojiAutoScript / functions

Functions1,281 in github.com/runhey/OnmyojiAutoScript

Methodnotifier
(self)
module/config/config.py:358
Functionnotify_test
(setting: str, title: str, content: str)
module/server/home_router.py:27
Methodocr_item
这个函数区别于ocr_single_line,这个函数不对图片进行裁剪,是什么就是什么的 :param image: :return:
module/ocr/base_ocr.py:119
Functionon_connect
(client, userdata, flags, rc)
module/team_flow/mqtt_test.py:17
Methodon_connect
(client, userdata, flags, rc)
module/team_flow/mqtt.py:33
Methodon_first_notice
(self, player: str, data: dict)
module/team_flow/host.py:48
Methodon_last_will
(self, player: str, data: dict)
module/team_flow/host.py:57
Functionon_message
(client, userdata, msg)
module/team_flow/mqtt.py:18
Functionon_message
(client, userdata, msg)
module/team_flow/mqtt_test.py:32
Functionon_message
(client, userdata, msg)
module/team_flow/host.py:17
Methodon_strategy
(self, player: str, data: dict)
module/team_flow/host.py:71
Methodon_task_start
(self, player: str, data: dict)
module/team_flow/host.py:68
Methodoptions
(self)
module/logger.py:120
Methodorder_cards
(self)
tasks/KekkaiUtilize/script_task.py:323
Methodorder_cards
(self)
tasks/KekkaiActivation/script_task.py:78
Methodorder_medal
(self)
tasks/RealmRaid/script_task.py:307
Methodorder_targets
(self)
tasks/KekkaiUtilize/script_task.py:307
Methodorder_targets
(self)
tasks/KekkaiActivation/script_task.py:84
Methodpaint
(self, painter: QPainter)
module/gui/register_type/paint_image.py:21
FunctionparseArgument
* 解析出某个group的参数组, * @param {Object} definitions * @param {string} group * @returns {Array} -
module/gui/qml/Component/ModelParse.js:61
FunctionparseGroup
* 解析出group的数组, * @param {Object} data.properties * @returns {Array} 类似这样:[Device,Error,Optimization]
module/gui/qml/Component/ModelParse.js:13
FunctionparseGroups
* 解析出group一一对应的的数组, * @param {Object} data.properties * @returns {Object} 类似这样:{"Device":"device", "Error":"error", "Optimization":"optimization"}
module/gui/qml/Component/ModelParse.js:31
Methodparse_interval
(cls, value)
tasks/Component/config_scheduler.py:30
Methodparse_limit_time
(cls, value)
tasks/Component/BaseActivity/config_activity.py:33
Methodparse_next_run
(cls, value)
tasks/Component/config_scheduler.py:21
Methodpartition
(self)
tasks/RealmRaid/script_task.py:329
Functionpast_time
Args: string (str): Such as 14:59. Returns: datetime.datetime: Time with given hour, minute in the past.
module/base/timer.py:38
Methodpip
(self)
deploy/pip.py:23
Methodpotential_roadblocks
Returns: SelectedGrids:
module/map/map_grids.py:333
Methodprocess_folder
(self)
deploy/process.py:10
Methodproperties_groups
(sch)
module/config/config_model.py:284
Methodpython
(self)
deploy/pip.py:12
FunctionqCleanupResources
()
module/gui/res_rcc.py:42916
FunctionqCleanupResources
()
module/gui/qml_rc.py:3631
FunctionqCleanupResources
()
module/gui/qml_rcc.py:1468
FunctionqCleanupResources
()
module/gui/res_rc.py:42916
Functionrandom_rectangle_vector
Place a vector in a box randomly. Args: vector: (x, y) box: (upper_left_x, upper_left_y, bottom_right_x, bottom_right_y).
module/base/utils.py:46
Methodreached_and_reset
Returns: bool:
module/base/timer.py:138
Methodread_file
读取json文件,如果不存在则创建 :param file: 包含路径 :return:
module/gui/register_type/rule_file.py:21
Methodread_file
Read and update config file. Args: config_name (str): ./config/{file}.json is_template (bool): Retu
module/config/config_updater.py:37
Functionred_overlay_transparency
Calculate the transparency of red overlay. Args: color1: origin color. color2: changed color. red(int): red color 0-255.
module/base/utils.py:840
Methodremove
remove :param config: :return:
module/gui/context/process_manager.py:127
Methodrequirements_file
(self)
deploy/pip.py:16
Methodreset_game_max
(cls, value)
tasks/Component/BaseActivity/config_activity.py:52
Functionresize
Resize image like pillow image.resize(), but implement in opencv. Pillow uses PIL.Image.NEAREST by default. Args: image (np.ndar
module/base/utils.py:561
Methodresolution
(self)
module/device/method/scrcpy/control.py:44
Methodrestart_all
restart_all :return:
module/gui/context/process_manager.py:184
Methodresult
(self)
dev_tools/assets_extract.py:59
Methodresult
(self)
dev_tools/assets_extract.py:90
Methodresult
(self)
dev_tools/assets_extract.py:118
Methodresult
(self)
dev_tools/assets_extract.py:147
Methodresult
(self)
dev_tools/assets_extract.py:175
Methodresult
(self)
dev_tools/assets_extract.py:212
Functionretry
(func)
module/device/connection.py:28
Functionretry
(func)
module/device/method/adb.py:18
Functionretry
(func)
module/device/method/uiautomator_2.py:21
Functionretry
(func)
module/device/method/droidcast.py:22
Functionretry
(func)
module/device/method/minitouch.py:283
Functionretry
(func)
module/device/method/scrcpy/scrcpy.py:17
Functionretry_wrapper
Args: self (Adb):
module/device/connection.py:30
Functionretry_wrapper
Args: self (Adb):
module/device/method/adb.py:20
Functionretry_wrapper
Args: self (Uiautomator2):
module/device/method/uiautomator_2.py:23
Functionretry_wrapper
Args: self (Adb):
module/device/method/droidcast.py:24
Functionretry_wrapper
Args: self (Minitouch):
module/device/method/minitouch.py:285
Functionretry_wrapper
Args: self (Minitouch):
module/device/method/scrcpy/scrcpy.py:19
Methodreverse_server
Setup a server on Alas, access it from emulator. This will bypass adb shell and be faster.
module/device/connection.py:304
Functionrgb2gray
Args: image (np.ndarray): Shape (height, width, channel) Returns: np.ndarray: Shape (height, width)
module/base/utils.py:599
Functionrgb2hsv
Convert RGB color space to HSV color space. HSV is Hue Saturation Value. Args: image (np.ndarray): Shape (height, width, channel
module/base/utils.py:614
Functionrgb2luma
Convert RGB to the Y channel (Luminance) in YUV color space. Args: image (np.ndarray): Shape (height, width, channel) Returns:
module/base/utils.py:644
Functionrgb2yuv
Convert RGB to YUV color space. Args: image (np.ndarray): Shape (height, width, channel) Returns: np.ndarray: Shape (he
module/base/utils.py:630
Methodroadblocks
Returns: SelectedGrids:
module/map/map_grids.py:322
Methodroom_type
只需要在队长进入的时候判断一次就可以了,任务后面之间使用 :return:
tasks/Component/GeneralInvite/general_invite.py:196
Methodroot
Returns: str: Root installation folder of emulator. Raises: FileNotFoundError: If emulator not installed.
deploy/emulator.py:35
Methodroot
(self)
module/device/emulator.py:69
Methodroot_filepath
(self)
deploy/config.py:118
Methodrotate_device
Rotate device
module/device/method/scrcpy/control.py:202
Methodrotation_check
()
tasks/GameUi/game_ui.py:102
Functionrule
(title="", *, characters="─", style="rule.line", end="\n", align="center")
module/logger.py:312
Methodrun
run :return:
module/gui/process/script_process.py:37
Methodrun
(self)
module/daemon/benchmark.py:200
Methodrun
(self)
tasks/WeeklyTrifles/script_task.py:17
Methodrun
(self)
tasks/DemonEncounter/script_task.py:32
Methodrun
(self)
tasks/Component/BaseActivity/base_activity.py:9
Methodrun
(self)
tasks/EvoZone/script_task.py:20
Methodrun
(self)
tasks/GotoMain/script_task.py:12
Methodrun
主要就是登录的模块 :return:
tasks/Restart/script_task.py:19
Methodrun
(self)
tasks/DailyTrifles/script_task.py:22
Methodrun
(self)
tasks/FallenSun/script_task.py:21
Methodrun_auto
()
tasks/KekkaiActivation/script_task.py:208
Methodrun_guild_wish
(self)
tasks/DailyTrifles/script_task.py:41
Functionrun_once
Run a function only once, no matter how many times it has been called. Examples: @run_once def my_function(foo, bar):
module/base/decorator.py:174
Methodrun_true_orochi
(self)
tasks/TrueOrochi/script_task.py:173
Methodsave_screenshot
Save a screenshot. Use millisecond timestamp as file name. Args: genre (str, optional): Screenshot type. interval (in
module/device/screenshot.py:109
Methodsave_target_image
保存目标图片 :param file: 保存的文件名 :param roi: 截图的范围 文本如"0,0,100,100" :return:
module/gui/register_type/paint_image.py:55
Methodscreenshot_adb
(self)
module/device/method/adb.py:153
Methodscreenshot_deque
(self)
module/device/screenshot.py:105
Methodscreenshot_droidcast
(self)
module/device/method/droidcast.py:178
Methodscreenshot_droidcast_raw
(self)
module/device/method/droidcast.py:198
Methodscreenshot_handle_num
截屏的句柄其实并不是根句柄 :return: 出错返回None
module/device/handle.py:326
Methodscreenshot_last_save_time_reset
(self, genre)
module/device/screenshot.py:141
← previousnext →1,101–1,200 of 1,281, ranked by callers