本文整理汇总了C#中TextDefinition类的典型用法代码示例。如果您正苦于以下问题:C# TextDefinition类的具体用法?C# TextDefinition怎么用?C# TextDefinition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TextDefinition类属于命名空间,在下文中一共展示了TextDefinition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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;
}
示例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;
}
示例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;
}
示例5: RankDefinition
public RankDefinition( int rank, int required, int maxWearables, TextDefinition title )
{
m_Rank = rank;
m_Required = required;
m_Title = title;
m_MaxWearables = maxWearables;
}
示例6: RepairSkillInfo
public RepairSkillInfo( CraftSystem system, Type[] nearbyTypes, TextDefinition notNearbyMessage, TextDefinition name )
{
m_System = system;
m_NearbyTypes = nearbyTypes;
m_NotNearbyMessage = notNearbyMessage;
m_Name = name;
}
示例7: KillObjective
public KillObjective( int amount, Type[] types, TextDefinition name, QuestArea area )
{
m_DesiredAmount = amount;
m_AcceptedTypes = types;
m_Name = name;
m_Area = area;
}
示例8: BonusHarvestResource
public BonusHarvestResource( double reqSkill, double chance, TextDefinition message, Type type )
{
m_ReqSkill = reqSkill;
m_Chance = chance;
m_Type = type;
m_SuccessMessage = message;
}
示例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;
}
示例10: PowerDefinition
public PowerDefinition( int power, TextDefinition name, TextDefinition phrase, TextDefinition description )
{
m_Power = power;
m_Name = name;
m_Phrase = phrase;
m_Description = description;
}
示例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;
}
示例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;
}
示例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;
}
示例14: BonusHarvestResource
public BonusHarvestResource(Expansion reqExpansion, double reqSkill, double chance, TextDefinition message, Type type)
{
ReqExpansion = reqExpansion;
ReqSkill = reqSkill;
Chance = chance;
Type = type;
SuccessMessage = message;
}
示例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 );
}