add touch mode label description
This commit is contained in:
1 parent
0789a2f27e
commit
329c9b7b92
6 files changed
+144
-12
No files matched your search
@@ -268,6 +268,8 @@ BOOL isCustomResolution(CGSize res) {
|
||||
// [self.touchModeSelector setSelectedSegmentIndex:currentSettings.absoluteTouchMode ? 1 : 0];
|
||||
[self.touchModeSelector setSelectedSegmentIndex:currentSettings.touchMode.intValue]; //Load old touchMode setting
|
||||
[self.touchModeSelector addTarget:self action:@selector(touchModeChanged) forControlEvents:UIControlEventValueChanged];
|
||||
[self updateTouchModeLabel];
|
||||
|
||||
[self.statsOverlaySelector setSelectedSegmentIndex:currentSettings.statsOverlay ? 1 : 0];
|
||||
[self.btMouseSelector setSelectedSegmentIndex:currentSettings.btMouseSupport ? 1 : 0];
|
||||
[self.optimizeSettingsSelector setSelectedSegmentIndex:currentSettings.optimizeGames ? 1 : 0];
|
||||
@@ -358,6 +360,22 @@ BOOL isCustomResolution(CGSize res) {
|
||||
}
|
||||
|
||||
|
||||
- (void)updateTouchModeLabel{
|
||||
NSString* labelText;
|
||||
switch([self.touchModeSelector selectedSegmentIndex]){
|
||||
case RELATIVE_TOUCH:
|
||||
labelText = [LocalizationHelper localizedStringForKey:@"Touch Mode - On Screen Game Controller Available"];break;
|
||||
case REGULAR_NATIVE_TOUCH:
|
||||
labelText = [LocalizationHelper localizedStringForKey:@"Touch Mode - With Mouse & Pencil Support"];break;
|
||||
case PURE_NATIVE_TOUCH:
|
||||
labelText = [LocalizationHelper localizedStringForKey:@"Touch Mode - No Mouse & Pencil Support"];break;
|
||||
case ABSOLUTE_TOUCH:
|
||||
labelText = [LocalizationHelper localizedStringForKey:@"Touch Mode - For MacOS Direct Touch"];break;
|
||||
}
|
||||
[self.touchModeLabel setText:labelText];
|
||||
}
|
||||
|
||||
|
||||
- (void)showCustomOSCTip {
|
||||
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[LocalizationHelper localizedStringForKey:@"Rebase in Stream View"]
|
||||
message:[LocalizationHelper localizedStringForKey:@"Tap 4 fingers to change on-screen controller layout in stream view"]
|
||||
@@ -466,6 +484,7 @@ BOOL isCustomResolution(CGSize res) {
|
||||
else{
|
||||
[self.onscreenControllerLabel setText:[LocalizationHelper localizedStringForKey: @"On-Screen Controls"]];
|
||||
}
|
||||
[self updateTouchModeLabel];
|
||||
}
|
||||
|
||||
- (void) updateBitrate {
|
||||
|
||||
Reference in new issue
Block a user