//对配置文件进行分块处理 根据sid public override void parseConfig(string str) { base.parseConfig(str); GrowupAwardSample gas = new GrowupAwardSample(); gas.parse(0, str); samples.Add(gas); }
/// <summary> /// 更新奖励条目 /// </summary> /// <param name="tl">排行奖励</param> /// <param name="win">父窗口</param> public void updateAwardItem(GrowupAwardSample tl, WindowBase win) { this.win = win; // level.text = LanguageConfigManager.Instance.getLanguage("gr_003",tl.needLevel,tl.backPercent.ToString()); level.text = tl.needLevel; rebate.text = tl.backPercent + "%"; invest500.text = LanguageConfigManager.Instance.getLanguage("s0309") + (tl.backPercent * 15000 / 100).ToString(); invest2000.text = LanguageConfigManager.Instance.getLanguage("s0309") + (tl.backPercent * 50000 / 100).ToString(); }
/// <summary> /// 初始化button信息 /// </summary> /// <param name="tl">Tl.</param> public void initButtonInfo(GrowupAwardSample tl, int index) { button.setFatherWindow(win); button.name = "AwardButton"; button.exFields = new Hashtable(); button.exFields.Add("index", index); button.exFields.Add("needLevel", tl.needLevel); if (StringKit.toInt(tl.needLevel) <= UserManager.Instance.self.getUserLevel()) { button.disableButton(false); } else { button.disableButton(true); } }
public override void copy(object destObj) { base.copy(destObj); GrowupAwardSample dest = destObj as GrowupAwardSample; }
/// <summary> /// 更新排行条目 /// </summary> /// <param name="tl">Tl.</param> private void updateRank(GrowupAwardSample tl) { title.text = tl.needLevel.ToString(); goodsview.init(tl.prize); goodsview.fatherWindow = win; }
/**method */ /// <summary> /// 更新奖励条目 /// </summary> /// <param name="tl">排行奖励</param> /// <param name="win">父窗口</param> public void updateAwardItem(GrowupAwardSample tl, int index, WindowBase win) { this.win = win; updateRank(tl); initButtonInfo(tl, index); }