Start() public method

public Start ( ) : void
return void
コード例 #1
0
 public override void Start()
 {
     tooltip.Start();
     id            = DialogManager.DIALOG_INDEX.ITEM_SETTING;
     curActionSlot = 0;
     curWeaponSlot = 0;
 }
コード例 #2
0
 public override void Start()
 {
     tooltip.Start();
     id                 = DialogManager.DIALOG_INDEX.ITEM_UPGRADE;
     size.x             = (float)texUpgradeBG.width;
     size.y             = (float)texUpgradeBG.height;
     crdUpgradeProps    = new Rect[5];
     crdUpgradeProps[0] = new Rect(666f, 129f, 21f, 22f);
     crdUpgradeProps[1] = new Rect(666f, 159f, 21f, 22f);
     crdUpgradeProps[2] = new Rect(666f, 189f, 21f, 22f);
     crdUpgradeProps[3] = new Rect(666f, 219f, 21f, 22f);
     crdUpgradeProps[4] = new Rect(666f, 249f, 21f, 22f);
     curuseprops        = new NowUseProp[5];
     for (int i = 0; i < curuseprops.Length; i++)
     {
         curuseprops[i] = new NowUseProp();
         curuseprops[i].reset();
     }
 }
コード例 #3
0
 public override void Start()
 {
     tooltip.Start();
     id = DialogManager.DIALOG_INDEX.MBUY_TERM;
 }
コード例 #4
0
 public override void Start()
 {
     tooltip.Start();
     id = DialogManager.DIALOG_INDEX.TCBOARD;
 }
コード例 #5
0
 public void Start()
 {
     cbox = new ComboBox();
     cbox.Initialize(bImage: false, new Vector2(crdComboFilter.width, crdComboFilter.height));
     cbox.setStyleNames("BoxFilterBg", "BtnArrowDn", "BtnArrowUp", "BoxFilterCombo");
     cbox.setTextColor(Color.white, GlobalVars.Instance.GetByteColor2FloatColor(205, 100, 36));
     cbox.setBackground(Color.white, GlobalVars.Instance.GetByteColor2FloatColor(0, 53, 92));
     tooltip.Start();
     curItem        = 0;
     mainTab        = 0;
     wpnCategory    = -1;
     mainTabs       = new string[GlobalVars.Instance.equipParentDirNames.Length];
     subTab         = new int[20];
     treeInfos      = new TreeInfo[GlobalVars.Instance.equipParentDirNames.Length];
     scrollPosition = new Vector2[GlobalVars.Instance.equipParentDirNames.Length];
     for (int i = 0; i < GlobalVars.Instance.equipParentDirNames.Length; i++)
     {
         subTab[i]               = 0;
         scrollPosition[i]       = Vector2.zero;
         mainTabs[i]             = StringMgr.Instance.Get(GlobalVars.Instance.equipParentDirNames[i]);
         treeInfos[i]            = new TreeInfo();
         treeInfos[i].childTrees = null;
         treeInfos[i].Name       = mainTabs[i];
         if (i == mainTab)
         {
             treeInfos[i].clicked = true;
         }
     }
     weaponTabs = new string[weaponTabKey.Length];
     treeInfos[weaponTab].childTrees = new TreeInfo[weaponTabKey.Length - 1];
     for (int j = 0; j < weaponTabKey.Length; j++)
     {
         weaponTabs[j] = StringMgr.Instance.Get(weaponTabKey[j]);
         if (treeInfos.Length > 0 && j > 0)
         {
             treeInfos[weaponTab].childTrees[j - 1]      = new TreeInfo();
             treeInfos[weaponTab].childTrees[j - 1].Name = weaponTabs[j];
         }
     }
     mainWeaponTabs = new string[GlobalVars.Instance.ShopMainWpnCatNames.Length];
     treeInfos[weaponTab].childTrees[0].childTrees = new TreeInfo[GlobalVars.Instance.ShopMainWpnCatNames.Length];
     for (int k = 0; k < GlobalVars.Instance.ShopMainWpnCatNames.Length; k++)
     {
         mainWeaponTabs[k] = StringMgr.Instance.Get(GlobalVars.Instance.ShopMainWpnCatNames[k]);
         if (treeInfos.Length > 0)
         {
             treeInfos[weaponTab].childTrees[0].childTrees[k]      = new TreeInfo();
             treeInfos[weaponTab].childTrees[0].childTrees[k].Name = mainWeaponTabs[k];
         }
     }
     clothTabs = new string[clothTabKey.Length];
     treeInfos[weaponTab + 1].childTrees = new TreeInfo[clothTabs.Length - 1];
     for (int l = 0; l < clothTabKey.Length; l++)
     {
         clothTabs[l] = StringMgr.Instance.Get(clothTabKey[l]);
         if (treeInfos.Length > 0 && l > 0)
         {
             treeInfos[weaponTab + 1].childTrees[l - 1]      = new TreeInfo();
             treeInfos[weaponTab + 1].childTrees[l - 1].Name = clothTabs[l];
         }
     }
     accessoryTabs = new string[GlobalVars.Instance.accessoryTabs.Length];
     treeInfos[weaponTab + 2].childTrees = new TreeInfo[GlobalVars.Instance.accessoryTabs.Length - 1];
     for (int m = 0; m < GlobalVars.Instance.accessoryTabs.Length; m++)
     {
         accessoryTabs[m] = StringMgr.Instance.Get(GlobalVars.Instance.accessoryTabs[m]);
         if (treeInfos.Length > 0 && m > 0)
         {
             treeInfos[weaponTab + 2].childTrees[m - 1]      = new TreeInfo();
             treeInfos[weaponTab + 2].childTrees[m - 1].Name = accessoryTabs[m];
         }
     }
     equipable    = true;
     unequipable  = true;
     txtMainColor = GlobalVars.Instance.GetByteColor2FloatColor(244, 151, 25);
 }
コード例 #6
0
 public override void Start()
 {
     tooltip.Start();
     id = DialogManager.DIALOG_INDEX.ITEM_COMBINE;
 }