• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TextEffects类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中TextEffects的典型用法代码示例。如果您正苦于以下问题:C# TextEffects类的具体用法?C# TextEffects怎么用?C# TextEffects使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TextEffects类属于命名空间,在下文中一共展示了TextEffects类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Declare

		public override void Declare ()
		{
			label = "Button";
			hotspotLabel = "";
			hotspotLabelID = -1;
			isVisible = true;
			isClickable = true;
			textEffects = TextEffects.None;
			buttonClickType = AC_ButtonClickType.RunActionList;
			simulateInput = SimulateInputType.Button;
			simulateValue = 1f;
			numSlots = 1;
			anchor = TextAnchor.MiddleCenter;
			SetSize (new Vector2 (10f, 5f));
			doFade = false;
			switchMenuTitle = "";
			inventoryBoxTitle = "";
			shiftInventory = AC_ShiftInventory.ShiftLeft;
			loopJournal = false;
			actionList = null;
			inputAxis = "";
			clickTexture = null;
			clickAlpha = 0f;
			shiftAmount = 1;
			onlyShowWhenEffective = false;
			allowContinuousClick = false;

			base.Declare ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:29,代码来源:MenuButton.cs


示例2: ShowGUI

		public override void ShowGUI ()
		{
			EditorGUILayout.BeginVertical ("Button");
			textEffects = (TextEffects) EditorGUILayout.EnumPopup ("Text effect:", textEffects);
			craftingType = (CraftingElementType) EditorGUILayout.EnumPopup ("Crafting element type:", craftingType);

			if (craftingType == CraftingElementType.Ingredients)
			{
				numSlots = EditorGUILayout.IntSlider ("Number of slots:", numSlots, 1, 12);
				slotSpacing = EditorGUILayout.Slider ("Slot spacing:", slotSpacing, 0f, 20f);
				orientation = (ElementOrientation) EditorGUILayout.EnumPopup ("Slot orientation:", orientation);
				if (orientation == ElementOrientation.Grid)
				{
					gridWidth = EditorGUILayout.IntSlider ("Grid size:", gridWidth, 1, 10);
				}
			}
			else
			{
				categoryID = -1;
				numSlots = 1;
			}

			isClickable = true;
			EditorGUILayout.EndVertical ();
			
			PopulateList ();
			base.ShowGUI ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:28,代码来源:MenuCrafting.cs


示例3: Declare

		public override void Declare ()
		{
			isVisible = true;
			isClickable = true;
			numSlots = 4;
			SetSize (new Vector2 (6f, 10f));
			textEffects = TextEffects.None;
			craftingType = CraftingElementType.Ingredients;
			items = new List<InvItem>();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:10,代码来源:MenuCrafting.cs


示例4: Show

 //static TextManager()
 //{
 //    _textEffects = GameObject.Find("Level").GetComponent<TextEffects>();
 //}
 public static void Show(
     string text, 
     TextEffects.Size size = TextEffects.Size.Medium, 
     TextEffects.Effect effect = TextEffects.Effect.Normal,
     Vector2 position = new Vector2())
 {
     var o = new GameObject("Flashing_Text");
     o.transform.position = position;
     o.AddComponent<TextEffects>().Add(text, size, effect);
     Object.Destroy(o, 5);
 }
开发者ID:nightwolfz,项目名称:Game1,代码行数:15,代码来源:TextManager.cs


示例5: ShowGUI

		public override void ShowGUI ()
		{
			EditorGUILayout.BeginVertical ("Button");
			label = EditorGUILayout.TextField ("Label text:", label);
			anchor = (TextAnchor) EditorGUILayout.EnumPopup ("Text alignment:", anchor);
			textEffects = (TextEffects) EditorGUILayout.EnumPopup ("Text effect:", textEffects);
			cycleType = (AC_CycleType) EditorGUILayout.EnumPopup ("Cycle type:", cycleType);
			if (cycleType == AC_CycleType.CustomScript || cycleType == AC_CycleType.Variable)
			{
				int numOptions = optionsArray.Count;
				numOptions = EditorGUILayout.IntField ("Number of choices:", optionsArray.Count);
				if (numOptions < 0)
				{
					numOptions = 0;
				}
				
				if (numOptions < optionsArray.Count)
				{
					optionsArray.RemoveRange (numOptions, optionsArray.Count - numOptions);
				}
				else if (numOptions > optionsArray.Count)
				{
					if(numOptions > optionsArray.Capacity)
					{
						optionsArray.Capacity = numOptions;
					}
					for (int i=optionsArray.Count; i<numOptions; i++)
					{
						optionsArray.Add ("");
					}
				}
				
				for (int i=0; i<optionsArray.Count; i++)
				{
					optionsArray [i] = EditorGUILayout.TextField ("Choice #" + i.ToString () + ":", optionsArray [i]);
				}
				
				if (cycleType == AC_CycleType.CustomScript)
				{
					if (optionsArray.Count > 0)
					{
						selected = EditorGUILayout.IntField ("Default option #:", selected);
					}
					ShowClipHelp ();
				}
				else if (cycleType == AC_CycleType.Variable)
				{
					varID = EditorGUILayout.IntField ("Global Variable ID:", varID);
				}
			}
			EditorGUILayout.EndVertical ();
			
			base.ShowGUI ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:54,代码来源:MenuCycle.cs


示例6: Declare

		public override void Declare ()
		{
			isVisible = true;
			isClickable = true;
			numSlots = 1;
			anchor = TextAnchor.MiddleCenter;
			SetSize (new Vector2 (5f, 5f));
			iconID = -1;
			textEffects = TextEffects.None;
			
			base.Declare ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:12,代码来源:MenuInteraction.cs


示例7: Declare

 /**
  * Initialises the element when it is created within MenuManager.
  */
 public override void Declare()
 {
     uiSlots = null;
     isVisible = true;
     isClickable = true;
     numSlots = 4;
     SetSize (new Vector2 (6f, 10f));
     textEffects = TextEffects.None;
     craftingType = CraftingElementType.Ingredients;
     displayType = ConversationDisplayType.IconOnly;
     items = new List<InvItem>();
 }
开发者ID:farreltr,项目名称:OneLastSunset,代码行数:15,代码来源:MenuCrafting.cs


示例8: ShowGUI

		public override void ShowGUI ()
		{
			EditorGUILayout.BeginVertical ("Button");
				displayType = (AC_DisplayType) EditorGUILayout.EnumPopup ("Display type:", displayType);
				GetCursorGUI ();
			
				if (displayType != AC_DisplayType.IconOnly)
				{
					anchor = (TextAnchor) EditorGUILayout.EnumPopup ("Text alignment:", anchor);
					textEffects = (TextEffects) EditorGUILayout.EnumPopup ("Text effect:", textEffects);
				}
			EditorGUILayout.EndVertical ();

			base.ShowGUI ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:15,代码来源:MenuInteraction.cs


示例9: Declare

        public override void Declare()
        {
            label = "Button";
            isVisible = true;
            isClickable = true;
            textEffects = TextEffects.None;
            numSlots = 1;
            anchor = TextAnchor.MiddleCenter;
            SetSize (new Vector2 (10f, 5f));
            dragRect = new Rect (0,0,0,0);
            dragType = DragElementType.EntireMenu;
            elementName = "";

            base.Declare ();
        }
开发者ID:IJkeB,项目名称:Ekster_Final,代码行数:15,代码来源:MenuDrag.cs


示例10: Declare

		public override void Declare ()
		{
			label = "Cycle";
			selected = 0;
			isVisible = true;
			isClickable = true;
			numSlots = 1;
			textEffects = TextEffects.None;
			SetSize (new Vector2 (15f, 5f));
			anchor = TextAnchor.MiddleLeft;
			cycleType = AC_CycleType.CustomScript;
			varID = 0;
			optionsArray = new List<string>();
			
			base.Declare ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:16,代码来源:MenuCycle.cs


示例11: Declare

		public override void Declare ()
		{
			label = "Input";
			isVisible = true;
			isClickable = true;
			numSlots = 1;
			anchor = TextAnchor.MiddleCenter;
			SetSize (new Vector2 (10f, 5f));
			inputType = AC_InputType.AlphaNumeric;
			characterLimit = 10;
			linkedButton = "";
			textEffects = TextEffects.None;
			allowSpaces = false;

			base.Declare ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:16,代码来源:MenuInput.cs


示例12: Declare

		public override void Declare ()
		{
			isVisible = true;
			isClickable = true;
			fixedOption = false;
			displayType = ConversationDisplayType.TextOnly;
			testIcon = null;
			optionToShow = 1;
			numSlots = 0;
			SetSize (new Vector2 (20f, 5f));
			maxSlots = 10;
			anchor = TextAnchor.MiddleLeft;
			textEffects = TextEffects.None;

			base.Declare ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:16,代码来源:MenuDialogList.cs


示例13: Declare

        /**
         * Initialises the element when it is created within MenuManager.
         */
        public override void Declare()
        {
            uiButton = null;
            uiText = null;
            isVisible = true;
            isClickable = true;
            numSlots = 1;
            anchor = TextAnchor.MiddleCenter;
            SetSize (new Vector2 (5f, 5f));
            iconID = -1;
            textEffects = TextEffects.None;
            overrideTexture = false;
            activeTexture = null;

            base.Declare ();
        }
开发者ID:mcbodge,项目名称:eidolon,代码行数:19,代码来源:MenuInteraction.cs


示例14: Declare

		public override void Declare ()
		{
			label = "Label";
			isVisible = true;
			isClickable = false;
			numSlots = 1;
			anchor = TextAnchor.MiddleCenter;
			SetSize (new Vector2 (10f, 5f));
			labelType = AC_LabelType.Normal;
			variableID = 0;
			variableNumber = 0;
			useCharacterColour = false;
			autoAdjustHeight = true;
			textEffects = TextEffects.None;
			newLabel = "";

			base.Declare ();
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:18,代码来源:MenuLabel.cs


示例15: CopyButton

        public void CopyButton(MenuButton _element)
        {
            uiButton = _element.uiButton;
            uiText = _element.uiText;
            label = _element.label;
            hotspotLabel = _element.hotspotLabel;
            hotspotLabelID = _element.hotspotLabelID;
            anchor = _element.anchor;
            textEffects = _element.textEffects;
            buttonClickType = _element.buttonClickType;
            simulateInput = _element.simulateInput;
            simulateValue = _element.simulateValue;
            doFade = _element.doFade;
            switchMenuTitle = _element.switchMenuTitle;
            inventoryBoxTitle = _element.inventoryBoxTitle;
            shiftInventory = _element.shiftInventory;
            loopJournal = _element.loopJournal;
            actionList = _element.actionList;
            inputAxis = _element.inputAxis;
            clickTexture = _element.clickTexture;
            clickAlpha = _element.clickAlpha;
            shiftAmount = _element.shiftAmount;
            onlyShowWhenEffective = _element.onlyShowWhenEffective;
            allowContinuousClick = _element.allowContinuousClick;
            parameterID = _element.parameterID;
            parameterValue = _element.parameterValue;

            base.Copy (_element);
        }
开发者ID:IJkeB,项目名称:Ekster_Final,代码行数:29,代码来源:MenuButton.cs


示例16: CopyInteraction

		public void CopyInteraction (MenuInteraction _element)
		{
			displayType = _element.displayType;
			anchor = _element.anchor;
			textEffects = _element.textEffects;
			iconID = _element.iconID;
			
			base.Copy (_element);
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:9,代码来源:MenuInteraction.cs


示例17: CopyCrafting

		public void CopyCrafting (MenuCrafting _element)
		{
			isClickable = _element.isClickable;
			textEffects = _element.textEffects;
			numSlots = _element.numSlots;
			craftingType = _element.craftingType;
			PopulateList ();
			
			base.Copy (_element);
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:10,代码来源:MenuCrafting.cs


示例18: CopyDrag

        public void CopyDrag(MenuDrag _element)
        {
            label = _element.label;
            anchor = _element.anchor;
            textEffects = _element.textEffects;
            dragRect = _element.dragRect;
            dragType = _element.dragType;
            elementName = _element.elementName;

            base.Copy (_element);
        }
开发者ID:IJkeB,项目名称:Ekster_Final,代码行数:11,代码来源:MenuDrag.cs


示例19: CopyInteraction

        public void CopyInteraction(MenuInteraction _element)
        {
            uiButton = _element.uiButton;
            uiText = null;
            displayType = _element.displayType;
            anchor = _element.anchor;
            textEffects = _element.textEffects;
            iconID = _element.iconID;

            base.Copy (_element);
        }
开发者ID:IJkeB,项目名称:Ekster_Final,代码行数:11,代码来源:MenuInteraction.cs


示例20: CopyInput

		public void CopyInput (MenuInput _element)
		{
			label = _element.label;
			anchor = _element.anchor;
			textEffects = _element.textEffects;
			inputType = _element.inputType;
			characterLimit = _element.characterLimit;
			linkedButton = _element.linkedButton;
			allowSpaces = _element.allowSpaces;

			base.Copy (_element);
		}
开发者ID:amutnick,项目名称:CrackTheCode_Repo,代码行数:12,代码来源:MenuInput.cs



注:本文中的TextEffects类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TextFormat类代码示例发布时间:2022-05-24
下一篇:
C# TextEditorData类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap