Beispiel #1
0
	public void Init(OptionBtnType eOptionBtnType, bool bState)
	{
		AsLanguageManager.Instance.SetFontFromSystemLanguage( m_OptionBtn.spriteText);
		m_OptionBtn.Text = _GetBtnName( eOptionBtnType);
		m_eOptionBtnType = eOptionBtnType;
		m_bBtnState = bState;
		m_OptionBtn.Value = bState;
	}
Beispiel #2
0
	// < private
	private string _GetBtnName(OptionBtnType eOptionBtnType)
	{
		int nIndex = -1;
		
		switch( eOptionBtnType)
		{
		case OptionBtnType.OptionBtnType_SoundBG: nIndex = 1281; break;
		case OptionBtnType.OptionBtnType_SoundEff: nIndex = 1282; break;
//		case OptionBtnType.OptionBtnType_CharacterQuality: nIndex = 1283; break;
//		case OptionBtnType.OptionBtnType_EffectQuality: nIndex = 1284; break;
		case OptionBtnType.OptionBtnType_MonsterName: nIndex = 1285; break;
		case OptionBtnType.OptionBtnType_NpcName: nIndex = 1286; break;
//		case OptionBtnType.OptionBtnType_HelmView: nIndex = 1287; break;
//		case OptionBtnType.OptionBtnType_PushNotification: nIndex = 1288; break;
		case OptionBtnType.OptionBtnType_Chat: nIndex = 1997; break;
		case OptionBtnType.OptionBtnType_Filtering: nIndex = 1289; break;
		case OptionBtnType.OptionBtnType_SkillCoolAlram: nIndex = 4203; break;
#if !NEW_DELEGATE_IMAGE
		case OptionBtnType.OptionBtnType_RankMark: nIndex = 4205; break;
		case OptionBtnType.OptionBtnType_PvpGrade: nIndex = 995; break;
#endif
		case OptionBtnType.OptionBtnType_Push: nIndex = 1288; break;
		case OptionBtnType.OptionBtnType_QuestPartyMatching: nIndex = 2100; break;
		case OptionBtnType.OptionBtnType_AutoChat: nIndex = 998; break;
		case OptionBtnType.OptionBtnType_Vibrate: nIndex = 2108; break;
		case OptionBtnType.OptionBtnType_SubTitleName: nIndex = 2141; break;
		case OptionBtnType.OptionBtnType_EffectShow: nIndex = 802; break;
		case OptionBtnType.OptionBtnType_ResourceShow: nIndex = 801; break;
		case OptionBtnType.OptionBtnType_FriendOnlineAlarm: nIndex = 1778; break;
		case OptionBtnType.OptionBtnType_FriendInviteRefuse: nIndex = 1779; break;
		case OptionBtnType.OptionBtnType_PartyInviteRefuse: nIndex = 1780; break;
		case OptionBtnType.OptionBtnType_GuildInviteRefuse: nIndex = 1781; break;
		case OptionBtnType.OptionBtnType_VoiceBattle: nIndex = 2135; break; //$yde
		case OptionBtnType.OptionBtnType_TargetChange: nIndex = 2158; break; //$yde
		}
		
		return AsTableManager.Instance.GetTbl_String( nIndex);
	}
Beispiel #3
0
	static public void SetOptionState( OptionBtnType eOptionBtnType, bool bState)
	{
		s_optionState[ (int)eOptionBtnType] = bState;
	}
Beispiel #4
0
	static public bool GetOptionState( OptionBtnType eOptionBtnType)
	{
		return s_optionState[ (int)eOptionBtnType];
	}