mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-02 16:27:09 +02:00
UI - Avalonia Part 2 (#3351)
* add settings windows and children views * Expose hotkeys configuration on the UI * Remove double spacing from locale JSON * simplify button assigner * add cemuhook buttons and title to locale * move common button assigner to own class * cancel button assigner when window is closed * remove unused setting * address review. fix controller profile not loading default when switching devices * fix updater file name * Input cleanup (#37) * addressed review * add device type to controller device checks * change accessibility modifier of public classes to internal * Update Ryujinx.Ava/Ui/ViewModels/ControllerSettingsViewModel.cs Co-authored-by: gdkchan <gab.dark.100@gmail.com> * Update de_DE.json * Update de_DE.json * Update tr_TR.json Translated newly added lines * Update it_IT.json * fix rebase * update avalonia * fix wrong key used for button text * Align settings window elements * Tabs to spaces * Update brazilian portuguese translation * Minor improvement on brazilian portuguese translation * fix turkish translation * remove unused text * change view related classes to public * unsubscribe from deferred event if dialog is closed * Load the default language before loading any other when switching languages * Make controller settings more compact * increase default width of settings window, reduce profile buttons width Co-authored-by: gdk <gab.dark.100@gmail.com> Co-authored-by: MutantAura <44103205+MutantAura@users.noreply.github.com> Co-authored-by: Niwu34 <67392333+Niwu34@users.noreply.github.com> Co-authored-by: aegiff <99728970+aegiff@users.noreply.github.com> Co-authored-by: Antonio Brugnolo <36473846+AntoSkate@users.noreply.github.com>
This commit is contained in:
parent
f0817388d3
commit
a76e1f6145
66 changed files with 4631 additions and 145 deletions
6
Ryujinx.Ava/Ui/Models/ControllerModel.cs
Normal file
6
Ryujinx.Ava/Ui/Models/ControllerModel.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
using Ryujinx.Common.Configuration.Hid;
|
||||
|
||||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
internal record ControllerModel(ControllerType Type, string Name);
|
||||
}
|
9
Ryujinx.Ava/Ui/Models/DeviceType.cs
Normal file
9
Ryujinx.Ava/Ui/Models/DeviceType.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public enum DeviceType
|
||||
{
|
||||
None,
|
||||
Keyboard,
|
||||
Controller
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ using System.Collections;
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public class FileSizeSortComparer : IComparer
|
||||
internal class FileSizeSortComparer : IComparer
|
||||
{
|
||||
public int Compare(object x, object y)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models.Generic
|
||||
{
|
||||
public class FileSizeSortComparer : IComparer<ApplicationData>
|
||||
internal class FileSizeSortComparer : IComparer<ApplicationData>
|
||||
{
|
||||
public FileSizeSortComparer() { }
|
||||
public FileSizeSortComparer(bool isAscending) { _order = isAscending ? 1 : -1; }
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models.Generic
|
||||
{
|
||||
public class LastPlayedSortComparer : IComparer<ApplicationData>
|
||||
internal class LastPlayedSortComparer : IComparer<ApplicationData>
|
||||
{
|
||||
public LastPlayedSortComparer() { }
|
||||
public LastPlayedSortComparer(bool isAscending) { IsAscending = isAscending; }
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models.Generic
|
||||
{
|
||||
public class TimePlayedSortComparer : IComparer<ApplicationData>
|
||||
internal class TimePlayedSortComparer : IComparer<ApplicationData>
|
||||
{
|
||||
public TimePlayedSortComparer() { }
|
||||
public TimePlayedSortComparer(bool isAscending) { _order = isAscending ? 1 : -1; }
|
||||
|
|
|
@ -7,7 +7,7 @@ using System;
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public class InputConfiguration<Key, Stick> : BaseModel
|
||||
internal class InputConfiguration<Key, Stick> : BaseModel
|
||||
{
|
||||
private float _deadzoneRight;
|
||||
private float _triggerThreshold;
|
||||
|
|
|
@ -4,7 +4,7 @@ using System.Collections;
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public class LastPlayedSortComparer : IComparer
|
||||
internal class LastPlayedSortComparer : IComparer
|
||||
{
|
||||
public int Compare(object x, object y)
|
||||
{
|
||||
|
|
6
Ryujinx.Ava/Ui/Models/PlayerModel.cs
Normal file
6
Ryujinx.Ava/Ui/Models/PlayerModel.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
using Ryujinx.Common.Configuration.Hid;
|
||||
|
||||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public record PlayerModel(PlayerIndex Id, string Name);
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public class ProfileImageModel
|
||||
internal class ProfileImageModel
|
||||
{
|
||||
public ProfileImageModel(string name, byte[] data)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public class StatusUpdatedEventArgs : EventArgs
|
||||
internal class StatusUpdatedEventArgs : EventArgs
|
||||
{
|
||||
public bool VSyncEnabled { get; }
|
||||
public float Volume { get; }
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections;
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public class TimePlayedSortComparer : IComparer
|
||||
internal class TimePlayedSortComparer : IComparer
|
||||
{
|
||||
public int Compare(object x, object y)
|
||||
{
|
||||
|
|
16
Ryujinx.Ava/Ui/Models/TimeZone.cs
Normal file
16
Ryujinx.Ava/Ui/Models/TimeZone.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
internal class TimeZone
|
||||
{
|
||||
public TimeZone(string utcDifference, string location, string abbreviation)
|
||||
{
|
||||
UtcDifference = utcDifference;
|
||||
Location = location;
|
||||
Abbreviation = abbreviation;
|
||||
}
|
||||
|
||||
public string UtcDifference { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Abbreviation { get; set; }
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ using Ryujinx.Ava.Common.Locale;
|
|||
|
||||
namespace Ryujinx.Ava.Ui.Models
|
||||
{
|
||||
public class TitleUpdateModel
|
||||
internal class TitleUpdateModel
|
||||
{
|
||||
public bool IsEnabled { get; set; }
|
||||
public bool IsNoUpdate { get; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue