38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
using Games.Item;
|
|
using GCGame.Table;
|
|
using GCGame;
|
|
using Games.Fellow;
|
|
using Games.GlobeDefine;
|
|
|
|
public class BossSceneLevel : UIItemSelect
|
|
{
|
|
public Text Label1;
|
|
public Text Label2;
|
|
|
|
public override void Show(Hashtable hash)
|
|
{
|
|
string sceneLevel = (string)hash["InitObj"];
|
|
string[] levelstrs = sceneLevel.Split('_');
|
|
if (levelstrs.Length < 2 || levelstrs[0].Length <= 0)
|
|
return;
|
|
base.Show();
|
|
string level = levelstrs[1];
|
|
if(level.Length<=1)
|
|
level = Utils.GetChinaNum(level[0]);
|
|
if(levelstrs.Length>=3 && levelstrs[2] == "true")
|
|
{
|
|
Label1.text = StrDictionary.GetClientDictionaryString("#{2087}", string.Format("{0}{1}", StrDictionary.GetClientDictionaryString("#{42630}"), level));
|
|
Label2.text = Label1.text;
|
|
}
|
|
else
|
|
{
|
|
Label1.text = StrDictionary.GetClientDictionaryString("#{2087}", level);
|
|
Label2.text = Label1.text;
|
|
}
|
|
}
|
|
|
|
} |