换皮
This commit is contained in:
@@ -81,7 +81,7 @@ namespace ChillConnect
|
||||
{
|
||||
if (Screen.safeArea.y != 0)
|
||||
{
|
||||
ui.top_group.y += 68;
|
||||
// ui.top_group.y += 68;
|
||||
ui.left_group.y += 68;
|
||||
ui.right_group.y += 68;
|
||||
}
|
||||
@@ -266,8 +266,7 @@ namespace ChillConnect
|
||||
// Fx_Type.fx_btn_play, ref closeCallback);
|
||||
// anim_paly.state.SetAnimation(0, "animation", true);
|
||||
|
||||
btn_play_list = new List<btn_level_play> { ui.btn_play1, ui.btn_play2, ui.btn_play3, ui.btn_play4, ui.btn_play5, ui.btn_play6, ui.btn_play7, ui.btn_play8
|
||||
, ui.btn_play9,ui.btn_play10};
|
||||
btn_play_list = new List<btn_level_play> { ui.com_level.btn_play1, ui.com_level.btn_play2, ui.com_level.btn_play3, ui.com_level.btn_play4, ui.com_level.btn_play5 };
|
||||
|
||||
InitBtn();
|
||||
Set101();
|
||||
@@ -453,16 +452,27 @@ namespace ChillConnect
|
||||
private void InitBtn()
|
||||
{
|
||||
int level_ = GameHelper.GetLevel();
|
||||
int stage_ = (level_ - 1) / 10;
|
||||
for (int i = 0; i < 10; i++)
|
||||
int start_level = 0;
|
||||
if (level_ >= 3)
|
||||
{
|
||||
int lv = stage_ * 10 + 1 + i;
|
||||
start_level = level_ - 2;
|
||||
ui.com_level.state.selectedIndex = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.com_level.state.selectedIndex = level_ - 1;
|
||||
start_level = 1;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
int lv = start_level + i;
|
||||
btn_play_list[i].text_level.text = lv.ToString();
|
||||
if (lv < level_)
|
||||
{
|
||||
btn_play_list[i].state.selectedIndex = 2;
|
||||
}
|
||||
else if ((stage_ * 10 + 1 + i) == level_)
|
||||
else if (lv == level_)
|
||||
{
|
||||
btn_play_list[i].state.selectedIndex = 1;
|
||||
btn_play_list[i].SetClick(() =>
|
||||
@@ -629,13 +639,13 @@ namespace ChillConnect
|
||||
var head = ui.btn_head as btn_head;
|
||||
GameHelper.SetSelfAvatar(head.load_avatar);
|
||||
|
||||
if (btn_play_list.Count == 0) return;
|
||||
for (int i = 0; i < btn_play_list.Count; i++)
|
||||
{
|
||||
var head1 = btn_play_list[i].btn_hall_head.btn_head as btn_head;
|
||||
GameHelper.SetSelfAvatar(head1.load_avatar);
|
||||
// if (btn_play_list.Count == 0) return;
|
||||
// for (int i = 0; i < btn_play_list.Count; i++)
|
||||
// {
|
||||
// var head1 = btn_play_list[i].btn_hall_head.btn_head as btn_head;
|
||||
// GameHelper.SetSelfAvatar(head1.load_avatar);
|
||||
|
||||
}
|
||||
// }
|
||||
;
|
||||
}
|
||||
void reCreatPur(object a = null)
|
||||
|
||||
Reference in New Issue
Block a user