mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fixed gui
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace asst {
|
||||
|
||||
const static std::string Version = "release.beta.01";
|
||||
const static std::string Version = "release.beta.01.2";
|
||||
|
||||
/************ Type ************/
|
||||
|
||||
|
||||
@@ -116,6 +116,7 @@ void Assistance::stop(bool block)
|
||||
bool Assistance::setParam(const std::string& type, const std::string& param, const std::string& value)
|
||||
{
|
||||
DebugTraceFunction;
|
||||
DebugTrace("SetParam |", type, param, value);
|
||||
|
||||
return Configer::setParam(type, param, value);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace MeoAsstGui
|
||||
|
||||
private void textBox_useStone_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (checkBox_useMedicine.IsChecked == true)
|
||||
if (checkBox_useStone.IsChecked == true)
|
||||
{
|
||||
String text = textBox_useStone.Text != String.Empty ? textBox_useStone.Text : "0";
|
||||
AsstSetParam(p_asst, "task.maxTimes", "StoneConfirm", text);
|
||||
@@ -98,13 +98,16 @@ namespace MeoAsstGui
|
||||
|
||||
private void checkBox_useStone_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (checkBox_useMedicine.IsChecked == true)
|
||||
if (checkBox_useStone.IsChecked == true)
|
||||
{
|
||||
AsstSetParam(p_asst, "task.type", "UseStone", "doNothing");
|
||||
String text = textBox_useStone.Text != String.Empty ? textBox_useStone.Text : "0";
|
||||
AsstSetParam(p_asst, "task.maxTimes", "StoneConfirm", text);
|
||||
}
|
||||
else
|
||||
{
|
||||
AsstSetParam(p_asst, "task.type", "UseStone", "stop");
|
||||
AsstSetParam(p_asst, "task.maxTimes", "StoneConfirm", "0");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user