Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Minkelxy/NZM_CMD
/ functions
Functions
121 in github.com/Minkelxy/NZM_CMD
⨍
Functions
121
◇
Types & classes
50
↓ 15 callers
Method
click_humanly
【拟人化鼠标点击】 增加 hold_ms 参数以支持长按点击(如蓄力)
src/human.rs:132
↓ 15 callers
Method
key_click
【拟人化按键点击】 (短按)
src/human.rs:62
↓ 14 callers
Method
move_to_humanly
【高级拟人移动】
src/human.rs:94
↓ 13 callers
Method
key_hold
🔥 【键盘长按】 允许指定按下的毫秒数。如果是 0,则执行一次极短的点击。
src/human.rs:44
↓ 11 callers
Method
key_up
(&mut self)
src/hardware.rs:143
↓ 10 callers
Method
key_down
(&mut self, keycode: u8, modifier: u8)
src/hardware.rs:139
↓ 9 callers
Method
send_raw
(&mut self, event_type: EventType, b: [u8; 6], delay_ms: u16)
src/hardware.rs:62
↓ 5 callers
Method
clamp_camera_position
(&mut self)
src/tower_defense.rs:999
↓ 5 callers
Method
current_scene_mut
(&mut self)
tools/UI_tool/src/main.rs:111
↓ 4 callers
Method
get_camera_bounds
(&self)
src/tower_defense.rs:989
↓ 4 callers
Method
navigate
(&self, target_id: &str)
src/nav.rs:347
↓ 4 callers
Method
process_task_batch
(&mut self, tasks: Vec<ScheduledTask>, force_initial_refresh: bool)
src/tower_defense.rs:555
↓ 3 callers
Function
execute_target
(target: &str, driver: Arc<Mutex<HumanDriver>>, engine: Arc<NavEngine>)
src/main.rs:336
↓ 3 callers
Function
execute_td_internal
(scene_id: &str, driver: Arc<Mutex<HumanDriver>>, engine: Arc<NavEngine>)
src/main.rs:324
↓ 3 callers
Method
get_match_score
(&self, target_id: &str)
src/nav.rs:266
↓ 3 callers
Function
get_today_string
()
src/main.rs:40
↓ 3 callers
Method
mouse_scroll
🔥 【模拟鼠标滚轮】 delta: 120 的倍数,正数为向上滚,负数为向下滚
src/human.rs:70
↓ 3 callers
Method
ocr_area
(&self, rect: [i32; 4])
src/nav.rs:262
↓ 3 callers
Method
perform_key
(&self, key: &str)
src/nav.rs:234
↓ 3 callers
Method
run
(&mut self, terrain_p: &str, strategy_p: &str, trap_p: &str)
src/tower_defense.rs:1061
↓ 3 callers
Method
run_windows_ocr
调用底层 Windows OCR 识别单张图像
src/nav.rs:109
↓ 2 callers
Method
align_camera_to_edge
(&mut self, top: bool)
src/tower_defense.rs:708
↓ 2 callers
Method
are_tasks_in_current_view
(&self, tasks: &[ScheduledTask])
src/tower_defense.rs:394
↓ 2 callers
Function
check_today_executed
(scene_id: &str)
src/main.rs:46
↓ 2 callers
Function
create_driver
( t: DriverType, port: &str, screen_w: u16, screen_h: u16 )
src/hardware.rs:257
↓ 2 callers
Method
current_scene
(&self)
tools/UI_tool/src/main.rs:107
↓ 2 callers
Method
dispatch_tasks_by_region
(&mut self, tasks: Vec<ScheduledTask>)
src/tower_defense.rs:512
↓ 2 callers
Method
execute_wave_phase
(&mut self, wave: i32, is_late: bool)
src/tower_defense.rs:428
↓ 2 callers
Method
get_absolute_map_pixel
( &self, gx: usize, gy: usize, w: usize, h: usize, )
src/tower_defense.rs:962
↓ 2 callers
Method
get_due_tasks
(&mut self)
src/scheduler.rs:85
↓ 2 callers
Method
get_text_from_area
(&self, rect: [i32; 4])
src/nav.rs:147
↓ 2 callers
Method
get_trap_key
(&self, name: &str)
src/tower_defense.rs:1046
↓ 2 callers
Method
import_toml
(&mut self)
tools/UI_tool/src/main.rs:284
↓ 2 callers
Method
mouse_move
(&mut self, dx: i32, dy: i32, wheel: i8)
src/hardware.rs:106
↓ 2 callers
Method
parse_time
(&self, time_str: &str)
src/scheduler.rs:143
↓ 2 callers
Method
recognize_wave_status
(&mut self, rect: [i32; 4], use_tab: bool)
src/tower_defense.rs:325
↓ 2 callers
Method
run_ocr_on_image
(&self, engine: &OcrEngine, dynamic_img: &image::DynamicImage)
tools/UI_tool/src/main.rs:500
↓ 2 callers
Method
scroll_camera_by_pixels
( &mut self, direction: char, pixels: f32, time_resolution_ms: u64, )
src/tower_defense.rs:744
↓ 1 callers
Method
add_new_scene
(&mut self)
tools/UI_tool/src/main.rs:115
↓ 1 callers
Method
build_toml
(&mut self)
tools/UI_tool/src/main.rs:236
↓ 1 callers
Method
calculate_layout
(&self, scenes: &[TomlScene])
tools/UI_tool/src/main.rs:365
↓ 1 callers
Method
calibrate_camera_to_corner
(&mut self, top_left: bool)
src/tower_defense.rs:722
↓ 1 callers
Method
capture_immediate
(&mut self, ctx: &egui::Context)
tools/UI_tool/src/main.rs:208
↓ 1 callers
Method
char_to_keycode
内部辅助:字符转 HID 键码
src/human.rs:32
↓ 1 callers
Method
check_color_anchor
(&self, pos: [i32; 2], expected_hex: &str, tolerance: u8)
src/nav.rs:214
↓ 1 callers
Method
check_text_anchor
(&self, rect: [i32; 4], expected: &str)
src/nav.rs:201
↓ 1 callers
Method
debug_ocr_file
(&self, file_path: &str, expected_contain: &str)
src/nav.rs:206
↓ 1 callers
Method
delete_current_scene
(&mut self)
tools/UI_tool/src/main.rs:135
↓ 1 callers
Method
double_click_humanly
(&mut self, left: bool, right: bool, interval_ms: u64)
src/human.rs:144
↓ 1 callers
Method
draw_grid
(&self, painter: &egui::Painter, rect: Rect)
tools/UI_tool/src/main.rs:721
↓ 1 callers
Method
draw_scene_connections
(&self, painter: &egui::Painter, transform: &dyn Fn(Pos2) -> Pos2)
tools/UI_tool/src/main.rs:741
↓ 1 callers
Method
draw_screenshot_panel
(&mut self, ui: &mut egui::Ui)
tools/UI_tool/src/main.rs:676
↓ 1 callers
Method
draw_visualization_panel
(&mut self, ui: &mut egui::Ui)
tools/UI_tool/src/main.rs:546
↓ 1 callers
Method
duplicate_current_scene
(&mut self)
tools/UI_tool/src/main.rs:147
↓ 1 callers
Function
execute_daily
(driver: Arc<Mutex<HumanDriver>>, engine: Arc<NavEngine>)
src/main.rs:255
↓ 1 callers
Method
execute_prep_logic
(&self)
src/tower_defense.rs:880
↓ 1 callers
Method
execute_single_upgrade
(&mut self, u: &UpgradeEvent)
src/tower_defense.rs:697
↓ 1 callers
Function
execute_td
(target: &str, driver: Arc<Mutex<HumanDriver>>, engine: Arc<NavEngine>)
src/main.rs:304
↓ 1 callers
Method
extract_wave_with_validation
(&self, text: &str, is_same_text: bool)
src/tower_defense.rs:268
↓ 1 callers
Method
find_path
(&self, start: &str, target: &str)
src/nav.rs:399
↓ 1 callers
Method
fuse_ocr_results
(&self, results: &[String])
tools/UI_tool/src/main.rs:527
↓ 1 callers
Method
fuse_ocr_results
(&self, results: &[String])
src/nav.rs:182
↓ 1 callers
Method
get_camera_speed
(&self, direction: char)
src/tower_defense.rs:975
↓ 1 callers
Function
get_hid_code
辅助函数:将字符转换为 HID 键码
src/tower_defense.rs:189
↓ 1 callers
Method
get_next_task_time
(&self)
src/scheduler.rs:155
↓ 1 callers
Method
heartbeat
(&mut self)
src/hardware.rs:79
↓ 1 callers
Method
hid_to_enigo
(&self, hid: u8)
src/hardware.rs:170
↓ 1 callers
Method
identify_current_scene
(&self, hint: Option<&str>)
src/nav.rs:293
↓ 1 callers
Method
list_tasks
(&self)
src/scheduler.rs:61
↓ 1 callers
Method
load_map_terrain
(&mut self, path: &str)
src/tower_defense.rs:835
↓ 1 callers
Method
load_strategy
(&mut self, path: &str)
src/tower_defense.rs:250
↓ 1 callers
Method
load_trap_config
(&mut self, json_path: &str)
src/tower_defense.rs:843
↓ 1 callers
Function
mark_today_executed
(scene_id: &str)
src/main.rs:58
↓ 1 callers
Method
mouse_abs
(&mut self, x: u16, y: u16)
src/hardware.rs:92
↓ 1 callers
Method
mouse_down
(&mut self, left: bool, right: bool)
src/hardware.rs:128
↓ 1 callers
Method
mouse_up
(&mut self)
src/hardware.rs:135
↓ 1 callers
Method
move_camera_to_position
(&mut self, target_x: f32, target_y: f32)
src/tower_defense.rs:777
↓ 1 callers
Method
perform_build_action
( &mut self, last_key: &mut Option<char>, screen_moved: bool, map_x: f32,
src/tower_defense.rs:641
↓ 1 callers
Method
perform_click
(&self, x: i32, y: i32)
src/nav.rs:227
↓ 1 callers
Method
perform_demolish_action
(&mut self, map_x: f32, map_y: f32, uid: usize)
src/tower_defense.rs:606
↓ 1 callers
Method
perform_ocr
(&mut self, rect: Rect)
tools/UI_tool/src/main.rs:454
↓ 1 callers
Method
pick_color
(&self, p: Pos2)
tools/UI_tool/src/main.rs:224
↓ 1 callers
Method
process_slot
(&self, slot: &TaskSlot)
src/daily_routine.rs:78
↓ 1 callers
Function
run_combo_test
(driver: Arc<Mutex<HumanDriver>>)
src/main.rs:445
↓ 1 callers
Function
run_input_test
(driver: Arc<Mutex<HumanDriver>>)
src/main.rs:365
↓ 1 callers
Function
run_ocr_test
(engine: Arc<NavEngine>)
src/main.rs:414
↓ 1 callers
Function
run_screen_test
()
src/main.rs:387
↓ 1 callers
Function
run_scroll_test
(driver: Arc<Mutex<HumanDriver>>)
src/main.rs:431
↓ 1 callers
Method
select_loadout
(&self)
src/tower_defense.rs:928
↓ 1 callers
Function
setup_custom_fonts
========================================== 3. UI 实现 ==========================================
tools/UI_tool/src/main.rs:784
↓ 1 callers
Method
setup_view
(&mut self)
src/tower_defense.rs:853
↓ 1 callers
Method
smart_move_camera
(&mut self, target_map_x: f32, target_map_y: f32)
src/tower_defense.rs:807
↓ 1 callers
Method
type_humanly
【拟人化打字】
src/human.rs:158
↓ 1 callers
Method
validate_wave_transition
(&mut self, detected_wave: i32)
src/tower_defense.rs:376
↓ 1 callers
Method
wait_for_scene
(&self, target_id: &str, timeout_ms: u64)
src/nav.rs:333
Method
align_camera_to_corner
(&mut self, left: bool, top: bool)
src/tower_defense.rs:1006
Method
bezier_cubic
(t: f32, p0: (f32, f32), p1: (f32, f32), p2: (f32, f32), p3: (f32, f32))
src/human.rs:181
Method
default
()
tools/UI_tool/src/main.rs:63
Method
default
()
src/tower_defense.rs:61
Function
default_camera_speed_down
()
src/tower_defense.rs:115
next →
1–100 of 121, ranked by callers