Update 2:
看之前的帖子,找到了新版里正确的If语句写法。其实后来才发现原来在PC目录下有Demo,里面有一些示范写法的。
之前的步长问题已经通过在ListBox中输入物品绝对地址解决,后来还需要解决的是如何在显示物品时不显示武器参数。ComboBox.Value实际上是不对的用法,实际上搞一个隐藏的TextBox,然后引用它的Text属性就可以完成本设定了。
当前成功运行的脚本:
'选择条目后
SelChanged
{
}
'选择条目后且执行完控制数据功能后
SelChangedEx
{
If TextBox5.Text == 2
Call.Func(Frame4_items,ListBox1,HideWeaponStats);
Else
Call.Func(Frame4_items,ListBox1,ShowWeaponStats);
EndIf
}
HideWeaponStats
{
GroupBox3.Visible = False;
CheckListBox3.Visible = False;
GroupBox4.Visible = False;
Label8.Visible = False;
ComboBox3.Visible = False;
Label9.Visible = False;
ComboBox2.Visible = False;
Label1.Visible = False;
GridList2.Visible = False;
Label10.Visible = False;
ComboBox5.Visible = False;
ComboBox6.Visible = False;
}
ShowWeaponStats
{
GroupBox3.Visible = True;
CheckListBox3.Visible = True;
GroupBox4.Visible = True;
Label8.Visible = True;
ComboBox3.Visible = True;
Label9.Visible = True;
ComboBox2.Visible = True;
Label1.Visible = True;
GridList2.Visible = True;
Label10.Visible = True;
ComboBox5.Visible = True;
ComboBox6.Visible = True;
}