Пример #1
0
        public static void CreateFont()
        {
            var window = Dialog.ShowDialog <CreateFontDialogWindow>("Create font", DialogType.YesNo);

            window.Yes += sender =>
            {
                var font     = CoreUIStyleCreator.CreateStyle <CoreUIFont>(sender.Name);
                var material = new Material(Shader.Find("CoreUI/CoreUITextMeshShader"));
                material.SetTexture("_MainTex", sender.Texture);
                font.Material = material;
                ObjectCreatorHelper.CreateAsset(material, string.Format("{0}.mat", sender.Name));
                font.Texture = sender.Texture;
            };
        }
Пример #2
0
 public static void CreateToggleStyle()
 {
     CoreUIStyleCreator.CreateStyle <ButtonStyle>();
 }
Пример #3
0
 public static void CreateScrollStyle()
 {
     CoreUIStyleCreator.CreateStyle <ScrollStyle>();
 }
Пример #4
0
 public static void CreateSliderStyle()
 {
     CoreUIStyleCreator.CreateStyle <SliderStyle>();
 }
Пример #5
0
 public static void CreateFlexibleImageStyle()
 {
     CoreUIStyleCreator.CreateStyle <FlexibleImageStyle>();
 }
Пример #6
0
 public static void CreateImageStyle()
 {
     CoreUIStyleCreator.CreateStyle <ImageStyle>();
 }
Пример #7
0
 public static void CreateWindowStyle()
 {
     CoreUIStyleCreator.CreateStyle <WindowStyle>();
 }