Browse Source

feat(event): 增加“检查更新”自定义事件

wyc-26 9 tháng trước cách đây
mục cha
commit
7ee3ebb51a
1 tập tin đã thay đổi với 4 bổ sung và 0 xóa
  1. 4 0
      Plain Craft Launcher 2/Modules/ModEvent.vb

+ 4 - 0
Plain Craft Launcher 2/Modules/ModEvent.vb

@@ -167,6 +167,7 @@ Public Class CustomEvent
         修改变量
         写入变量
         加入房间
+        检查更新
     End Enum
 
     ''' <summary>
@@ -320,6 +321,9 @@ Public Class CustomEvent
                         End If
                     End Sub)
 
+                Case EventType.检查更新
+                    UpdateCheckByButton()
+
                 Case Else
                     MyMsgBox("未知的事件类型:" & Type & vbCrLf & "请检查事件类型填写是否正确,或者 PCL 是否为最新版本。", "事件执行失败")
             End Select