应该是找到问题了,把这段代码中的局部变量改成全局变量,问题解决了- function OnPluginInstall ()
- --Note("OnPluginInstall")
-
- WindowCreate (hp_win, 0, 0, hp_win_width, hp_win_height, miniwin.pos_bottom_left, 0, 0x000010)
- local hp_win_info = movewindow.install (hp_win, miniwin.pos_bottom_left, miniwin.create_absolute_location, true)
- WindowCreate(hp_win, hp_win_info.window_left, hp_win_info.window_top, hp_win_width, hp_win_height, hp_win_info.window_mode, hp_win_info.window_flags, 0x000010)
- movewindow.add_drag_handler (hp_win, 0, 0, hp_win_width, 30)
- WindowFont (hp_win, FONT_NAME, "Arial", FONT_SIZE)
-
- WindowCreate (skill_win, 0, 0, skill_win_width, skill_win_height, miniwin.pos_top_left, 0, 0x000010)
- local skill_win_info = movewindow.install (skill_win, miniwin.pos_top_left, miniwin.create_absolute_location, true)
- WindowCreate(skill_win, skill_win_info.window_left, skill_win_info.window_top, hp_win_width, hp_win_height, skill_win_info.window_mode, skill_win_info.window_flags, 0x000010)
- movewindow.add_drag_handler (skill_win, 0, 0, skill_win_width, 30)
- WindowFont (skill_win, FONT_NAME, "Arial", FONT_SIZE)
-
- end
复制代码
|