diff options
| author | chai <215380520@qq.com> | 2023-11-02 11:51:31 +0800 |
|---|---|---|
| committer | chai <215380520@qq.com> | 2023-11-02 11:51:31 +0800 |
| commit | 7f493f682503f5186308de7b8f74b5b49233cfe4 (patch) | |
| tree | 8a91e2056bc79788ee4735dce88b8d516ba12beb /GameCode/TFUIBlockoutElement.cs | |
+init
Diffstat (limited to 'GameCode/TFUIBlockoutElement.cs')
| -rw-r--r-- | GameCode/TFUIBlockoutElement.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/GameCode/TFUIBlockoutElement.cs b/GameCode/TFUIBlockoutElement.cs new file mode 100644 index 0000000..a0150ad --- /dev/null +++ b/GameCode/TFUIBlockoutElement.cs @@ -0,0 +1,44 @@ +using System; + +public class TFUIBlockoutElement : ThronefallUIElement +{ + public ThronefallUIElement target; + + private void OnEnable() + { + botNav = target.botNav; + topNav = target.topNav; + rightNav = target.rightNav; + leftNav = target.leftNav; + } + + protected override void OnApply() + { + target.Apply(); + } + + protected override void OnClear() + { + target.Clear(); + } + + protected override void OnFocus() + { + target.Focus(); + } + + protected override void OnFocusAndSelect() + { + target.FocusAndSelect(); + } + + protected override void OnHardStateSet(SelectionState selectionState) + { + throw new NotImplementedException(); + } + + protected override void OnSelect() + { + target.Select(); + } +} |
