-
-
Couldn't load subscription status.
- Fork 25
Initialize modern ui with avalonia #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tolgayilmaz86
wants to merge
11
commits into
RiddleTime:dev
Choose a base branch
from
tolgayilmaz86:avalonia-control-panel
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Initialize modern ui with avalonia #260
tolgayilmaz86
wants to merge
11
commits into
RiddleTime:dev
from
tolgayilmaz86:avalonia-control-panel
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds control panel buttons and ready to be filled
…xecution if necessary
Based on selected game load different Overlay settings view. Refactor game selection and UI components - Refactored `GameSelectionService` to use a singleton pattern with `Lazy<T>`, added `GameChanged` event, and improved game selection methods. - Cleaned up using directives in `MainTopMenuViewModel` and defined an asynchronous command for opening settings. - Updated `ControlButtonsPanelViewModel` to manage favorite icon color and overlay status, with improved command initialization. - Enhanced `OverlaysViewModel` to handle game-specific view models and respond to game changes. - Modified several XAML files to remove `ControlButtonsPanelView` and reorganize UI layout for better structure. - Updated `OverlaysPageView.axaml` to include a new column for global control buttons and adjusted code-behind for initialization.
dont messup with indexes Refactor overlay management and game selection system - Updated `GameSelectionService` to support nullable `GameChanged` events and removed the internal `SelectGame` method for a streamlined approach. - Introduced `OverlayType` enum in `OverlaySelectionService` to define overlay types with display attributes. - Implemented `OverlaySelectionService` as a singleton to manage overlay availability across games. - Enhanced `OverlaySettingViewModelBase` with new properties and event subscriptions for overlay availability. - Updated `OverlaysViewModel` to utilize `OverlayType` for improved type safety and clarity. - Modified XAML files for overlays to include display names and improved UI. - Replaced hardcoded overlay items in `OverlaysPageView` with dynamic data binding for better maintainability. - Added `EnumToIndexConverter` for converting between `OverlayType` enums and indices. - Ensured `OverlaysPageView.axaml.cs` reflects view model changes for control button updates. These changes significantly enhance the maintainability and user experience of the overlay management system.
RiddleTime
reviewed
Apr 16, 2025
|
|
||
| namespace RaceElement.UI.Services; | ||
|
|
||
| public enum SupportedGame |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might help you out a bit
https://github.com/RiddleTime/Race-Element/blob/dev/Race%20Element.Data/Games/Game.cs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

We have RaceElement.UI project which has modern ui prototype