mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
chore: 反转右键效果时更新 tooltip 悬浮提示
This commit is contained in:
@@ -225,6 +225,7 @@
|
||||
<system:String x:Key="LabelSequenceTip">The label sequence can be dragged</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSaved">This option is effective once</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNull">This option only takes effect once when right-clicked</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNullInvert">This option only skips once when right-clicked</system:String>
|
||||
<system:String x:Key="NoAutoNavigation">This feature does not automatically navigate to the stage</system:String>
|
||||
<system:String x:Key="StartupUpdateCheck">Startup Update Check</system:String>
|
||||
<system:String x:Key="UpdateAutoCheck">Scheduled Update Check</system:String>
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
<system:String x:Key="LabelSequenceTip">タブの順番はドラッグ可能です</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSaved">このオプションは一度有効です</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNull">このオプションは、右クリックで選択した時のみ一度だけ有効です</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNullInvert">このオプションは、右クリックで選択した時のみ一度だけスキップします</system:String>
|
||||
<system:String x:Key="NoAutoNavigation">このオプションは、対応するステージに自動的に移動するものではありません</system:String>
|
||||
<system:String x:Key="StartupUpdateCheck">起動時の更新チェック</system:String>
|
||||
<system:String x:Key="UpdateAutoCheck">定期的な更新チェック</system:String>
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
<system:String x:Key="LabelSequenceTip">드래그하여 작업 순서를 변경할 수 있습니다</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSaved">이 옵션은 한 번만 유효합니다</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNull">이 옵션은 우클릭 시 한 번만 적용됩니다</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNullInvert">이 옵션은 우클릭 시 한 번만 건너뜁니다</system:String>
|
||||
<system:String x:Key="NoAutoNavigation">해당 스테이지로 자동 이동하지 않습니다</system:String>
|
||||
<system:String x:Key="StartupUpdateCheck">시작 시 업데이트 확인</system:String>
|
||||
<system:String x:Key="UpdateAutoCheck">일정 시간마다 업데이트 확인</system:String>
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
<system:String x:Key="LabelSequenceTip">标签顺序可拖动</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSaved">该选项仅生效一次</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNull">该选项右键选中时仅生效一次</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNullInvert">该选项右键选中时仅跳过一次</system:String>
|
||||
<system:String x:Key="NoAutoNavigation">该选项不会自动导航至对应关卡</system:String>
|
||||
<system:String x:Key="StartupUpdateCheck">启动时检查更新</system:String>
|
||||
<system:String x:Key="UpdateAutoCheck">定时检查更新</system:String>
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
<system:String x:Key="LabelSequenceTip">標籤順序可拖動</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSaved">該選項僅生效一次</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNull">該選項右鍵選中時僅生效一次</system:String>
|
||||
<system:String x:Key="CheckBoxesNotSavedAsNullInvert">該選項右鍵選中時僅跳過一次</system:String>
|
||||
<system:String x:Key="NoAutoNavigation">該選項不會自動導航至對應關卡</system:String>
|
||||
<system:String x:Key="StartupUpdateCheck">啟動時檢查更新</system:String>
|
||||
<system:String x:Key="UpdateAutoCheck">定時檢查更新</system:String>
|
||||
|
||||
@@ -150,6 +150,7 @@ public class GuiSettingsUserControlModel : PropertyChangedBase
|
||||
set
|
||||
{
|
||||
ConfigFactory.Root.GUI.UseNotify = value;
|
||||
NotifyOfPropertyChange();
|
||||
if (value)
|
||||
{
|
||||
ToastNotification.ShowDirect("Test test");
|
||||
@@ -163,6 +164,7 @@ public class GuiSettingsUserControlModel : PropertyChangedBase
|
||||
set
|
||||
{
|
||||
ConfigFactory.Root.GUI.MainTasksInvertNullFunction = value;
|
||||
NotifyOfPropertyChange();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:properties="clr-namespace:MaaWpfGui.Styles.Properties"
|
||||
xmlns:s="https://github.com/canton7/Stylet"
|
||||
xmlns:setting="clr-namespace:MaaWpfGui.ViewModels.UI"
|
||||
xmlns:taskQueue="clr-namespace:MaaWpfGui.Views.UserControl.TaskQueue"
|
||||
xmlns:ui="clr-namespace:MaaWpfGui.ViewModels.UI"
|
||||
xmlns:userControl="clr-namespace:MaaWpfGui.Views.UserControl"
|
||||
@@ -74,8 +75,22 @@
|
||||
IsChecked="{Binding IsCheckedWithNull}"
|
||||
IsHitTestVisible="{Binding ElementName=TaskList, Path=DataContext.Idle}"
|
||||
MouseRightButtonUp="{s:Action ToggleCheckBoxNullOnRightClick,
|
||||
Target={x:Type helper:CheckBoxHelper}}"
|
||||
ToolTip="{DynamicResource CheckBoxesNotSavedAsNull}" />
|
||||
Target={x:Type helper:CheckBoxHelper}}">
|
||||
<CheckBox.ToolTip>
|
||||
<ToolTip>
|
||||
<ToolTip.Style>
|
||||
<Style BasedOn="{StaticResource ToolTipBaseStyle}" TargetType="{x:Type ToolTip}">
|
||||
<Setter Property="Content" Value="{DynamicResource CheckBoxesNotSavedAsNull}" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding Source={x:Static setting:SettingsViewModel.GuiSettings}, Path=MainTasksInvertNullFunction}" Value="True">
|
||||
<Setter Property="Content" Value="{DynamicResource CheckBoxesNotSavedAsNullInvert}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ToolTip.Style>
|
||||
</ToolTip>
|
||||
</CheckBox.ToolTip>
|
||||
</CheckBox>
|
||||
|
||||
<hc:ButtonGroup Grid.Column="1" HorizontalAlignment="Stretch">
|
||||
<RadioButton
|
||||
|
||||
Reference in New Issue
Block a user