private void IniOb() { observerPlayerBackImage = UnityUiUtility.CreateImageDisplayObject(GetCommonUrl("observerPlayer/allKillInfoObserverPlayerBack.atf"), 700, 84); _uiObject.AddChild(observerPlayerBackImage); observerPlayerBackImage.x = 73; observerPlayerBackImage.y = 0; var index = 0; for (var i = 0; i < ObserverPlayerH; ++i) { for (var j = 0; j < ObserverPlayerV; ++j) { var nameObj = UnityUiUtility.CreateEmptyDisplayObject();//UnityUIUtility.CreateImageDisplayObject("1", 128, 32); _uiObject.AddChild(nameObj); observerPlayerName.Add(nameObj); nameObj.x = (observerPlayerBackImage.x + 15 + j * 130); nameObj.y = (observerPlayerBackImage.y + 20 + i * 20); nameObj.visible = false; index++; } } }
private void IniExp() { profitBackImage = UnityUiUtility.CreateImageDisplayObject(GetCommonUrl("killList/profitback.atf"), 845, 142); _uiObject.AddChild(profitBackImage); profitBackImage.x = 0; profitBackImage.y = 0; profitBackImage.visible = false; totalExpSprite = UnityUiUtility.CreateEmptyDisplayObject(); _uiObject.AddChild(totalExpSprite); totalExpSprite.x = profitBackImage.x + 110; totalExpSprite.y = profitBackImage.y + 47; totalExpSprite.visible = false; totalExpPerSprite = UnityUiUtility.CreateEmptyDisplayObject(); _uiObject.AddChild(totalExpPerSprite); totalExpPerSprite.x = totalExpSprite.x + 80; totalExpPerSprite.y = totalExpSprite.y + 3; totalExpPerSprite.visible = false; totalGpSprite = UnityUiUtility.CreateEmptyDisplayObject(); _uiObject.AddChild(totalGpSprite); totalGpSprite.x = totalExpSprite.x + 325; totalGpSprite.y = profitBackImage.y + 45; totalGpSprite.visible = false; totalGpPerSprite = UnityUiUtility.CreateEmptyDisplayObject(); _uiObject.AddChild(totalGpPerSprite); totalGpPerSprite.x = totalGpSprite.x + 80; totalGpPerSprite.y = totalGpSprite.y + 3; totalGpPerSprite.visible = false; totalCrystalSprite = UnityUiUtility.CreateEmptyDisplayObject(); _uiObject.AddChild(totalCrystalSprite); totalCrystalSprite.x = profitBackImage.x + 770; totalCrystalSprite.y = profitBackImage.y + 76; totalCrystalSprite.visible = false; // for (var i = 0; i < 4; ++i) // // { totalExpSprite.AddChild(UnityUiUtility.CreateNumberTextDisplayObject(120)); totalExpPerSprite.AddChild(UnityUiUtility.CreateNumberTextDisplayObject(130)); totalGpSprite.AddChild(UnityUiUtility.CreateNumberTextDisplayObject(120)); totalGpPerSprite.AddChild(UnityUiUtility.CreateNumberTextDisplayObject(130)); totalCrystalSprite.AddChild(UnityUiUtility.CreateNumberTextDisplayObject(120)); // } expImageList = new List <IUiObject>(); expSpriteList = new List <IUiObject>(); for (var i = 0; i < 6; ++i) { var expImageObj = UnityUiUtility.CreateImageDisplayObject(GetCommonUrl("killList/honorary.atf"), 40, 49); expImageList.Add(expImageObj); _uiObject.AddChild(expImageObj); expImageObj.x = profitBackImage.x + 50 + (expImageObj.width + 10) * i; expImageObj.y = profitBackImage.y + 85; expImageObj.visible = false; var expSpriteObj = UnityUiUtility.CreateEmptyDisplayObject(); expSpriteList.Add(expSpriteObj); _uiObject.AddChild(expSpriteObj); expSpriteObj.x = expImageObj.x + 2; expSpriteObj.y = expImageObj.y + 35; expSpriteObj.visible = false; // for (var j = 0; j < 4; ++j) // { expSpriteObj.AddChild(UnityUiUtility.CreateNumberTextDisplayObject(140)); // } } gpImageList = new List <IUiObject>(); gpSpriteList = new List <IUiObject>(); for (var i = 0; i < 4; ++i) { var gpImageObj = UnityUiUtility.CreateImageDisplayObject(GetCommonUrl("killList/honorary.atf"), 100, 100); gpImageList.Add(gpImageObj); _uiObject.AddChild(gpImageObj); gpImageObj.x = profitBackImage.x + 420 + (gpImageObj.width + 10) * i; gpImageObj.y = profitBackImage.y + 85; gpImageObj.visible = false; var gpSpriteObj = UnityUiUtility.CreateEmptyDisplayObject(); gpSpriteList.Add(gpSpriteObj); _uiObject.AddChild(gpSpriteObj); gpSpriteObj.x = gpImageObj.x + 2; gpSpriteObj.y = gpImageObj.y + 35; gpSpriteObj.visible = false; // for (var j = 0; j < 4; ++j) // // { gpSpriteObj.AddChild(UnityUiUtility.CreateNumberTextDisplayObject(140)); // } } expUrlList = new List <string>(); expUrlList.Add("killList/honorary.atf"); expUrlList.Add("killList/heroweapon.atf"); expUrlList.Add("killList/bigexp.atf"); expUrlList.Add("killList/smallexp.atf"); expUrlList.Add("killList/friend.atf"); expUrlList.Add("killList/accessory.atf"); gpUrlList = new List <string>(); gpUrlList.Add("killList/honorary.atf"); gpUrlList.Add("killList/heroweapon.atf"); gpUrlList.Add("killList/biggp.atf"); gpUrlList.Add("killList/smallgp.atf"); }