Skip to content

Release v0.2.0 - UI Improvements#4

Merged
lyyQwQ merged 10 commits intomasterfrom
add-ui
Aug 8, 2025
Merged

Release v0.2.0 - UI Improvements#4
lyyQwQ merged 10 commits intomasterfrom
add-ui

Conversation

@lyyQwQ
Copy link
Owner

@lyyQwQ lyyQwQ commented Aug 8, 2025

Summary

  • ✨ Added in-game UI for button configuration
  • 🎮 Implemented dropdown selection for button bindings
  • 🐛 Fixed GitHub Actions build issues

Changes

This PR adds a full user interface for configuring button mappings directly in-game, eliminating the need to manually edit configuration files.

Features

  • Settings UI: Added mod settings page accessible from the Mods menu
  • Dropdown Controls: Easy button selection with dropdown menus showing available buttons
  • Dynamic Updates: Real-time configuration updates without game restart
  • Visual Feedback: Clear indication of current bindings with add/delete capabilities

Technical Improvements

  • Fixed nullable value type comparisons for cross-platform compatibility
  • Resolved GitHub Actions build failures on Linux/Ubuntu
  • Added proper dependency references for CI/CD pipeline
  • Improved code structure with BSML UI framework integration

Test Plan

  • Test in-game UI navigation
  • Verify button binding changes are saved correctly
  • Confirm pause and restart functionality still works
  • Validate GitHub Actions build succeeds

🤖 Generated with Claude Code

lyyQwQ and others added 10 commits May 24, 2025 00:24
- 移除 ButtonSelectorModal,改用下拉框方式选择按钮
- 更新 BindingTableCell 支持下拉框交互
- 调整 ModSettingsController 的绑定逻辑
- 更新 .gitignore 排除开发相关目录
- Fixed manifest.json path in GitHub Actions workflow (was missing one level of KeyRemapper directory)
- Cleaned up XML formatting in KeyRemapper.csproj file
- The build should now succeed on GitHub Actions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Added explicit mscorlib reference to fix System.Nullable.GetValueOrDefault missing error
- Added HintPath for System and System.Core references
- Fixed manifest.json path in GitHub Actions workflow (removed duplicate KeyRemapper directory)

These changes should resolve both the compilation errors and path issues in CI/CD pipeline.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Changed nullable value type comparisons to use explicit HasValue and Value properties
- Avoids implicit GetValueOrDefault() calls that fail in Linux/Mono build environment
- This issue has been present since the GetAvailableButtons method was introduced
- Local Windows builds work fine but GitHub Actions Ubuntu builds were failing

The fix changes:
- `currentButton == null` to `\!currentButton.HasValue`
- `b \!= currentButton` to `b \!= currentButton.Value`
- `currentButton == b` to `currentButton.HasValue && currentButton.Value == b`

This should finally resolve the CS0656 compilation error in CI/CD pipeline.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Preparing for v0.2.0 release with UI improvements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@lyyQwQ lyyQwQ merged commit 813ee39 into master Aug 8, 2025
2 checks passed
@lyyQwQ lyyQwQ deleted the add-ui branch August 8, 2025 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant