| | |
| | | using TableConfig; |
| | | using EnhancedUI.EnhancedScroller; |
| | | |
| | | namespace Snxxz.UI { |
| | | namespace Snxxz.UI
|
| | | { |
| | | |
| | | public class IceCrystalVeinWin : Window |
| | | { |
| | |
| | | |
| | | protected override void OnPreOpen() |
| | | {
|
| | | GetAllStar();
|
| | | StarAll = iceCrystalVeinModel.GetAllStar();
|
| | | OnCreateGridLineCell(m_ScrollerController); |
| | | AddIceLodeStarAwardList(); |
| | | SetGridMiddle(); |
| | |
| | |
|
| | | private void UpdateIceLodeInf()
|
| | | {
|
| | | GetAllStar();
|
| | | StarAll = iceCrystalVeinModel.GetAllStar();
|
| | | m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (fbId == 31140)
|
| | | {
|
| | | GetAllStar();
|
| | | StarAll = iceCrystalVeinModel.GetAllStar();
|
| | | m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | }
|
| | | }
|
| | |
| | | } |
| | | private void OnClickChallenge()
|
| | | {
|
| | | //model.currentDungeon = new Dungeon(31140, IndexSelect);
|
| | | //model.SingleChallenge(model.currentDungeon);
|
| | | if (iceCrystalVeinModel.IsFree(IndexSelect))//免费
|
| | | {
|
| | | EnterTheCopy();
|
| | | } |
| | | else//收费
|
| | | {
|
| | | string str = "重复挑战该副本需要消耗50绑玉,确定要重复挑战?";
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), str, (bool isOk) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | int GoldPaper = (int)UIHelper.GetMoneyCnt(2);
|
| | | if (GoldPaper >= 50)
|
| | | {
|
| | | EnterTheCopy();
|
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | } |
| | | private void EnterTheCopy()
|
| | | {
|
| | | model.currentDungeon = new Dungeon(31140, IndexSelect);
|
| | | model.SingleChallenge(model.currentDungeon);
|
| | | } |
| | | |
| | | void OnCreateGridLineCell(ScrollerController gridCtrl)
|
| | | {
|
| | | gridCtrl.Refresh();
|
| | |
| | | if (Lv >= Dic.MinLv && Lv <= Dic.MaxLv)
|
| | | {
|
| | | IceLodeStarAwardList.Add(Dic);
|
| | | }
|
| | | }
|
| | | } |
| | | private void GetAllStar()
|
| | | {
|
| | | StarAll = 0;
|
| | | for (int i = 0; i < iceCrystalVeinModel.LineList.Count; i++)
|
| | | {
|
| | | DungeonRecord dungeonRecord;
|
| | | if (model.TryGetRecord(31140, out dungeonRecord))
|
| | | {
|
| | | if (dungeonRecord.lineGrades.ContainsKey(iceCrystalVeinModel.LineList[i]))
|
| | | {
|
| | | StarAll += dungeonRecord.lineGrades[(iceCrystalVeinModel.LineList[i])];
|
| | | }
|
| | | }
|
| | | }
|
| | | } |