Exemplo n.º 1
0
    void OnScrollInfo(DialogMenuItem _item)
    {
        Dialog newDialog = Dialog.Create(DialogType.DialogScrollInfo);

        newDialog.SetDialogText(DialogTextType.Title, "スクロール情報");
        newDialog.AddScrollInfoImage("http://sample/sample.png");
        newDialog.AddScrollInfoText("サンプルテキスト\n\rさんぷるだよ");
        newDialog.AddScrollInfoIconList("たいとるだよ", new uint[] { 2, 3, 4, 5, 6, 7, 8, 9 });
        newDialog.Show();
    }
Exemplo n.º 2
0
    public void openBossInfo()
    {
        SoundUtil.PlaySE(SEID.SE_MENU_OK);

        if (m_RecvData == null ||
            m_RecvData.guerrilla == null
            )
        {
            return;
        }
        PacketStructGuerrilla _info = m_RecvData.guerrilla;

        Dialog _newDialog = Dialog.Create(DialogType.DialogScrollInfo);

        _newDialog.SetDialogText(DialogTextType.Title, GameTextUtil.GetText("gerira_dialog_title"));
        if (_info.image != null)
        {
            for (int i = 0; i < _info.image.Length; i++)
            {
                if (!ChkTiming(_info.image[i].timing_start, _info.image[i].timing_end))
                {
                    continue;
                }

                _newDialog.AddScrollInfoImage(String.Format("{0}/{1}", GlobalDefine.GetBaseBannerUrl(), _info.image[i].url));
                break;
            }
        }
        if (_info.text != null)
        {
            for (int i = 0; i < _info.text.Length; i++)
            {
                if (!ChkTiming(_info.text[i].timing_start, _info.text[i].timing_end))
                {
                    continue;
                }
                _newDialog.AddScrollInfoText(_info.text[i].message);
            }
        }
        _newDialog.Show();
    }
Exemplo n.º 3
0
    private void openUnitInfo()
    {
        SoundUtil.PlaySE(SEID.SE_MENU_OK);
        if (m_RecvData == null ||
            m_RecvData.new_unit == null
            )
        {
            return;
        }
        PacketStructNewUnit _info = m_RecvData.new_unit;
        Dialog _newDialog         = Dialog.Create(DialogType.DialogScrollInfo);

        _newDialog.SetDialogText(DialogTextType.Title, GameTextUtil.GetText("newunit_dialog_title"));
        if (_info.image != null)
        {
            for (int i = 0; i < _info.image.Length; i++)
            {
                if (!ChkTiming(_info.image[i].timing_start, _info.image[i].timing_end))
                {
                    continue;
                }

                _newDialog.AddScrollInfoImage(String.Format("{0}/{1}", GlobalDefine.GetBaseBannerUrl(), _info.image[i].url));

                break;
            }
        }
        if (_info.icon != null)
        {
            for (int i = 0; i < _info.icon.Length; i++)
            {
                if (!ChkTiming(_info.icon[i].timing_start, _info.icon[i].timing_end))
                {
                    continue;
                }
                _newDialog.AddScrollInfoIconList(_info.icon[i].title, _info.icon[i].ids);
            }
        }
        _newDialog.Show();
    }