示例#1
0
        //获取背景音乐是否需要开启
        public Boolean tyyGetIsBgmNeed()
        {
            String isBGM = File.ReadAllText(tyySaveFilePathUri, Encoding.ASCII);

            Boolean isNbGM = false;

            try
            {
                isNbGM = Convert.ToBoolean(isBGM);
            }
            catch
            {
                TYYCoreGUI.tyyErrMsg("Your Save File Error!" + "\n" + "But We've repaired it!");
                File.WriteAllText(tyySaveFilePathUri, "true", Encoding.ASCII);
                return(true);
            }

            if (isNbGM)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#2
0
 //保存是否需要背景音乐
 public void tyySaveBgm(Boolean isNeedPlay)
 {
     try
     {
         File.WriteAllText(locData.tyySaveFilePathUri, isNeedPlay.ToString(), Encoding.ASCII);
     }
     catch
     {
         TYYCoreGUI.tyyErrMsg("File Save Error!");
         return;
     }
 }
示例#3
0
        /// ///////////////////////////////////////////////////////////////////////////////////////////////

        //构造函数,初始化资源
        public TYYCoreDataDyn()
        {
            try
            {
                //资源初始化

                //角色
                tyyCharacterLocation = TYYCoreProcess.tyyProcessCenterPosition(savData.tyyMapLoc, this.tyyWindowSize);
                //地图
                tyyMapLocation = savData.tyyMapLoc;
                //TOWARDS
                tyyCharacterImageTowardsImages.Add(towardStop);
                tyyCharacterImageTowardsImages.Add(towardWalk1);
                tyyCharacterImageTowardsImages.Add(towardStop);
                tyyCharacterImageTowardsImages.Add(towardWalk2);
                //BACK
                tyyCharacterImageBackImages.Add(backStop);
                tyyCharacterImageBackImages.Add(backWalk1);
                tyyCharacterImageBackImages.Add(backStop);
                tyyCharacterImageBackImages.Add(backWalk2);
                //LEFT
                tyyCharacterImageLeftImages.Add(leftStop);
                tyyCharacterImageLeftImages.Add(leftWalk1);
                tyyCharacterImageLeftImages.Add(leftStop);
                tyyCharacterImageLeftImages.Add(leftWalk2);
                //RIGHT
                tyyCharacterImageRightImages.Add(rightStop);
                tyyCharacterImageRightImages.Add(rightWalk1);
                tyyCharacterImageRightImages.Add(rightStop);
                tyyCharacterImageRightImages.Add(rightWalk2);

                //water
                tyyWaterImages.Add(Properties.Resources.wat_1);
                tyyWaterImages.Add(Properties.Resources.wat_2);
                tyyWaterImages.Add(Properties.Resources.wat_3);
                tyyWaterImages.Add(Properties.Resources.wat_4);
                tyyWaterImages.Add(Properties.Resources.wat_5);
                tyyWaterImages.Add(Properties.Resources.wat_6);
                tyyWaterImages.Add(Properties.Resources.wat_7);
                tyyWaterImages.Add(Properties.Resources.wat_8);
            }
            catch
            {
                TYYCoreGUI.tyyErrMsg("Game Frame Init Failed!");
            }
        }
示例#4
0
        private void tyyEscDlg_Load(object sender, EventArgs e)
        {
            buttonList.Add(buttonContinue);
            buttonList.Add(buttonSave);
            buttonList.Add(buttonExit);

            this.buttonLocInit();
            timerAnimation.Interval = 1;
            timerAnimation.Enabled  = true;

            TYYCoreGUI.tyyButtonColorChange(buttonList[buttonChoseIndex], false);

            axButPlayer.URL = locData.tyyButtonSound;
            axButPlayer.Ctlcontrols.stop();

            this.Size = new Size(400, 300);
            this.CenterToParent();
        }
示例#5
0
        //构造函数
        public TYYCoreDataSav()
        {
            tyyCurrentSavePath.Add(@Environment.CurrentDirectory + @"\dat\sav\rec_loc.txt");
            tyyCurrentSavePath.Add(@Environment.CurrentDirectory + @"\dat\sav\rec_map.txt");

            String[] mapLoc = File.ReadAllLines(tyyCurrentSavePath[0], Encoding.ASCII);

            int x = Convert.ToInt32(mapLoc[0]);
            int y = Convert.ToInt32(mapLoc[1]);

            tyyMapName = File.ReadAllText(tyyCurrentSavePath[1], Encoding.ASCII);
            if (tyyMapName == "")
            {
                TYYCoreGUI.tyyErrMsg("Application Crash cause your Save File Broken!");
                Application.Exit();
            }

            tyyMapLoc = new Point(x, y);
        }
示例#6
0
        private void tyySettingDlg_Load(object sender, EventArgs e)
        {
            buttonList.Add(buttonBGM);
            this.buttonLocInit();

            isNeedBgm = myLocData.tyyGetIsBgmNeed();
            if (isNeedBgm)
            {
                pictureCheck.Image = Properties.Resources.chc;
            }
            else
            {
                pictureCheck.Image = null;
            }


            TYYCoreGUI.tyyButtonColorChange(buttonList[buttonChoseIndex], false);

            timerAnimation.Enabled = true;

            this.Size = new Size(400, 300);
            this.CenterToParent();
        }
        /// <summary>
        /// 参数_fileToget请使用TYYObjectName类成员
        /// </summary>
        /// <param name="_mapName"></param>
        /// <param name="_fileToget"></param>
        //初始化物体构造函数
        public TYYCoreMapCharger(String _mapName, String _fileToget)
        {
            this.tyyCurrentToget = _fileToget;

            String currentPathForGen = currentPath + @_mapName + TYYSpecialSymbol.tyySeparator;

            currentPath = currentPathForGen + @_mapName;//@"\maps\**map\**map+"?""
            String[] mapObjectloc;
            try
            {
                mapObjectloc = File.ReadAllLines(currentPath + /*@"_obj"*/ _fileToget + TYYSpecialSymbol.tyyTxt, Encoding.ASCII);
            }//获取物体&地图转化坐标
            catch
            {
                mapObjectloc = new String[1];
            }
            //
            //////    ///////
            if (_fileToget == TYYObjectName.tyyTree || _fileToget == TYYObjectName.tyyWater)
            {
                tyyMapObjectLoc = tyyConvertToPoint(mapObjectloc, null /*objs*/);
                tyyMapObjectNum = mapObjectloc.Length / 2;
            }
            //////    ///////
            //地图转化
            else if (_fileToget == TYYObjectName.tyyTr)
            {
                int          index    = 0;
                List <Point> trPoints = tyyConvertToPoint(mapObjectloc, TYYObjectName.tyyTr);
                int          trLength = trPoints.Count;
                for (int i = 0; i < trLength / 3; i++)
                {
                    this.tyyPointStart.Add(trPoints[index]);
                    index++;
                    this.tyyPointEnd.Add(trPoints[index]);
                    index++;
                    this.tyyMapTrCharacterLocCur.Add(trPoints[index]);
                    index++;
                }
                //获取转化地图的角色生成坐标
                try
                {
                    String[] trNxtPoints = File.ReadAllLines(currentPath + "_trN" + TYYSpecialSymbol.tyyTxt, Encoding.ASCII);
                    this.tyyMapTrCharacterNxt = this.tyyConvertToPoint(trNxtPoints, null);
                }
                catch
                {
                    TYYCoreGUI.tyyErrMsg("Bad Error");
                }
                this.tyyMapLocName = File.ReadAllText(currentPathForGen + "info" + TYYSpecialSymbol.tyyTxt, Encoding.Default);
                //设置任务
                try
                {
                    this.LEVEL_INDEX = Convert.ToInt32(File.ReadAllText(currentPathForGen + "level" + TYYSpecialSymbol.tyyTxt, Encoding.Default));
                }
                catch
                {
                    this.LEVEL_INDEX = 99;
                }
                //进入地图时说的话
            }
            //////    ///////
            //NPC
            else if (_fileToget == TYYObjectName.tyyNpc)
            {
                String[] mapNpcLoc;
                try
                {
                    String[] getNam = File.ReadAllLines(currentPath + "_npc_n" + TYYSpecialSymbol.tyyTxt, Encoding.ASCII);
                    this.tyyNpcNamIns = new List <String>(getNam);
                    mapNpcLoc         = File.ReadAllLines(currentPath + "_npc_loc" + TYYSpecialSymbol.tyyTxt, Encoding.Default);
                }
                catch
                {
                    return;
                }
                //获取坐标
                this.tyyNpcloc = this.tyyConvertToPoint(mapNpcLoc, TYYObjectName.tyyNpc);

                //加载图片
                foreach (String img in tyyNpcNamIns)
                {
                    Image curImg = Image.FromFile(currentPath + "_" + img + TYYSpecialSymbol.tyyPng);
                    this.tyyNpcImg.Add(curImg);
                }
                //
                try
                {
                    for (int n_index = 0; n_index <= this.tyyObjNpcInfo.Count; n_index = n_index + 2)
                    {
                        this.tyyNpcNam.Add(this.tyyObjNpcInfo[n_index]);
                    }
                }
                catch
                {
                }
                //
                try
                {
                    for (int d_index = 1; d_index <= this.tyyObjNpcInfo.Count; d_index = d_index + 2)
                    {
                        this.tyyObjNpcDlg.Add(this.tyyObjNpcInfo[d_index]);
                    }
                }
                catch
                {
                }
                tyyMapObjectNum = this.tyyNpcloc.Count;
            }
            //////    ///////
            //泛型物体
            else if (_fileToget == TYYObjectName.tyyGen)
            {
                String[] ObjNames;
                try
                {
                    ObjNames = File.ReadAllLines(currentPath + /*@"_obj"*/ _fileToget + TYYSpecialSymbol.tyyTxt, Encoding.Default);
                    if (ObjNames.Length == 0)
                    {
                        return;
                    }
                }
                catch
                {
                    return;
                }
                this.tyyGenObjName = new List <String>(ObjNames);

                int N_Index = -1;
                foreach (String names in tyyGenObjName)
                {
                    N_Index++;
                    Image GenObj = Image.FromFile(currentPathForGen + names + TYYSpecialSymbol.tyyPng);
                    this.tyyGenObjImg.Add(GenObj);

                    String[] GenObjPoint = File.ReadAllLines(currentPathForGen + names + TYYSpecialSymbol.tyyTxt, Encoding.Default);
                    this.tyyGenObjLoc.AddRange(this.tyyConvertToPoint(GenObjPoint, TYYObjectName.tyyGen));

                    this.tyyGenDlgList[N_Index] = new List <string>(this.tyyObjGenDlg);
                }
            }
        }
示例#8
0
        private void tyyEscDlg_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Up:
                if (buttonChoseIndex == 0)
                {
                    buttonChoseIndex = 2;
                    TYYCoreGUI.tyyButtonColorChange(buttonContinue, true);
                    TYYCoreGUI.tyyButtonColorChange(buttonExit, false);
                }
                else
                {
                    buttonChoseIndex--;
                    TYYCoreGUI.tyyButtonColorChange(buttonList[buttonChoseIndex + 1], true);
                    TYYCoreGUI.tyyButtonColorChange(buttonList[buttonChoseIndex], false);
                }
                break;

            case Keys.Down:
                if (buttonChoseIndex == 2)
                {
                    buttonChoseIndex = 0;
                    TYYCoreGUI.tyyButtonColorChange(buttonExit, true);
                    TYYCoreGUI.tyyButtonColorChange(buttonContinue, false);
                }
                else
                {
                    buttonChoseIndex++;
                    TYYCoreGUI.tyyButtonColorChange(buttonList[buttonChoseIndex - 1], true);
                    TYYCoreGUI.tyyButtonColorChange(buttonList[buttonChoseIndex], false);
                }
                break;

            case Keys.Space:
                if (buttonChoseIndex == 0)    //继续
                {
                    this.Hide();
                }
                else if (buttonChoseIndex == 1)    //保存
                {
                    TYYCoreGUI.tyyErrMsg("So sorry that we don't offer Save Function in this game" + "\n" + "VWRD is terribly sorry");
                    //TYYCoreDataSav saveData = new TYYCoreDataSav();
                    //saveData.tyySaveMapInfo(_mapLoc, _mapPath);
                }
                else if (buttonChoseIndex == 2)    //退出
                {
                    Application.Exit();
                }

                break;

            case Keys.Escape:
                this.Hide();
                break;

            default: return;
            }
            axButPlayer.Ctlcontrols.stop();
            axButPlayer.Ctlcontrols.play();
        }
示例#9
0
        private void tyyIndex_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Up:
                if (buttonChoseIndex == 0)
                {
                    buttonChoseIndex = 2;
                    tyyButtonColorChange(buttonPlay, true);
                    tyyButtonColorChange(buttonExit, false);
                }
                else
                {
                    buttonChoseIndex--;
                    tyyButtonColorChange(buttonList[buttonChoseIndex + 1], true);
                    tyyButtonColorChange(buttonList[buttonChoseIndex], false);
                }
                break;

            case Keys.Down:
                if (buttonChoseIndex == 2)
                {
                    buttonChoseIndex = 0;
                    tyyButtonColorChange(buttonExit, true);
                    tyyButtonColorChange(buttonPlay, false);
                }
                else
                {
                    buttonChoseIndex++;
                    tyyButtonColorChange(buttonList[buttonChoseIndex - 1], true);
                    tyyButtonColorChange(buttonList[buttonChoseIndex], false);
                }
                break;

            case Keys.Space:
                if (buttonChoseIndex == 0)
                {
                    this.axButPlayer.Dispose();
                    this.CenterToScreen();
                    mainFrame.ShowDialog();
                }
                else if (buttonChoseIndex == 1)
                {
                    TYYCoreGUI.tyyErrMsg("This game do not need any settings" + "\n" + "VWRD is terribly sorry");
                    //setFrame.ShowDialog();
                }
                else if (buttonChoseIndex == 2)
                {
                    Application.Exit();
                }
                break;

            default: return;
            }
            try
            {
                axButPlayer.Ctlcontrols.stop();
                axButPlayer.Ctlcontrols.play();
            }
            catch
            {
                return;
            }
        }
