preset advanced widget template profile

This commit is contained in:
TrueZhuangjia authored and TrueZhuanjia committed 2025-04-03 00:13:52 +08:00
1 parent a03a50d238
commit f260d75372
6 files changed
+64 -10

No files matched your search

+1
View File
@@ -10,6 +10,7 @@
#import "OnScreenButtonState.h"
NS_ASSUME_NONNULL_BEGIN
#define DEFAULT_TEMPLATE_NAME @"高级控件模板(Advanced widget templates)"
/**
This object contains information pertaining to any of the user created, custom on screen controller layout configurations, or 'profiles.' The object contains a 'name' property for easy reference, as well as an 'isSelected' property which is used to determine whether this particular custom OSC layout should show on screen during game stream view. Only one 'OSCProfile' is set to 'isSelected' at any given time. The object also contains an array of 'OnScreenButtonStates' which provides information that allows us to move and hide/unhide each of the 19 on screen buttons. Note that the 'buttonStates' property should contain an NSMutableArray of ENCODED 'OnScreenButtonState' objects. This allows us to save the 'OSCProfile' object to NSUserDefaults.