refactor: rename FreeRecruit -> FreeGacha

This commit is contained in:
status102
2025-08-05 16:43:14 +08:00
parent 51e4779812
commit dfb4dfbb70
8 changed files with 20 additions and 20 deletions

View File

@@ -199,7 +199,7 @@ namespace MaaWpfGui.Constants
public const string ReceiveAward = "Mission.ReceiveAward";
public const string ReceiveMail = "Mission.ReceiveMail";
public const string ReceiveFreeRecruit = "Mission.ReceiveFreeRecruit";
public const string ReceiveFreeGacha = "Mission.ReceiveFreeRecruit";
public const string ReceiveOrundum = "Mission.ReceiveOrundum";
public const string ReceiveMining = "Mission.ReceiveMining";
public const string ReceiveSpecialAccess = "Mission.ReceiveSpecialAccess";

View File

@@ -447,8 +447,8 @@ Please do not check it when the stage OF-1 is not unlocked.</system:String>
<system:String x:Key="CreditFullOnlyBuyDiscount">Doctor! \nPurchasing only discounted items has caused an overflow in credits! \nBe cautious of wasting credits!\nRemaining credits:&#160;</system:String>
<system:String x:Key="ReceiveDailyAndWeeklyAward">Collect daily/weekly mission rewards</system:String>
<system:String x:Key="ReceiveMail">Collect all mail rewards</system:String>
<system:String x:Key="ReceiveFreeRecruit">Conducting daily free single pull from the limited banner</system:String>
<system:String x:Key="ReceiveFreeRecruitTip">If there is no free single pull, it will not be pooled</system:String>
<system:String x:Key="ReceiveFreeGacha">Conducting daily free single pull from the limited banner</system:String>
<system:String x:Key="ReceiveFreeGachaTip">If there is no free single pull, it will not be pooled</system:String>
<system:String x:Key="GachaWarning">It's a dangerous feature and may result in a mis-pull.\nBy pressing 「{key=Confirm}」, you understand and are willing to accept the possible risks.</system:String>
<system:String x:Key="ReceiveOrundum">Collect daily Orundum reward from the Lucky Strips</system:String>
<system:String x:Key="ReceiveMining">Collect daily Orundum reward from the provisional mining permit</system:String>

View File

@@ -447,8 +447,8 @@ MAA は非インストール型のアプリケーションであり、レジス
<system:String x:Key="CreditFullOnlyBuyDiscount">ドクター! \n割引アイテムのみの購入がFPのオーバーフローを引き起こしました \nFPの浪費に注意してください \n残りのFP</system:String>
<system:String x:Key="ReceiveDailyAndWeeklyAward">毎日/毎週任務報酬を受取</system:String>
<system:String x:Key="ReceiveMail">すべてのメール報酬を受取</system:String>
<system:String x:Key="ReceiveFreeRecruit">リミテッドスカウトから毎日無料スカウトを行う</system:String>
<system:String x:Key="ReceiveFreeRecruitTip">無料スカウトがない場合はスカウトしない</system:String>
<system:String x:Key="ReceiveFreeGacha">リミテッドスカウトから毎日無料スカウトを行う</system:String>
<system:String x:Key="ReceiveFreeGachaTip">無料スカウトがない場合はスカウトしない</system:String>
<system:String x:Key="GachaWarning">これは危険な機能であり、誤用につながる可能性があります\n「{key=Confirm}」ボタンを押すことで、起こりうる危険を理解し、それを引き受ける意思があるとみなされます</system:String>
<system:String x:Key="ReceiveOrundum">ラッキーウォールから毎日合成玉の報酬を受け取る</system:String>
<system:String x:Key="ReceiveMining">期間限定の採掘許可で毎日合成玉の報酬を受け取る</system:String>

View File

@@ -446,8 +446,8 @@ OF-1 스테이지가 개방되지 않은 경우에는 선택하지 마세요.</s
<system:String x:Key="CreditFullOnlyBuyDiscount">박사님!\n할인된 상품만 구매해 크레딧이 넘쳤습니다!\n낭비되는 크레딧을 주의하세요!\n남은 크레딧:</system:String>
<system:String x:Key="ReceiveDailyAndWeeklyAward">일일/주간 임무 보상 받기</system:String>
<system:String x:Key="ReceiveMail">모든 메일 보상 받기</system:String>
<system:String x:Key="ReceiveFreeRecruit">한정 가챠의 일일 무료 가챠 진행</system:String>
<system:String x:Key="ReceiveFreeRecruitTip">무료 가챠가 없는 경우 가챠를 하지 않습니다</system:String>
<system:String x:Key="ReceiveFreeGacha">한정 가챠의 일일 무료 가챠 진행</system:String>
<system:String x:Key="ReceiveFreeGachaTip">무료 가챠가 없는 경우 가챠를 하지 않습니다</system:String>
<system:String x:Key="GachaWarning">이 기능은 위험한 기능이며 문제가 발생할 수 있습니다\n「{key=Confirm}」 버튼을 누름으로써 귀하는 발생 가능한 위험성을 인지하였음을 확인합니다</system:String>
<system:String x:Key="ReceiveOrundum">복권방의 일일 합성옥 받기</system:String>
<system:String x:Key="ReceiveMining">한정 채굴의 일일 합성옥 받기</system:String>

