preset profile editing
This commit is contained in:
1 parent
2cf9fdfd40
commit
16bd288e70
2 files changed
+11
-2
No files matched your search
@@ -45,8 +45,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
* Returns the index of the 'selected' profile within the array it's in
|
* Returns the index of the 'selected' profile within the array it's in
|
||||||
*/
|
*/
|
||||||
- (NSInteger) getIndexOfSelectedProfile;
|
- (NSInteger) getIndexOfSelectedProfile;
|
||||||
- (void)replaceSelectedProfileWith:(OSCProfile*)newProfile overwriteDefault:(bool)overwriteDefault;
|
|
||||||
|
|
||||||
- (NSMutableArray *) getEncodedProfiles;
|
- (NSMutableArray *) getEncodedProfiles;
|
||||||
// - (NSData* )getSelectedEncodedProfile;
|
// - (NSData* )getSelectedEncodedProfile;
|
||||||
- (void) importEncodedProfiles:(NSMutableArray* )profilesEncoded;
|
- (void) importEncodedProfiles:(NSMutableArray* )profilesEncoded;
|
||||||
@@ -58,6 +56,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
* Sets the profile object with the particular index as the selected profile to be displayed on screen during game streaming
|
* Sets the profile object with the particular index as the selected profile to be displayed on screen during game streaming
|
||||||
*/
|
*/
|
||||||
- (void) setProfileToSelected:(uint32_t)index;
|
- (void) setProfileToSelected:(uint32_t)index;
|
||||||
|
- (void) replaceSelectedProfileWith:(OSCProfile*)newProfile overwriteDefault:(bool)overwriteDefault;
|
||||||
|
- (void) replaceProfile:(OSCProfile*)oldProfile withProfile:(OSCProfile*)newProfile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves a profile object with a particular 'name' and an array of button layers (the CALayer button layers are the objects currently visible on screen) to persistent storage
|
* Saves a profile object with a particular 'name' and an array of button layers (the CALayer button layers are the objects currently visible on screen) to persistent storage
|
||||||
|
|||||||
@@ -834,6 +834,15 @@ typedef NS_ENUM(NSUInteger, DecelerationRateSliderMode) {
|
|||||||
|
|
||||||
/* show pop up notification that lets users choose to save the current OSC layout configuration as a profile they can load when they want. User can also choose to cancel out of this pop up */
|
/* show pop up notification that lets users choose to save the current OSC layout configuration as a profile they can load when they want. User can also choose to cancel out of this pop up */
|
||||||
- (IBAction) saveTapped:(id)sender {
|
- (IBAction) saveTapped:(id)sender {
|
||||||
|
|
||||||
|
/*
|
||||||
|
OSCProfile* targetProfile = [profilesManager getAllProfiles][3];
|
||||||
|
OSCProfile* currentProfile = [profilesManager getSelectedProfile];
|
||||||
|
currentProfile.name = @"RPG游戏示例 / RPG example (ZZZ in Genshin style)";
|
||||||
|
// currentProfile.name = @"Default";
|
||||||
|
[profilesManager replaceProfile:targetProfile withProfile:currentProfile];
|
||||||
|
*/
|
||||||
|
|
||||||
[self clearSickInput];
|
[self clearSickInput];
|
||||||
[OSCProfilesManager setLayoutViewBounds:self.view.bounds];
|
[OSCProfilesManager setLayoutViewBounds:self.view.bounds];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user