示例#10
0
        //键盘响应事件
        private void MainFrame_KeyDown(object sender, KeyEventArgs e)
        {
            //esc窗口弹出
            if (e.KeyCode == Keys.Escape)
            {
                String mapName;
                if (curMapName == null)
                {
                    mapName = ObjDataSav.tyyMapName;
                }
                else
                {
                    mapName = curMapName;
                }
                tyyEscDlg tyyEDlg = new tyyEscDlg(_mainMap.Location, mapName);
                tyyEDlg.Owner = this;
                tyyEDlg.ShowDialog();
                return;
            }
            //rpg窗口弹出
            if (e.KeyCode == Keys.Space)
            {
                bool isEnd = false;

                if ((recentHit != null || ObjAnimation.tyyHitObjName != null))
                {
                    TYYCoreGUI.tyyRPGDlgProcess(this, ObjAnimation.tyyDlg);
                    List <String> info = new List <String>();
                    if (ObjAnimation.tyyHitObjName == TYYObjectName.tyyTree || recentHit == TYYObjectName.tyyTree)
                    {
                        info = TYYDlgInfo.tyyStaticInfo(TYYObjectName.tyyTree);
                        this.tyyDlgShow(info[0], info[1]);
                    }
                    if (ObjAnimation.tyyHitObjName == TYYObjectName.tyyWater || recentHit == TYYObjectName.tyyWater)
                    {
                        info = TYYDlgInfo.tyyStaticInfo(TYYObjectName.tyyWater);
                        this.tyyDlgShow(info[0], info[1]);
                    }
                    if (ObjAnimation.tyyHitObjName == TYYObjectName.tyyNpc || recentHit == TYYObjectName.tyyNpc)
                    {
                        if (ObjAnimation.LEVEL_INDEX == 99)
                        {
                            recentHit = ObjAnimation.tyyHitObjName;
                            ObjAnimation.tyyDlg.tyySetList(ObjAnimation.tyyNpcNames, ObjAnimation.tyyNpcDlgs, false, 0);
                            ObjAnimation.tyyDlg.Visible = false;
                            ObjAnimation.tyyDlg.ShowDialog();
                            return;
                        }
                        if (ObjAnimation.LEVEL_INDEX != ObjLevel.I_LEVEL)
                        {
                            this.tyyDlgShow("……", "请先完成当前任务");
                        }

                        else
                        {
                            recentHit = ObjAnimation.tyyHitObjName;
                            ObjAnimation.tyyDlg.tyySetList(ObjAnimation.tyyNpcNames, ObjAnimation.tyyNpcDlgs, false, 0);
                            ObjAnimation.tyyDlg.Visible = false;
                            ObjAnimation.tyyDlg.ShowDialog();
                            //level up
                            isEnd = this.ObjLevel.tyyLevelUp();
                            //set level name
                            this.tyyFreshTask();
                        }
                    }
                    //
                    if (ObjAnimation.tyyHitObjName == TYYObjectName.tyyGen || recentHit == TYYObjectName.tyyGen)
                    {
                        recentHit = ObjAnimation.tyyHitObjName;
                        this.tyyLevelUp("老王的桌子");

                        ObjAnimation.tyyDlg.tyySetList(ObjAnimation.tyyGenNames, ObjAnimation.tyyGenDlgs[ObjAnimation.tyyIndexInt], true, ObjAnimation.tyyIndexInt);
                        ObjAnimation.tyyDlg.Visible = false;
                        ObjAnimation.tyyDlg.ShowDialog();
                    }

                    ObjAnimation.tyyHitObjName = null;
                    this.tyyImStop();
                    if (isEnd)
                    {
                        this.Dispose();         /*Extend*/
                    }
                    else
                    {
                        return;
                    }
                }
            }
            recentHit = null;
            //人物移动
            if (e.KeyCode == Keys.S || e.KeyCode == Keys.Down)
            {
                if (!isEcho)
                {
                    ObjAnimation.tyyCharacterImEcho(0); isEcho = true;
                }
                ObjAnimation.tyyCharacterMove[0].Start();
                ObjAnimation.tyyFlag = 0;
                recentKey            = "S";
                ObjAnimation.tyyKeys = e.KeyCode;
            }
            else if (e.KeyCode == Keys.W || e.KeyCode == Keys.Up)
            {
                if (!isEcho)
                {
                    ObjAnimation.tyyCharacterImEcho(1); isEcho = true;
                }
                ObjAnimation.tyyCharacterMove[1].Start();
                ObjAnimation.tyyFlag = 1;
                recentKey            = "W";
                ObjAnimation.tyyKeys = e.KeyCode;
            }
            else if (e.KeyCode == Keys.D || e.KeyCode == Keys.Right)
            {
                if (!isEcho)
                {
                    ObjAnimation.tyyCharacterImEcho(2); isEcho = true;
                }
                ObjAnimation.tyyCharacterMove[2].Start();
                ObjAnimation.tyyFlag = 2;
                recentKey            = "D";
                ObjAnimation.tyyKeys = e.KeyCode;
            }
            else if (e.KeyCode == Keys.A || e.KeyCode == Keys.Left)
            {
                if (!isEcho)
                {
                    ObjAnimation.tyyCharacterImEcho(3); isEcho = true;
                }
                ObjAnimation.tyyCharacterMove[3].Start();
                ObjAnimation.tyyFlag = 3;
                recentKey            = "A";
                ObjAnimation.tyyKeys = e.KeyCode;
            }
            else
            {
                return;
            }

            //坐标移动
            ObjAnimation.tyyMapMove1.Enabled = true;
            ObjAnimation.tyyMapMove1.Start();
            if (ObjAnimation.tyyDlg.isVisiable == true)
            {
                ObjAnimation.tyyDlg.Visible = false;
            }

            //地图转化
            if (ObjAnimation.tyyNeedTr == true)
            {
                curMapName = ObjMapCharger.tyyMapTrName[ObjAnimation.tyyMapIndex];
                this.tyyInitMapFrame(curMapName);
                ObjAnimation.tyyNeedTr = false;
                return;
            }

            //Bgm Play
            if (e.KeyCode == Keys.S || e.KeyCode == Keys.Down || e.KeyCode == Keys.W || e.KeyCode == Keys.Up || e.KeyCode == Keys.D || e.KeyCode == Keys.Right || e.KeyCode == Keys.A || e.KeyCode == Keys.Left)
            {
                if (this.Count == 30)
                {
                    try
                    {
                        axWalkPlayer.Ctlcontrols.stop();
                        axWalkPlayer.Ctlcontrols.play();
                        Count = 0;
                    }
                    catch
                    {
                        return;
                    }
                }
                else
                {
                    Count++;
                }
            }
        }
示例#11
0
        private void tyyInitObjects(String objectType)
        {
            int index = 0;

            type = objectType;
            if (objectType != TYYObjectName.tyyGen)
            {
                while (index < ObjMapCharger.tyyMapObjectNum)
                {
                    PictureBox objPic = new PictureBox();
                    if (objectType == TYYObjectName.tyyTree)
                    {
                        ObjectsTre.Add(objPic);
                        ObjectsTre[index].Parent    = _mainMap;
                        ObjectsTre[index].BackColor = Color.Transparent;
                        ObjectsTre[index].Image     = TYYCoreDataDyn.tyyObjectTree;
                        ObjectsTre[index].Size      = TYYCoreDataDyn.tyyObjectTreeSize;
                        ObjectsTre[index].Location  = ObjMapCharger.tyyMapObjectLoc[index];
                        //Clean when first time run these code
                    }

                    if (objectType == TYYObjectName.tyyWater)
                    {
                        ObjectsWat.Add(objPic);
                        ObjectsWat[index].Size      = TYYCoreDataDyn.tyyObjectWaterSize;
                        ObjectsWat[index].Parent    = _mainMap;
                        ObjectsWat[index].BackColor = Color.Transparent;
                        ObjectsWat[index].Location  = ObjMapCharger.tyyMapObjectLoc[index];
                    }

                    if (objectType == TYYObjectName.tyyNpc)
                    {
                        ObjectsNpc.Add(objPic);
                        ObjectsNpc[index].Parent    = _mainMap;
                        ObjectsNpc[index].BackColor = Color.Transparent;
                        ObjectsNpc[index].Image     = ObjMapCharger.tyyNpcImg[index];
                        ObjectsNpc[index].Size      = new Size(TYYCoreDataDyn.tyyInitCharacterSize);
                        ObjectsNpc[index].Location  = ObjMapCharger.tyyNpcloc[index];
                    }
                    index++;
                }
            }
            else
            {
                try
                {
                    while (index < ObjMapCharger.tyyGenObjName.Count)
                    {
                        PictureBox objPic = new PictureBox();
                        ObjectsGen.Add(objPic);
                        ObjectsGen[index].Parent    = _mainMap;
                        ObjectsGen[index].BackColor = Color.Transparent;
                        ObjectsGen[index].Image     = ObjMapCharger.tyyGenObjImg[index];
                        ObjectsGen[index].Size      = ObjMapCharger.tyyGenObjImg[index].Size;
                        ObjectsGen[index].Location  = ObjMapCharger.tyyGenObjLoc[index];
                        index++;
                    }
                }
                catch
                {
                    TYYCoreGUI.tyyErrMsg("Bad Error:Gen Obj init fail!");
                    return;
                }
            }

            if (objectType == TYYObjectName.tyyWater)
            {
                ObjAnimation.tyyObjWat.Clear();
                ObjWaterAnimation.tyyDynSource = ObjDataDyn.tyyWaterImages;
                ObjWaterAnimation.tyyDynList   = ObjectsWat;
                ObjAnimation.tyyObjWat.AddRange(ObjectsWat);
                ObjAnimation.tyyWatNums = ObjMapCharger.tyyMapObjectNum;
                return;
            }
            else if (objectType == TYYObjectName.tyyTree)
            {
                ObjAnimation.tyyObjTre.Clear();
                ObjAnimation.tyyObjTre.AddRange(ObjectsTre);
                ObjAnimation.tyyTreNums = ObjMapCharger.tyyMapObjectNum;
            }
            else if (objectType == TYYObjectName.tyyNpc)
            {
                ObjAnimation.tyyObjNpc.Clear();
                ObjAnimation.tyyObjNpc.AddRange(ObjectsNpc);
                //dlgs
                ObjAnimation.tyyNpcDlgs = ObjMapCharger.tyyObjNpcDlg;
                // inside name
                ObjAnimation.tyyNpcNamesIns = ObjMapCharger.tyyNpcNamIns;
                // correct name
                ObjAnimation.tyyNpcNames = ObjMapCharger.tyyNpcNam;
                ObjAnimation.tyyNpcNums  = ObjMapCharger.tyyMapObjectNum;
            }
            else if (objectType == TYYObjectName.tyyGen)
            {
                ObjAnimation.tyyObjGen.Clear();
                ObjAnimation.tyyObjGen.AddRange(ObjectsGen);
                ObjAnimation.tyyGenDlgs  = ObjMapCharger.tyyGenDlgList;
                ObjAnimation.tyyGenNames = ObjMapCharger.tyyGenObjName;
                ObjAnimation.tyyGenNums  = ObjMapCharger.tyyGenObjName.Count;
            }
        }
示例#12
0
 private void tyyMainFrame_LocationChanged(object sender, EventArgs e)
 {
     TYYCoreGUI.tyyRPGDlgProcess(this, ObjAnimation.tyyDlg);
 }
示例#13
0
 private void rPGDlgToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ObjAnimation.tyyDlg.Owner = this;
     //启动rpg对话框
     TYYCoreGUI.tyyRPGDlgProcess(this, ObjAnimation.tyyDlg);
 }