Skip to content

Commit

Permalink
Improved unsupported feature notices
Browse files Browse the repository at this point in the history
  • Loading branch information
thommcgrath committed Nov 2, 2023
1 parent 51e368f commit 423506c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,15 @@ End

#tag Method, Flags = &h21
Private Sub RunModDiscovery()
Var GameId As String = GameSelectorWindow.Present(Self)
If GameId.IsEmpty Then
Return
End If
If GameId <> Ark.Identifier Then
Self.ShowAlert("Beacon does not support mod discovery for " + Language.GameName(GameId), "This feature may or may not be coming in the future.")
Return
End If

Var Settings As Ark.ModDiscoverySettings = ArkModDiscoveryDialog.Present(Self)
If Settings Is Nil Then
Return
Expand Down Expand Up @@ -671,6 +680,9 @@ End
Select Case Item.Name
Case "RegisterMod"
Var GameId As String = GameSelectorWindow.Present(Self)
If GameId.IsEmpty Then
Return
End If
If GameId <> Ark.Identifier Then
Self.ShowAlert("Beacon does not yet support mods for " + Language.GameName(GameId), "This feature is coming, but isn't ready in this version.")
Return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,9 @@ End
Select Case Item.Name
Case "RegisterMod"
Var GameId As String = GameSelectorWindow.Present(Self)
If GameId.IsEmpty Then
Return
End If
If GameId <> Ark.Identifier Then
Self.ShowAlert("Beacon does not yet support mods for " + Language.GameName(GameId), "This feature is coming, but isn't ready in this version.")
Return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ End
#tag Method, Flags = &h0
Sub NewTemplate()
Var GameId As String = GameSelectorWindow.Present(Self)
If GameId.IsEmpty Then
Return
End If
Self.NewTemplate(GameId)
End Sub
#tag EndMethod
Expand Down

0 comments on commit 423506c

Please sign in to comment.