文章编辑人员:雪舞
内容测试时间:2023-10-23 20:32:30
以自动购买单选框为案例:
<Window Type="TLBB_ButtonCheck" Name="GemCarve_YuanBaoPay">
<Property Name="UnifiedSize" Value="{{0.000000,12.000000},{0.000000,12.000000}}"/>
<Property Name="UnifiedPosition" Value="{{0.000000,7.000000},{1.000000,-16.000000}}"/>
<Property Name="CheckMode" Value="0"/>
<Property Name="Tooltip" Value="#{KXYH_170608_11}"/>
<Event Name="MouseLButtonDown" Function="GetCarve_Yuanbao_Click();"/>
</Window>
选中切换方法:
if GemCarve_YuanBaoPay:GetCheck() == 1 then
GemCarve_YuanBaoPay:SetCheck(1)
elseif GemCarve_YuanBaoPay:GetCheck() == 0 then
GemCarve_YuanBaoPay:SetCheck(0)
end
|