Skip to content

Commit

Permalink
修复帧栏工具回调报错
Browse files Browse the repository at this point in the history
  • Loading branch information
AniBullet committed Sep 10, 2022
1 parent 9e92612 commit b0e18f7
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
27 changes: 15 additions & 12 deletions _BsKeyTools/Scripts/BulletScripts/BsTrackBarTools.ms
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: Bullet.S
* @Date: 2021-05-08 17:18:12
* @LastEditors: Bullet.S
* @LastEditTime: 2022-09-09 18:26:51
* @LastEditTime: 2022-09-10 18:01:30
* @Email: animator.bullet@foxmail.com
*/

Expand All @@ -12,8 +12,6 @@ if form != undefined then (form.close();form = undefined)
try (cui.UnRegisterDialogBar rolBsTrackBarTools) catch()
try (destroyDialog rolBsTrackBarTools) catch()
try (destroydialog rolBsBackupManager) catch()
try (callbacks.removeScripts #filePostOpen id:#UpdateBsBackup) catch ()
try (callbacks.removeScripts #filePostSave id:#UpdateBsBackup) catch ()

global rolBsTrackBarTools
global rolBsBackupManager
Expand Down Expand Up @@ -524,13 +522,13 @@ rollout rolBsTrackBarTools "BsTrackBarTools_v1.0"
)
if numFiles == 0 then
(
fnButtonStyle btnFilesCount ("暂无备份")
fnButtonStyle rolBsTrackBarTools.btnFilesCount ("暂无备份")
)
else
(
fnButtonStyle btnFilesCount ("当前版本" + numFiles as string)
fnButtonStyle rolBsTrackBarTools.btnFilesCount ("当前版本" + numFiles as string)
)
btnFilesCount.FlatAppearance.BorderColor = mcolor.white
rolBsTrackBarTools.btnFilesCount.FlatAppearance.BorderColor = mcolor.white
)

fn fnQuickSave =
Expand Down Expand Up @@ -608,6 +606,10 @@ rollout rolBsTrackBarTools "BsTrackBarTools_v1.0"
stLoadConfigAll.fnLoadConfigTrackBarTools()
stSetConfigAll.fnSetConfigTrackBarTools()
fnLoadDockPos rolBsTrackBarTools widthBsSize heightBsSize
callbacks.removeScripts #filePostOpen id:#UpdateBsBackup
callbacks.removeScripts #filePostSave id:#UpdateBsBackup
callbacks.addScript #filePostOpen "rolBsTrackBarTools.fnFilesCount()" id:#UpdateBsBackup
callbacks.addScript #filePostSave "rolBsTrackBarTools.fnFilesCount()" id:#UpdateBsBackup
callbacks.removeScripts id:#SaveButtonCallback
callbacks.addScript #filePostOpenProcess "rolBsTrackBarTools.clock.ticks = 0" id:#SaveButtonCallback

Expand Down Expand Up @@ -661,6 +663,8 @@ rollout rolBsTrackBarTools "BsTrackBarTools_v1.0"
iniPosAutoBackup = (GetDialogPos rolBsTrackBarTools)
-- iniDockPos = ((cui.getDockState rolBsTrackBarTools) as string)
-- print iniDockPos
callbacks.removeScripts #filePostOpen id:#UpdateBsBackup
callbacks.removeScripts #filePostSave id:#UpdateBsBackup
stSetConfigAll.fnSetConfigTrackBarTools()
callbacks.removeScripts id:#SaveButtonCallback
callbacks.removeScripts id:#SaveButtonResetCallback
Expand Down Expand Up @@ -1095,6 +1099,8 @@ rollout rolBsBackupManager "" width:355 height:260

