UI Parameter for .fx Texture2D
상속: UIbaseParam
        private void Textbox_TextChanged(object sender, System.EventArgs e)
        {
            TextBox          tb = sender as TextBox;
            UITexture2DParam p  = tb.Tag as UITexture2DParam;

            p.Value = tb.Text;
        }
예제 #2
0
        void Parse_Texture2DParam(string _inputs, string _value)
        {
            UITexture2DParam p = UITexture2DParam.FromString(_inputs, _value);

            if (p != null)
            {
                m_game.Parameters.Add(p);
            }
        }
예제 #3
0
        public static UITexture2DParam FromString(string _inputs, string _value)
        {
            //Inputs => display name
            //ex. "xAmbiantTex"
            string name = _inputs.Replace("\"", "");

            //Value
            //ex. "0" -> slotIdx
            string value = _value;

            //Create instance
            var param = new UITexture2DParam(value);

            param.Name  = name;
            param.Value = value;
            return(param);
        }
예제 #4
0
        public static UITexture2DParam FromString(string _inputs, string _value)
        {
            //Inputs => display name
            //ex. "xAmbiantTex"
            string name = _inputs.Replace("\"", "");

            //Value 
            //ex. "0" -> slotIdx
            string value = _value;

            //Create instance
            var param = new UITexture2DParam(value);
            param.Name = name;
            param.Value = value;
            return param;

        }