| 
 教程编写人员:“雪舞” 编写时间:2022-03-08 完成效果:  
 
 
 
 
客户端修改:  
找到\Interface\YuanbaoExchange\YuanbaoExchange.layout.xml的代码: <Window Type="TLBB_EditBoxNormal" Name="YuanbaoExchange_Moral_Value">
   <Property Name="AbsolutePosition" Value="x:35.000000 y:77.000000" />
    <Property Name="UnifiedSize" Value="{{1.0,-120.000000},{0.000000,20.000000}" />
    <Property Name="MaxTextLength" Value="5" />
    <Property Name="ValidationString" Value="[0-9]*" />
    <Event Name="TextChanged" Function="YuanbaoExchange_Count_Change();" />
</Window>
  
<Property Name="MaxTextLength" Value="4" /> 
 修改为  <Property Name="MaxTextLength" Value="5" />
  
找到\Interface\YuanbaoExchange\YuanbaoExchange.lua 修改: 
 function YuanbaoExchange_Max_Clicked()
    local maxYuanBao = 1000;
    local point2YuanBao = g_Point
    if point2YuanBao < 0 then point2YuanBao = 0; end
    
    YuanbaoExchange_Moral_Value:SetProperty("ClearOffset", "True");
    if point2YuanBao > maxYuanBao then
        YuanbaoExchange_Moral_Value:SetText(tostring(maxYuanBao));
    else
        YuanbaoExchange_Moral_Value:SetText(tostring(point2YuanBao));
    end
    YuanbaoExchange_Moral_Value:SetProperty("CaratIndex", 1024);
end
  
local maxYuanBao = 1000; 改为local maxYuanBao = 10000; 
  
if tonumber(str) > 1000 then
    PushDebugMessage("每次兑换的元宝数量最多为1000点,请输入小于等于1000点的数字。")
    return
end
  
改为 
 if tonumber(str) > 10000 then
    PushDebugMessage("每次兑换的元宝数量最多为1000点,请输入小于等于10000点的数字。")
    return
end
  
 
 
 |