Skip to content

Commit

Permalink
Making sure stack sizes and crafting costs can be restored to default…
Browse files Browse the repository at this point in the history
… too.
  • Loading branch information
thommcgrath committed Feb 18, 2019
1 parent 2e83cf4 commit 906ca32
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@ End
End Sub
#tag EndEvent

#tag Event
Sub RestoreToDefault()
Self.Document.RemoveConfigGroup(BeaconConfigs.CraftingCosts.ConfigName)
End Sub
#tag EndEvent

#tag Event
Sub SetupUI()
Self.UpdateList()
Expand Down
12 changes: 12 additions & 0 deletions Project/Views/Config Editors/StackSizesConfigEditor.xojo_window
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,18 @@ End
End Sub
#tag EndEvent

#tag Event
Sub RestoreToDefault()
Self.Document.RemoveConfigGroup(BeaconConfigs.StackSizes.ConfigName)
End Sub
#tag EndEvent

#tag Event
Sub SetupUI()
Self.UpdateList()
End Sub
#tag EndEvent


#tag Method, Flags = &h1
Protected Function Config(ForWriting As Boolean) As BeaconConfigs.StackSizes
Expand Down

0 comments on commit 906ca32

Please sign in to comment.