本文整理汇总了C#中IPluginHost.Get_Palette方法的典型用法代码示例。如果您正苦于以下问题:C# IPluginHost.Get_Palette方法的具体用法?C# IPluginHost.Get_Palette怎么用?C# IPluginHost.Get_Palette使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPluginHost
的用法示例。
在下文中一共展示了IPluginHost.Get_Palette方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PaletteControl
public PaletteControl(IPluginHost pluginHost)
{
InitializeComponent();
this.pluginHost = pluginHost;
this.palette = pluginHost.Get_Palette();
btnImport.Enabled = palette.CanEdit;
ReadLanguage();
Update_Info();
}
示例2: SpriteControl
public SpriteControl(IPluginHost pluginHost, SpriteBase sprite)
{
InitializeComponent();
this.sprite = sprite;
this.image = pluginHost.Get_Image();
this.palette = pluginHost.Get_Palette();
this.pluginHost = pluginHost;
Read_Language();
Update_Info();
}
示例3: ImageControl
public ImageControl(IPluginHost pluginHost, bool isMap)
{
InitializeComponent();
this.pluginHost = pluginHost;
this.isMap = isMap;
this.palette = pluginHost.Get_Palette();
this.image = pluginHost.Get_Image();
if (isMap)
this.map = pluginHost.Get_Map();
Update_Info();
this.comboDepth.SelectedIndexChanged += new EventHandler(comboDepth_SelectedIndexChanged);
this.numericWidth.ValueChanged += new EventHandler(numericSize_ValueChanged);
this.numericHeight.ValueChanged += new EventHandler(numericSize_ValueChanged);
this.numericStart.ValueChanged += new EventHandler(numericStart_ValueChanged);
ReadLanguage();
Update_Image();
}
示例4: AnimationControl
public AnimationControl(IPluginHost pluginHost, NANR ani)
{
InitializeComponent();
Read_Language();
this.pluginHost = pluginHost;
this.palette = pluginHost.Get_Palette();
this.image = pluginHost.Get_Image();
this.sprite = pluginHost.Get_Sprite();
this.ani = ani;
isAni = true;
if (ani.Struct.abnk.nBanks == 0)
{
MessageBox.Show("No animations.");
isAni = false;
tempo.Enabled = false;
comboAni.Enabled = false;
btnNext.Enabled = false;
btnPlay.Enabled = false;
btnPrevious.Enabled = false;
btnSave.Enabled = false;
btnStop.Enabled = false;
txtTime.Enabled = false;
checkCeldas.Enabled = false;
checkEntorno.Enabled = false;
checkImage.Enabled = false;
checkNumeros.Enabled = false;
checkTransparencia.Enabled = false;
}
for (int i = 0; i < ani.Names.Length; i++)
comboAni.Items.Add(ani.Names[i]);
if (isAni)
comboAni.SelectedIndex = 0;
ShowInfo();
Get_Ani();
tempo.Stop();
tempo.Interval = Convert.ToInt32(txtTime.Text);
if (isAni)
aniBox.Image = bitAni[0];
}