本文整理汇总了C#中TextDefinition类的典型用法代码示例。如果您正苦于以下问题:C# TextDefinition类的具体用法?C# TextDefinition怎么用?C# TextDefinition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TextDefinition类属于命名空间,在下文中一共展示了TextDefinition类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: AddHtmlText
public void AddHtmlText(int x, int y, int width, int height, TextDefinition text, bool back, bool scroll)
{
if (text != null && text.Number > 0)
this.AddHtmlLocalized(x, y, width, height, text.Number, back, scroll);
else if (text != null && text.String != null)
this.AddHtml(x, y, width, height, text.String, back, scroll);
}
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:FactionGump.cs
示例2: ImageTileButtonInfo
public ImageTileButtonInfo(int itemID, int hue, TextDefinition label, int localizedTooltip)
{
this.m_Hue = hue;
this.m_ItemID = itemID;
this.m_Label = label;
this.m_LocalizedTooltip = localizedTooltip;
}
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:BaseImageTileButtonsGump.cs
示例3: FactionDefinition
public FactionDefinition( int sort, int huePrimary, int hueSecondary, int hueJoin, int hueBroadcast, int warHorseBody, int warHorseItem, string friendlyName, string keyword, string abbreviation, TextDefinition name, TextDefinition propName, TextDefinition header, TextDefinition about, TextDefinition cityControl, TextDefinition sigilControl, TextDefinition signupName, TextDefinition factionStoneName, TextDefinition ownerLabel, TextDefinition guardIgnore, TextDefinition guardWarn, TextDefinition guardAttack, StrongholdDefinition stronghold, RankDefinition[] ranks, GuardDefinition[] guards )
{
m_Sort = sort;
m_HuePrimary = huePrimary;
m_HueSecondary = hueSecondary;
m_HueJoin = hueJoin;
m_HueBroadcast = hueBroadcast;
m_WarHorseBody = warHorseBody;
m_WarHorseItem = warHorseItem;
m_FriendlyName = friendlyName;
m_Keyword = keyword;
m_Abbreviation = abbreviation;
m_Name = name;
m_PropName = propName;
m_Header = header;
m_About = about;
m_CityControl = cityControl;
m_SigilControl = sigilControl;
m_SignupName = signupName;
m_FactionStoneName = factionStoneName;
m_OwnerLabel = ownerLabel;
m_GuardIgnore = guardIgnore;
m_GuardWarn = guardWarn;
m_GuardAttack = guardAttack;
m_Stronghold = stronghold;
m_Ranks = ranks;
m_Guards = guards;
}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:28,代码来源:FactionDefinition.cs
示例4: ProximitySpawner
public ProximitySpawner(int amount, int minDelay, int maxDelay, int team, int homeRange, string spawnName, int triggerRange, string spawnMessage, bool instantFlag)
: base(amount, minDelay, maxDelay, team, homeRange, spawnName)
{
this.m_TriggerRange = triggerRange;
this.m_SpawnMessage = TextDefinition.Parse(spawnMessage);
this.m_InstantFlag = instantFlag;
}
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:ProximitySpawner.cs
示例5: RankDefinition
public RankDefinition( int rank, int required, int maxWearables, TextDefinition title )
{
m_Rank = rank;
m_Required = required;
m_Title = title;
m_MaxWearables = maxWearables;
}
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:RankDefinition.cs
示例6: RepairSkillInfo
public RepairSkillInfo( CraftSystem system, Type[] nearbyTypes, TextDefinition notNearbyMessage, TextDefinition name )
{
m_System = system;
m_NearbyTypes = nearbyTypes;
m_NotNearbyMessage = notNearbyMessage;
m_Name = name;
}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:7,代码来源:RepairDeed.cs
示例7: KillObjective
public KillObjective( int amount, Type[] types, TextDefinition name, QuestArea area )
{
m_DesiredAmount = amount;
m_AcceptedTypes = types;
m_Name = name;
m_Area = area;
}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:7,代码来源:KillObjective.cs
示例8: BonusHarvestResource
public BonusHarvestResource( double reqSkill, double chance, TextDefinition message, Type type )
{
m_ReqSkill = reqSkill;
m_Chance = chance;
m_Type = type;
m_SuccessMessage = message;
}
开发者ID:nick12344356,项目名称:The-Basement,代码行数:8,代码来源:BonusHarvestResource.cs
示例9: CraftRes
public CraftRes( Type type, TextDefinition name, int amount, TextDefinition message ): this ( type, amount )
{
m_NameNumber = name;
m_MessageNumber = message;
m_NameString = name;
m_MessageString = message;
}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:8,代码来源:CraftRes.cs
示例10: PowerDefinition
public PowerDefinition( int power, TextDefinition name, TextDefinition phrase, TextDefinition description )
{
m_Power = power;
m_Name = name;
m_Phrase = phrase;
m_Description = description;
}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:8,代码来源:PowerDefinition.cs
示例11: MerchantTitleInfo
public MerchantTitleInfo( SkillName skill, double requirement, TextDefinition title, TextDefinition label, TextDefinition assigned )
{
m_Skill = skill;
m_Requirement = requirement;
m_Title = title;
m_Label = label;
m_Assigned = assigned;
}
开发者ID:justdanofficial,项目名称:khaeros,代码行数:8,代码来源:MerchantTitles.cs
示例12: CraftSubRes
public CraftSubRes( Type type, TextDefinition name, double reqSkill, int genericNameNumber, object message )
{
m_Type = type;
m_NameNumber = name;
m_NameString = name;
m_ReqSkill = reqSkill;
m_GenericNameNumber = genericNameNumber;
m_Message = message;
}
开发者ID:Godkong,项目名称:RunUO,代码行数:9,代码来源:CraftSubRes.cs
示例13: BonusHarvestResource
public BonusHarvestResource(double reqSkill, double chance, TextDefinition message, Type type, Map requiredMap)
{
this.m_ReqSkill = reqSkill;
this.m_Chance = chance;
this.m_Type = type;
this.m_SuccessMessage = message;
RequiredMap = requiredMap;
}
开发者ID:Crome696,项目名称:ServUO,代码行数:9,代码来源:BonusHarvestResource.cs
示例14: BonusHarvestResource
public BonusHarvestResource(Expansion reqExpansion, double reqSkill, double chance, TextDefinition message, Type type)
{
ReqExpansion = reqExpansion;
ReqSkill = reqSkill;
Chance = chance;
Type = type;
SuccessMessage = message;
}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:9,代码来源:BonusHarvestResource.cs
示例15: QuestArea
public QuestArea( TextDefinition name, string region, Map forceMap )
{
m_Name = name;
m_RegionName = region;
m_ForceMap = forceMap;
if ( MLQuestSystem.Debug )
ValidationQueue<QuestArea>.Add( this );
}
开发者ID:nathanvy,项目名称:runuo,代码行数:9,代码来源:QuestArea.cs
示例16: EthicDefinition
public EthicDefinition( int primaryHue, TextDefinition title, TextDefinition adjunct, TextDefinition joinPhrase, Power[] powers )
{
m_PrimaryHue = primaryHue;
m_Title = title;
m_Adjunct = adjunct;
m_JoinPhrase = joinPhrase;
m_Powers = powers;
}
开发者ID:Godkong,项目名称:Origins,代码行数:11,代码来源:EthicDefinition.cs
示例17: InfoNPCGump
public InfoNPCGump( TextDefinition title, TextDefinition message )
: base( 1060668 ) // INFORMATION
{
RegisterButton( ButtonPosition.Left, ButtonGraphic.Close, 3 );
SetPageCount( 1 );
BuildPage();
TextDefinition.AddHtmlText( this, 160, 108, 250, 16, title, false, false, 0x2710, 0x4AC684 );
TextDefinition.AddHtmlText( this, 98, 156, 312, 180, message, false, true, 0x15F90, 0xBDE784 );
}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:11,代码来源:InfoNPCGump.cs
示例18: VendorDefinition
public VendorDefinition(Type type, int itemID, int price, int upkeep, int maximum, TextDefinition header, TextDefinition label)
{
this.m_Type = type;
this.m_Price = price;
this.m_Upkeep = upkeep;
this.m_Maximum = maximum;
this.m_ItemID = itemID;
this.m_Header = header;
this.m_Label = label;
}
开发者ID:FreeReign,项目名称:forkuo,代码行数:12,代码来源:VendorDefinition.cs
示例19: GuardDefinition
public GuardDefinition( Type type, int itemID, int price, int upkeep, int maximum, TextDefinition header, TextDefinition label )
{
m_Type = type;
m_Price = price;
m_Upkeep = upkeep;
m_Maximum = maximum;
m_ItemID = itemID;
m_Header = header;
m_Label = label;
}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:12,代码来源:GuardDefinition.cs
示例20: QuestConversationGump
public QuestConversationGump( MLQuest quest, PlayerMobile pm, TextDefinition text )
: base( 3006156 ) // Quest Conversation
{
CloseOtherGumps( pm );
SetTitle( quest.Title );
RegisterButton( ButtonPosition.Right, ButtonGraphic.Close, 3 );
SetPageCount( 1 );
BuildPage();
AddConversation( text );
}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:13,代码来源:QuestConversationGump.cs
注:本文中的TextDefinition类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论