Пример #1
0
        void CreateSkillEntry(Vector2 position, SkillType skillType)
        {
            var skillInfo = SkillInfoManager.Instance[skillType];

            PictureBox pb = new SkillPictureBox(this, skillInfo, position);
            pb.Clicked += SkillPicture_Clicked;

            var skillLabel = new SkillLabel(this, skillInfo, position + new Vector2(_iconSize.X + 4, 0));
            skillLabel.Clicked += SkillLabel_Clicked;
        }
	public void AssignSkillLabel( string _SkillLabelKey , SkillLabel _SkillLabelObj )
	{
		if( true == m_SkillLabels.ContainsKey( _SkillLabelKey )  )
		{
			m_SkillLabels[ _SkillLabelKey ] = _SkillLabelObj ;
		}
		else
		{
			m_SkillLabels.Add( _SkillLabelKey , _SkillLabelObj ) ;
		}
	}
Пример #3
0
        void CreateSkillEntry(Vector2 position, SkillType skillType)
        {
            var skillInfo = SkillInfoManager.Instance[skillType];

            PictureBox pb = new SkillPictureBox(this, skillInfo, position);

            pb.Clicked += SkillPicture_Clicked;

            var skillLabel = new SkillLabel(this, skillInfo, position + new Vector2(_iconSize.X + 4, 0));

            skillLabel.Clicked += SkillLabel_Clicked;
        }
	public static bool ParseSkillZone( XmlNode _node ,
	                                  ref Dictionary< string , SkillLabel > _Skills )
	{
		if( "SkillZone" == _node.Name )
		{
			foreach( XmlNode skillNode in _node.ChildNodes )
			{
				string skillLabel = "" ;
				string skillValue = "" ;
				if( true == ParseSkillLabel( skillNode , 
				                            ref skillLabel , 
				                            ref skillValue ) )
				{
					SkillLabel addSkillLabel = new SkillLabel() ;
					addSkillLabel.Label = skillLabel ;
					addSkillLabel.Value = skillValue ;
					_Skills.Add( skillLabel , addSkillLabel ) ;
				}
			}
			return true ;
		}
		return false ;
	}