Example #1
0
 public static SkillGUI Create(SkillEnabled skillEnabled, IGUIMessages receiver)
 {
     SkillGUI ret = new SkillGUI(skillEnabled, receiver);
     float width = 300f;
     ret.position = new Rect(Screen.width/2-width/2,Screen.height-70,width,70);
     return ret;
 }
Example #2
0
 public static SkillGUI Create()
 {
     //Platform-Specific code...
     SkillGUI ret = new SkillGUI();
     float width = 300f;
     ret.position = new Rect(Screen.width/2-width/2,Screen.height-70,width,70);
     return ret;
 }
Example #3
0
 public static SkillGUI CreateAndroid(SkillEnabled skillEnabled, IGUIMessages receiver )
 {
     Rect gameGUIPosition = GetGameGUIRect();
     SkillGUI skillgui = new SkillGUI(skillEnabled, receiver);
     skillgui.position = new Rect(gameGUIPosition.x,gameGUIPosition.y+gameGUIPosition.height*(40f/110f),gameGUIPosition.width,gameGUIPosition.height*(70f/110f));
     skillgui.AdjustPositions();
     //		Debug.Log("creating SkillGUI in rect: "+skillgui.position);
     return skillgui;
 }
Example #4
0
 public void Reload(SkillGUI skillGui, int slotNumber, GameObject skill, bool unlocked)
 {
     _gui              = skillGui;
     _slotNumber       = slotNumber;
     _skill            = skill;
     skillImage        = GetComponent <Image>();
     skillImage.sprite = _skill.GetComponent <AttackDetailsInstance>().Icon;
     isDraggable       = false;
     isUnlocked        = unlocked;
     if (!unlocked)
     {
         skillImage.color = new Color(0.5f, 0.5f, 0.5f, 0.5f);
     }
     else
     {
         skillImage.color = new Color(1f, 1f, 1f, 1f);
     }
 }
Example #5
0
 public static SkillGUI TutorialCreate()
 {
     //Platform-Specific code...
     SkillGUI ret = new SkillGUI();
     float width = 300f;
     if(Tutorial.towerTut == TowerType.shoot){
         for(int i=1;i<4;i++)
             ret.skillEn[i] = false;
     }else if(Tutorial.towerTut == TowerType.build){
         ret.skillEn[0] = false;
         ret.skillEn[2] = false;
         ret.skillEn[3] = false;
     }else if(Tutorial.towerTut == TowerType.silence){
         ret.skillEn[0] = false;
         ret.skillEn[3] = false;
     }
     ret.position = new Rect(Screen.width/2-width/2,Screen.height-70,width,70);
     return ret;
 }
Example #6
0
 public void Init(SkillData dt, SkillGUI gui)
 {
     _data    = (SkillData)dt.Clone();
     this.gui = gui;
 }
 public void TabClicked(string groupName)
 {
     _activePanel = _panels[groupName];
     _activePanel.UpdateSlots();
 }