123456789101112131415161718192021222324252627282930313233 |
- using FairyGUI;
- namespace FL.FGUI
- {
- public partial class MainHomePanelVM
- {
- public bool SysMenuActive
- {
- get => SysMenuCtrl.selectedIndex > 0;
- set
- {
- SysMenuCtrl.selectedIndex = value ? 1 : 0;
- }
- }
- /// <summary>
- /// 0:没有奖励
- /// 1:有奖励未满
- /// 2:奖励满
- /// 3:未解锁
- /// </summary>
- /// <param name="state"></param>
- public void SetMapRewardState(int state)
- {
- MapRewardBtn.GetController("RewardStateCtrl").selectedIndex = state;
- }
- public void SetMapRewardUnlockTxt(string text)
- {
- var textField = MapRewardBtn.GetChild("UnlockTxt") as GTextField;
- textField.text = text;
- }
- }
- }
|