Skip to content

Commit

Permalink
support menu's capsule
Browse files Browse the repository at this point in the history
  • Loading branch information
turtle-insect committed May 22, 2023
1 parent c5113f1 commit 6d5e815
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ZeldaTOTK/Basic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,11 @@ public uint Arrow
SaveData.Instance().WriteNumber(0x47030, 4, value);
}
}

public bool Capsule
{
get => SaveData.Instance().ReadNumber(0x4374C, 1) == 3;
set => SaveData.Instance().WriteNumber(0x4374C, 1, value ? 3U : 0);
}
}
}
2 changes: 2 additions & 0 deletions ZeldaTOTK/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Basic.Battery, UpdateSourceTrigger=PropertyChanged}"/>
<Label Grid.Row="5" Content="Arrow"/>
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding Basic.Arrow, UpdateSourceTrigger=PropertyChanged}"/>
<Label Grid.Column="3" Content="Capsule"/>
<CheckBox Grid.Column="4" IsChecked="{Binding Basic.Capsule}" VerticalAlignment="Center"/>
</Grid>
</TabItem>
<TabItem Header="Armor">
Expand Down

0 comments on commit 6d5e815

Please sign in to comment.