コード例 #1
0
        /// <summary>
        /// Construct with existing flags
        /// </summary>
        /// <param name="flags"></param>
        public StringFilterWidget(string search)
        {
            using (new GUILayout.HorizontalScope(_containerStyle)) {
                Value = new TextEditWidget("Filter by names : ", search).Value;
                GUILayout.Space(5);
                if (GUILayout.Button("Clear", GUILayout.ExpandWidth(false)))
                {
                    Value = "";
                }
            }

            if (search != Value)
            {
                Log.Write("StringFilterWidget: has changed ! [" + search + "] => [" + Value + "]");
            }
        }