コード例 #1
0
        /// <summary>
        /// You can use this to setop the Controls on a TabPage befor it is dispplayed
        /// </summary>
        protected override void InitTabPage()
        {
            if (tDirectionalLight == null)
            {
                tDirectionalLight = new SimPe.Plugin.TabPage.DirectionalLight();
            }
            tDirectionalLight.tb_l_ver.Text  = "0x" + Helper.HexString(this.version);
            tDirectionalLight.tb_l_name.Text = unknown2;

            tDirectionalLight.tb_l_1.Text = unknown3.ToString();
            tDirectionalLight.tb_l_2.Text = unknown4.ToString();
            tDirectionalLight.tb_l_3.Text = red.ToString();
            tDirectionalLight.tb_l_4.Text = green.ToString();
            tDirectionalLight.tb_l_5.Text = blue.ToString();

            tDirectionalLight.label39.Visible = false;
            tDirectionalLight.label44.Visible = false;
            tDirectionalLight.label45.Visible = false;
            tDirectionalLight.label46.Visible = false;

            tDirectionalLight.tb_l_6.Visible = false;
            tDirectionalLight.tb_l_7.Visible = false;
            tDirectionalLight.tb_l_8.Visible = false;
            tDirectionalLight.tb_l_9.Visible = false;
        }
コード例 #2
0
 public override void Dispose()
 {
     if (this.tDirectionalLight != null)
     {
         this.tDirectionalLight.Dispose();
     }
     tDirectionalLight = null;
 }