Commit 1e78c172 authored by keyongyu's avatar keyongyu

2.2.6.1

parent 31899356
......@@ -499,7 +499,7 @@ private void InitializeComponent()
this.tb_edittext.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.tb_edittext.Size = new System.Drawing.Size(310, 21);
this.tb_edittext.TabIndex = 4;
this.tb_edittext.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Tb_edittextKeyPress);
this.tb_edittext.TextChanged += new System.EventHandler(this.Tb_edittextTextChanged);
//
// lb_pleft_right
//
......
......@@ -208,7 +208,7 @@ void SetCDB(string cdb)
void InitPath(string datapath)
{
this.datapath=datapath;
confcover= MyPath.Combine(datapath, "cover.jpg");
confcover= MyPath.Combine(datapath, "cover.jpg");
if(File.Exists(confcover))
m_cover=Image.FromFile(confcover);
else
......@@ -1013,10 +1013,9 @@ void Lb_scripttextSelectedIndexChanged(object sender, EventArgs e)
}
//脚本文本
void Tb_edittextKeyPress(object sender, KeyPressEventArgs e)
void Tb_edittextTextChanged(object sender, EventArgs e)
{
if(e.KeyChar==(char)Keys.Enter)
Setscripttext(tb_edittext.Text);
Setscripttext(tb_edittext.Text);
}
#endregion
......@@ -1568,5 +1567,6 @@ public void CompareCards(string cdbfile,bool checktext)
}
#endregion
}
}
......@@ -596,24 +596,6 @@ string GetFunName(string str)
return str.Substring(t+1);
return str;
}
bool isANSIChar(char c)
{
if((int)c>127)
return false;
return true;
}
int CheckReturn(char[] chars, int index, int MAX)
{
int k=0;
for(k=0;k<MAX;k++)
{
if((index+k)<chars.Length){
if(chars[index+k]=='\n')
return k+1;
}
}
return -1;
}
void AddFuncTooltip(string name,string desc)
{
if(!string.IsNullOrEmpty(name))
......@@ -624,11 +606,12 @@ void AddFuncTooltip(string name,string desc)
tooltipDic.Add(fname, desc );
}
else
tooltipDic[fname] += Environment.NewLine + "●"+desc;
tooltipDic[fname] += Environment.NewLine
+Environment.NewLine +desc;
}
}
#endregion
#region constant
void AddAutoMenuItem(List<AutocompleteItem> list,string key,string desc)
{
bool isExists=false;
......@@ -637,7 +620,8 @@ void AddAutoMenuItem(List<AutocompleteItem> list,string key,string desc)
if(ai.Text==key)
{
isExists=true;
ai.ToolTipText += Environment.NewLine + desc;
ai.ToolTipText += Environment.NewLine
+Environment.NewLine+ desc;
}
}
if(!isExists){
......@@ -647,12 +631,13 @@ void AddAutoMenuItem(List<AutocompleteItem> list,string key,string desc)
list.Add(aitem);
}
}
#region constant
void AddConToolTip(string key, string desc)
{
AddAutoMenuItem(conList, key,desc);
if(tooltipDic.ContainsKey(key))
tooltipDic[key] += Environment.NewLine + desc;
tooltipDic[key] += Environment.NewLine
+Environment.NewLine +desc;
else
tooltipDic.Add(key, desc);
}
......@@ -679,7 +664,8 @@ void AddConstant(string conlua)
AddConToolTip(k, desc);
}
else
tooltipDic[k] += Environment.NewLine + desc;
tooltipDic[k] += Environment.NewLine
+Environment.NewLine+ desc;
}
}
}
......
......@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.2.6.0")]
[assembly: AssemblyVersion("2.2.6.1")]
......@@ -49,7 +49,7 @@ a与b的位异或
●void Card.AddTrapMonsterAttribute(Card c, int extra_type,int attribute,int race,int level,int atk,int def)
【新】为c添加陷阱怪物属性。
extra_type 额外卡片类型
void Card.AddTrapMonsterAttribute(Card c, bool is_effect)
void Card.AddTrapMonsterAttribute(Card c, bool is_effect)
【旧】为c添加陷阱怪物属性。is_effect=true表示视作效果怪物,否则视为通常怪物
注:陷阱怪物属性指的是同时作为怪物和陷阱,
并且额外使一个魔法陷阱的格子不能使用。
......
......@@ -20,13 +20,14 @@ DataEditorX.exe.config
<add key="language" value="english" />英文
★DataEditor:
1.脚本提示文字修改:点击列表,编辑文本,按Enter确定输入
2.攻击力为?,可以输入?,?,-2任意一个都可以
★文件夹pics和script和cdb所在文件夹一致。
卡片复制:
攻击力为?,可以输入?,?,-2任意一个都可以
文件夹pics和script和cdb所在文件夹一致
卡片复制:
替换复制:如果存在卡片,就用最新的替换
不替换复制:如果存在卡片,就跳过
★卡片搜索
卡片搜索
1.仅支持第一个系列名搜索,暂不支持P的刻度搜索
2.支持卡片名称,描述,规则,属性,等级,种族,卡片类型,效果类型,密码
3.ATK,DEF搜索:
......
......@@ -13,15 +13,13 @@ DataEditorX.exe.config
<add key="language" value="english" />
★DataEditor:
1.tips text:Click line and Edit,"Enter" save Edit.
2.Atk/Eef=? , input ? or -2 or ?
Foldet:
pics,script and cdb's folder is a same
1.Atk/Eef=? , input ? or -2 or ?
2.pics,script and cdb's folder is a same
Cards Copy:
3.Cards Copy:
Replace:Yes:If exists then replace old /NO:If exists then ignore
Search Cards:
4.Search Cards:
1.Search By setcode: only one
2.Search By Desc,Rule,attribute,level,race,card type,category
3.search By ATK/DEF:
......@@ -36,7 +34,6 @@ Search Cards:
--alias = 10000000 card code: 10000000 card alias:10000000
--10000000<=code<=20000000 card code: 10000000 card alias:20000000
★Magic Set Editor 2
Download/Update:"Magic Set Editor 2/download.bat"
......
No preview for this file type
......@@ -49,7 +49,7 @@ a与b的位异或
●void Card.AddTrapMonsterAttribute(Card c, int extra_type,int attribute,int race,int level,int atk,int def)
【新】为c添加陷阱怪物属性。
extra_type 额外卡片类型
void Card.AddTrapMonsterAttribute(Card c, bool is_effect)
void Card.AddTrapMonsterAttribute(Card c, bool is_effect)
【旧】为c添加陷阱怪物属性。is_effect=true表示视作效果怪物,否则视为通常怪物
注:陷阱怪物属性指的是同时作为怪物和陷阱,
并且额外使一个魔法陷阱的格子不能使用。
......
# history
F:\games\ygopro\script\c33396948.lua
F:\games\ygopro\cards.cdb
F:\games\ygopro\script\c33396948.lua
F:\games\ygocore\script\c114932.lua
F:\games\ygocore\cards (2).cdb
F:\games\ygopro\script\c32864.lua
......
......@@ -20,13 +20,14 @@ DataEditorX.exe.config
<add key="language" value="english" />英文
★DataEditor:
1.脚本提示文字修改:点击列表,编辑文本,按Enter确定输入
2.攻击力为?,可以输入?,?,-2任意一个都可以
★文件夹pics和script和cdb所在文件夹一致。
卡片复制:
攻击力为?,可以输入?,?,-2任意一个都可以
文件夹pics和script和cdb所在文件夹一致
卡片复制:
替换复制:如果存在卡片,就用最新的替换
不替换复制:如果存在卡片,就跳过
★卡片搜索
卡片搜索
1.仅支持第一个系列名搜索,暂不支持P的刻度搜索
2.支持卡片名称,描述,规则,属性,等级,种族,卡片类型,效果类型,密码
3.ATK,DEF搜索:
......
......@@ -13,15 +13,13 @@ DataEditorX.exe.config
<add key="language" value="english" />
★DataEditor:
1.tips text:Click line and Edit,"Enter" save Edit.
2.Atk/Eef=? , input ? or -2 or ?
Foldet:
pics,script and cdb's folder is a same
1.Atk/Eef=? , input ? or -2 or ?
2.pics,script and cdb's folder is a same
Cards Copy:
3.Cards Copy:
Replace:Yes:If exists then replace old /NO:If exists then ignore
Search Cards:
4.Search Cards:
1.Search By setcode: only one
2.Search By Desc,Rule,attribute,level,race,card type,category
3.search By ATK/DEF:
......@@ -36,7 +34,6 @@ Search Cards:
--alias = 10000000 card code: 10000000 card alias:10000000
--10000000<=code<=20000000 card code: 10000000 card alias:20000000
★Magic Set Editor 2
Download/Update:"Magic Set Editor 2/download.bat"
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment