-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a5b44f
commit 8f82f03
Showing
6 changed files
with
142 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
//using CombatRoutine.TriggerModel; | ||
//using Common; | ||
//using Common.Define; | ||
//using Common.GUI; | ||
//using Common.Language; | ||
//using ImGuiNET; | ||
|
||
//namespace 残光.贤者.时间轴 | ||
//{ | ||
// public class CheckAddersgall : ITriggerCond | ||
// { | ||
// public string Remark { get; set; } | ||
|
||
// public CompareType CompareType = CompareType.LessEqual; | ||
|
||
// public int Count; | ||
// public string DisplayName => "贤/检测蛇胆".Loc(); | ||
|
||
// public void Check() | ||
// { | ||
|
||
// } | ||
|
||
// public bool Draw() | ||
// { | ||
// ImGui.Text("蛇胆数量"); | ||
// ImGui.SameLine(); | ||
// ImGuiHelper.DrawEnum("", ref CompareType, size: 50, nameMap: CompareUtil.CompareTypeNameMap); | ||
// ImGui.SameLine(); | ||
// ImGuiHelper.LeftInputInt("",ref Count); | ||
// return true; | ||
// } | ||
|
||
// public bool Handle(ITriggerCondParams triggerCondParams) | ||
// { | ||
// var currValue = Core.Get<IMemApiSage>().Addersgall(); | ||
// switch (CompareType) | ||
// { | ||
// case CompareType.Equal: | ||
// return currValue == Count; | ||
// case CompareType.NotEqual: | ||
// return currValue != Count; | ||
// case CompareType.Greater: | ||
// return currValue > Count ; | ||
// case CompareType.GreaterEqual: | ||
// return currValue >= Count ; | ||
// case CompareType.Less: | ||
// return currValue < Count ; | ||
// case CompareType.LessEqual: | ||
// return currValue <= Count ; | ||
// default: | ||
// throw new ArgumentOutOfRangeException(); | ||
// } | ||
// } | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
using System.Numerics; | ||
using CombatRoutine.TriggerModel; | ||
using Common.Language; | ||
using ImGuiNET; | ||
|
||
namespace 残光.贤者.时间轴; | ||
|
||
public class ZANSGEQt : ITriggerAction | ||
{ | ||
|
||
public string DisplayName => "SGE/QT设置".Loc(); | ||
|
||
private int 当前combo = 0; | ||
|
||
public string ValueName { get; set; } = new(""); | ||
public bool Value { get; set; } = new(); | ||
|
||
private int radioType; | ||
private int radioCheck; | ||
|
||
public string Remark { get; set; } | ||
public void Check() | ||
{ | ||
} | ||
|
||
public bool Draw() | ||
{ | ||
var qtArray = Qt.GetQtArray(); | ||
当前combo = Array.IndexOf(qtArray,ValueName); | ||
if (当前combo == -1) | ||
{ | ||
当前combo = 0; | ||
} | ||
radioCheck = Value?0:1; | ||
//return false; | ||
if (ImGui.BeginTabBar("###TriggerTab")) | ||
{ | ||
if (ImGui.BeginTabItem("贤者")) | ||
{ | ||
ImGui.BeginChild("###TriggerSage", new Vector2(0,0)); | ||
|
||
//选择类型 | ||
//ImGui.SetCursorPos(new Vector2(40,10)); | ||
ImGui.RadioButton("Qt", ref radioType, 0); | ||
ImGui.NewLine(); | ||
|
||
ImGui.SetCursorPos(new Vector2(0,40)); | ||
if (radioType == 0) | ||
{ | ||
ImGui.Combo("Qt开关",ref 当前combo,qtArray,qtArray.Length); | ||
ValueName = qtArray[当前combo]; | ||
ImGui.RadioButton("开", ref radioCheck, 0); | ||
ImGui.SameLine(); | ||
ImGui.RadioButton("关", ref radioCheck, 1); | ||
Value = radioCheck == 0; | ||
} | ||
ImGui.EndChild(); | ||
ImGui.EndTabItem(); | ||
} | ||
ImGui.EndTabBar(); | ||
} | ||
return true; | ||
} | ||
|
||
public bool Handle() | ||
{ | ||
Qt.SetQt(ValueName, Value); | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters