diff --git a/VoidLink/Localization/Localizable.xcstrings b/VoidLink/Localization/Localizable.xcstrings index 8b600c12..bda9f144 100644 --- a/VoidLink/Localization/Localizable.xcstrings +++ b/VoidLink/Localization/Localizable.xcstrings @@ -5920,6 +5920,35 @@ } } }, + "pencilTickStackTip" : { + "extractionState" : "manual", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Pencil Tick allows high frequency pencil touch events passed through to the host." + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "笔触 Tick 允许将高密度笔触事件透传至PC端。" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "筆觸 Tick 允許將高頻率筆觸事件透傳至 PC 端。" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "筆觸 Tick 允許將高頻率筆觸事件透傳至 PC 端。" + } + } + } + }, "Performance" : { "extractionState" : "manual", "localizations" : { @@ -6122,6 +6151,29 @@ } } }, + "Please enable pressure curve in settings menu" : { + "extractionState" : "manual", + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "请在设置菜单中开启笔压曲线" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "請在設定選單中開啟筆壓曲線" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "請在設定選單中開啟筆壓曲線" + } + } + } + }, "Pofiles imported" : { "extractionState" : "manual", "localizations" : { diff --git a/VoidLink/ViewControllers/SettingsViewController.m b/VoidLink/ViewControllers/SettingsViewController.m index d95faef5..c2dc77c0 100644 --- a/VoidLink/ViewControllers/SettingsViewController.m +++ b/VoidLink/ViewControllers/SettingsViewController.m @@ -1529,9 +1529,13 @@ BOOL isCustomResolution(int resolutionSelected) { tipText = [LocalizationHelper localizedStringForKey:@"hoverModeStackTip"]; showOnlineDocAction = false; } - + if([sender.superview.accessibilityIdentifier isEqualToString: @"pencilTickStack"]){ + tipText = [LocalizationHelper localizedStringForKey:@"pencilTickStackTip"]; + showOnlineDocAction = true; + onlineDocLink = [LocalizationHelper localizedStringForKey:@"PencilProPackURL"]; + } + UIAlertController *tipsAlertController = [UIAlertController alertControllerWithTitle: [LocalizationHelper localizedStringForKey:@"Tips"] message:tipText preferredStyle:UIAlertControllerStyleAlert]; - /* NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init]; diff --git a/VoidLink/ViewControllers/StreamFrameViewController.m b/VoidLink/ViewControllers/StreamFrameViewController.m index 5f9160d5..a0ef7248 100644 --- a/VoidLink/ViewControllers/StreamFrameViewController.m +++ b/VoidLink/ViewControllers/StreamFrameViewController.m @@ -1665,9 +1665,22 @@ } - (void)presentPressureCurveVC{ - PressureCurveViewController* pressureCurveVC = [[PressureCurveViewController alloc] init]; - pressureCurveVC.modalPresentationStyle = UIModalPresentationOverFullScreen; - [self presentViewController:pressureCurveVC animated:YES completion:nil]; + if(_oscProfile.pressureCurveEnabled){ + PressureCurveViewController* pressureCurveVC = [[PressureCurveViewController alloc] init]; + pressureCurveVC.modalPresentationStyle = UIModalPresentationOverFullScreen; + [self presentViewController:pressureCurveVC animated:YES completion:nil]; + } + else{ + AlertControllerUtil.autoCompletion = true; + [AlertControllerUtil showAlertIn:self + title:@"" + message:[LocalizationHelper localizedStringForKey:@"Please enable pressure curve in settings menu"] + withCancel:NO + buttonTitle:@"" + countdown:2 + action:^{} + completion:^{}]; + } } #if !TARGET_OS_TV