void OnEvent(GAME_EVENT_ID eventId, List <string> vParam) { if (eventId == GAME_EVENT_ID.GE_INFO_SELF) { if (vParam.Count != 0) { //string text = UIString.Instance.ParserString_Runtime(vParam[0]); //AddNewItem(vParam[0]); } } else if (eventId == GAME_EVENT_ID.GE_CHAT_MESSAGE) { AddChatContext(vParam); } else if (eventId == GAME_EVENT_ID.GE_PLAYER_ENTER_WORLD) { if (panelIsShowing) { panel.BringIn(); } else { panel.Dismiss(); } } }
public void Show(DialogDescriptor message, Texture2D texture) { SetTexture(texture); speakerName.Text = message.character.ToString(); panel.BringIn(); DoMirror(message); }
void Awake() { startWavePanel = GameObject.Find("WavePanel").GetComponent<UIInteractivePanel>(); startWaveButton = GameObject.Find("startWaveButton").GetComponent<UIButton>(); waveInfoPanel = GameObject.Find("WaveInfoPanel").GetComponent<UIPanel>(); waveInfoScrollList = GameObject.Find("WaveInfoScrollList").GetComponent<UIScrollList>(); waveInfoPanel.BringIn(); heroWaveManager = GameObject.Find("WaveManager").GetComponent<HeroWaveManager>(); heroWaveManager.onAllWaveEnemiesDefeated += HandleAllWaveEnemiesDefeated; heroWaveManager.onNextWaveReady += HandleOnNextWaveReady; heroWaveManager.onSpawnNewHero += HandleOnSpawnNewHero; waveButton = GameObject.Find("startWaveButton").GetComponent<tk2dSprite>(); waveButton.spriteId = waveButton.GetSpriteIdByName(waveStartButtonName); }
void BringIn() { RefreshList(); _saveLoadPanel.BringIn(); }
public virtual void Show(UIMessageDescriptor message) { text.Text = message.message; panel.BringIn(); }