View File

@@ -447,8 +447,8 @@
<system:String x:Key="CreditFullOnlyBuyDiscount">博士! \n只购买折扣商品让信用点数溢出了\n小心信用点数浪费哦\n剩余信用点数</system:String>
<system:String x:Key="ReceiveDailyAndWeeklyAward">领取每日/每周任务奖励</system:String>
<system:String x:Key="ReceiveMail">领取所有邮件奖励</system:String>
<system:String x:Key="ReceiveFreeRecruit">进行限定池赠送的每日免费单抽</system:String>
<system:String x:Key="ReceiveFreeRecruitTip">若不存在免费单抽,则不会抽取</system:String>
<system:String x:Key="ReceiveFreeGacha">进行限定池赠送的每日免费单抽</system:String>
<system:String x:Key="ReceiveFreeGachaTip">若不存在免费单抽,则不会抽取</system:String>
<system:String x:Key="GachaWarning">该功能属于危险功能,可能会造成误抽\n按下 「{key=Confirm}」 键即视为你了解并愿意承担可能出现的风险</system:String>
<system:String x:Key="ReceiveOrundum">领取幸运墙的每日合成玉奖励</system:String>
<system:String x:Key="ReceiveMining">领取限时开采许可的每日合成玉奖励</system:String>

View File

@@ -445,8 +445,8 @@
<system:String x:Key="CreditFullOnlyBuyDiscount">博士! \n只購買折扣商品讓信用點數溢出了\n小心信用點數浪費哦\n剩餘信用點數</system:String>
<system:String x:Key="ReceiveDailyAndWeeklyAward">領取每日 / 每週任務獎勵</system:String>
<system:String x:Key="ReceiveMail">領取所有郵件獎勵</system:String>
<system:String x:Key="ReceiveFreeRecruit">進行限定池贈送的每日免費單抽</system:String>
<system:String x:Key="ReceiveFreeRecruitTip">若不存在免費單抽,則不會抽取</system:String>
<system:String x:Key="ReceiveFreeGacha">進行限定池贈送的每日免費單抽</system:String>
<system:String x:Key="ReceiveFreeGachaTip">若不存在免費單抽,則不會抽取</system:String>
<system:String x:Key="GachaWarning">該功能屬於危險功能,可能會造成誤抽\n按下 「{key=Confirm}」 鍵即視為你了解並願意承擔可能出現的風險</system:String>
<system:String x:Key="ReceiveOrundum">收集幸運牆的每日合成玉獎勵</system:String>
<system:String x:Key="ReceiveMining">領取限時開採許可的每日合成玉獎勵</system:String>

View File

@@ -63,14 +63,14 @@ public class AwardSettingsUserControlModel : TaskViewModel
}
}
private bool _receiveFreeRecruit = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.ReceiveFreeRecruit, bool.FalseString));
private bool _receiveFreeGacha = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.ReceiveFreeGacha, bool.FalseString));
/// <summary>
/// Gets or sets a value indicating whether receive mail is enabled.
/// </summary>
public bool ReceiveFreeRecruit
public bool ReceiveFreeGacha
{
get => _receiveFreeRecruit;
get => _receiveFreeGacha;
set
{
if (value)
@@ -89,8 +89,8 @@ public class AwardSettingsUserControlModel : TaskViewModel
}
}
SetAndNotify(ref _receiveFreeRecruit, value);
ConfigurationHelper.SetValue(ConfigurationKeys.ReceiveFreeRecruit, value.ToString());
SetAndNotify(ref _receiveFreeGacha, value);
ConfigurationHelper.SetValue(ConfigurationKeys.ReceiveFreeGacha, value.ToString());
}
}
@@ -145,7 +145,7 @@ public class AwardSettingsUserControlModel : TaskViewModel
{
Award = ReceiveAward,
Mail = ReceiveMail,
FreeGacha = ReceiveFreeRecruit,
FreeGacha = ReceiveFreeGacha,
Orundum = ReceiveOrundum,
Mining = ReceiveMining,
SpecialAccess = ReceiveSpecialAccess,

View File

@@ -26,10 +26,10 @@
Content="{DynamicResource ReceiveMail}"
IsChecked="{Binding ReceiveMail}" />
<StackPanel Margin="0,10" Orientation="Horizontal">
<CheckBox IsChecked="{Binding ReceiveFreeRecruit}">
<controls:TextBlock Text="{DynamicResource ReceiveFreeRecruit}" TextWrapping="Wrap" />
<CheckBox IsChecked="{Binding ReceiveFreeGacha}">
<controls:TextBlock Text="{DynamicResource ReceiveFreeGacha}" TextWrapping="Wrap" />
</CheckBox>
<controls:TooltipBlock TooltipText="{DynamicResource ReceiveFreeRecruitTip}" />
<controls:TooltipBlock TooltipText="{DynamicResource ReceiveFreeGachaTip}" />
</StackPanel>
<CheckBox Margin="0,10" IsChecked="{Binding ReceiveOrundum}">
<controls:TextBlock Text="{DynamicResource ReceiveOrundum}" TextWrapping="Wrap" />