on rolBsBackupManager open do
(
callbacks.removeScripts #filePostOpen id:#BsBackupManager
callbacks.removeScripts #filePostSave id:#BsBackupManager
callbacks.addScript #filePostOpen "rolBsBackupManager.fnRefreshBackupAll()" id:#BsBackupManager
callbacks.addScript #filePostSave "rolBsBackupManager.fnRefreshBackupAll()" id:#BsBackupManager
btnRefreshFolder.images = #("UVWUnwrapModes_16i.bmp","UVWUnwrapModes_16i.bmp",28,3,3,4,4,false,false)
Expand All @@ -1107,8 +1113,8 @@ rollout rolBsBackupManager "" width:355 height:260
on rolBsBackupManager close do
(
iniPosBackupManager = (GetDialogPos rolBsBackupManager)
try (callbacks.removeScripts #filePostOpen id:#BsBackupManager) catch ()
try (callbacks.removeScripts #filePostSave id:#BsBackupManager) catch ()
callbacks.removeScripts #filePostOpen id:#BsBackupManager
callbacks.removeScripts #filePostSave id:#BsBackupManager
)

on btnClose pressed do
Expand Down Expand Up @@ -1214,7 +1220,4 @@ rollout rolBsBackupManager "" width:355 height:260
(
popupMenu menuBsFolder pos:mouse.screenpos
)
)

callbacks.addScript #filePostOpen "rolBsTrackBarTools.fnFilesCount()" id:#UpdateBsBackup
callbacks.addScript #filePostSave "rolBsTrackBarTools.fnFilesCount()" id:#UpdateBsBackup
)
4 changes: 2 additions & 2 deletions _BsKeyTools/Scripts/BulletScripts/BulletKeyTools.ms
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: Bullet.S
* @Date: 2019-09-28 11:48:53
* @LastEditors: Bullet.S
* @LastEditTime: 2022-09-10 15:19:24
* @LastEditTime: 2022-09-10 17:57:18
* @Email: animator.bullet@foxmail.com
*/

Expand All @@ -18,7 +18,7 @@ try (callbacks.removeScripts #timeunitsChange id:#BsUpdateFps) catch ()
try (callbacks.removeScripts #filePostOpen id:#BsUpdatePlaySpeed) catch ()
try (callbacks.removeScripts #timeunitsChange id:#BsUpdatePlaySpeed) catch ()

global curVerBsKeyTools = "0.9.9.2"
global curVerBsKeyTools = "0.9.9.3"
global verUrlBsKeyTools = "https://gitee.com/acebullet/BsKeyTools/raw/main/_BsKeyTools/version.dat"
global oldUrlBskeyTools = "https://gitee.com/acebullet/BsKeyTools/raw/main/_BsKeyTools/_BsKeyTools%EF%BC%88%E8%A3%85%E5%AE%8C%E9%87%8D%E5%90%AFMAX,%E8%AF%AF%E6%9D%80%E8%AF%B7%E4%BF%A1%E4%BB%BB%EF%BC%89.exe"
global oldFileBsKeyTools = (getdir #temp) + "\\_BsKeyTools_Classic.exe"
Expand Down
2 changes: 1 addition & 1 deletion _BsKeyTools/SetupHome_BsKeyTools.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

; 安装程序初始定义常量
!define PRODUCT_NAME "BsKeyTools"
!define PRODUCT_VERSION "_v0.9.9.2"
!define PRODUCT_VERSION "_v0.9.9.3"
!define PRODUCT_PUBLISHER "Bullet.S"
!define PRODUCT_WEB_SITE "anibullet.com"
;!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
Expand Down
2 changes: 1 addition & 1 deletion _BsKeyTools/Setup_BsKeyTools.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

; 安装程序初始定义常量
!define PRODUCT_NAME "BsKeyTools"
!define PRODUCT_VERSION "_v0.9.9.2"
!define PRODUCT_VERSION "_v0.9.9.3"
!define PRODUCT_PUBLISHER "Bullet.S"
!define PRODUCT_WEB_SITE "anibullet.com"
;!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
Expand Down
Binary file modified _BsKeyTools/_BsKeyTools.exe
Binary file not shown.
Binary file modified _BsKeyTools/_BsKeyTools(装完重启MAX,误杀请信任).exe
Binary file not shown.
2 changes: 1 addition & 1 deletion _BsKeyTools/version.dat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.9.2
0.9.9.3

0 comments on commit b0e18f7

Please sign in to comment.