本文整理汇总了C#中MyTextsWrapperEnum类的典型用法代码示例。如果您正苦于以下问题:C# MyTextsWrapperEnum类的具体用法?C# MyTextsWrapperEnum怎么用?C# MyTextsWrapperEnum使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MyTextsWrapperEnum类属于命名空间,在下文中一共展示了MyTextsWrapperEnum类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MyGuiContextMenuItemHelper
public MyGuiContextMenuItemHelper(MyTextsWrapperEnum description, MyGuiContextMenuItemActionType actionType, bool enabled, MyTextsWrapperEnum? toolTip)
: base(description)
{
ActionType = actionType;
Enabled = enabled;
m_toolTip = toolTip;
}
示例2: MyHarvestOreSubmission
public MyHarvestOreSubmission(MyTextsWrapperEnum name, MyMissionID id, MyTextsWrapperEnum description, MyTexture2D icon, MyMission parentMission, MyMissionID[] requiredMissions, MyMissionLocation location, MyMwcObjectBuilder_Ore_TypesEnum ore, float amount, MyDialogueEnum successDialogId)
: base(name, id, description, icon, parentMission, requiredMissions, null, successDialogId: successDialogId)
{
Location = location;
m_amount = amount;
m_ore = ore;
}
示例3: MyGuiScreenStartQuickLaunch
public static MyGuiScreenStartQuickLaunch CurrentScreen = null; // This is always filled with reference to actual instance of this scree. If there isn't, it's null.
public MyGuiScreenStartQuickLaunch(MyMwcQuickLaunchType quickLaunchType, MyTextsWrapperEnum progressText) :
base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, null)
{
m_quickLaunchType = quickLaunchType;
m_backgroundFadeColor = MyGuiConstants.SCREEN_BACKGROUND_FADE_BLANK_DARK_PROGRESS_SCREEN;
CurrentScreen = this;
}
示例4: MyGuiScreenStartSessionProgress
public static MyGuiScreenStartSessionProgress CurrentScreen = null; // This is always filled with reference to actual instance of this scree. If there isn't, it's null.
public MyGuiScreenStartSessionProgress(MyMwcStartSessionRequestTypeEnum sessionType, MyTextsWrapperEnum progressText, MyMwcSectorIdentifier? sectorIdentifier, MyGameplayDifficultyEnum difficulty, string checkpointName, MyGuiScreenBase closeAfter) :
base(progressText, false)
{
// TODO: Not ready yet
//Debug.Assert(sessionType != MyMwcStartSessionRequestTypeEnum.NEW_STORY && sessionType != MyMwcStartSessionRequestTypeEnum.LOAD_CHECKPOINT, "Invalid operation, call OndrejP");
m_sectorIdentifier = sectorIdentifier;
m_sessionType = sessionType;
m_backgroundFadeColor = MyGuiConstants.SCREEN_BACKGROUND_FADE_BLANK_DARK_PROGRESS_SCREEN;
m_closeAfter = closeAfter;
m_difficulty = difficulty;
m_checkpointName = checkpointName;
CurrentScreen = this;
OnSuccessEnter = new Action<MyGuiScreenGamePlayType, MyMwcStartSessionRequestTypeEnum, MyMwcObjectBuilder_Checkpoint>((screenType, sessType, checkpoint) =>
{
var newGameplayScreen = new MyGuiScreenGamePlay(screenType, null, checkpoint.CurrentSector, checkpoint.SectorObjectBuilder.Version, sessType);
var loadScreen = new MyGuiScreenLoading(newGameplayScreen, MyGuiScreenGamePlay.Static);
if (sessType == MyMwcStartSessionRequestTypeEnum.NEW_STORY)
loadScreen.AddEnterSectorResponse(checkpoint, MyMissionID.EAC_SURVEY_SITE);
else
loadScreen.AddEnterSectorResponse(checkpoint, null);
MyGuiManager.AddScreen(loadScreen);
});
}
示例5: MyUseObjective
public MyUseObjective(
MyTextsWrapperEnum name,
MyMissionID id,
MyTextsWrapperEnum description,
MyTexture2D icon,
MyMission parentMission,
MyMissionID[] requiredMissions,
MyMissionLocation location,
MyTextsWrapperEnum notificationText,
MyTextsWrapperEnum useCaption,
MyTextsWrapperEnum useText,
int requiredTime,
MyUseObjectiveType objectiveType = MyUseObjectiveType.Hacking,
MyDialogueEnum? successDialogId = null,
MyDialogueEnum? startDialogId = null,
float? radiusOverride = null,
List<uint> fakeMissionIds = null,
uint? realMissionId = null)
: base(name, id, description, icon, parentMission, requiredMissions, location, fakeMissionIds, successDialogId, startDialogId, radiusOverride: radiusOverride)
{
m_notificationText = notificationText;
m_useText = useText;
m_useCaption = useCaption;
m_requiredTime = requiredTime;
m_realMissionEntityId = realMissionId;
InitSounds(objectiveType);
if (location != null)
{
if (location.LocationEntityIdentifier.LocationEntityId != null)
{
RequiredEntityIDs.Add(location.LocationEntityIdentifier.LocationEntityId.Value);
}
}
}
示例6: MyTimedObjective
public MyTimedObjective(MyTextsWrapperEnum name, MyMissionID id, MyTextsWrapperEnum description, MyTexture2D icon, MyMission parentMission, MyMissionID[] requiredMissions, TimeSpan submissionDuration, bool isOn)
: this(name, id, description, icon, parentMission, requiredMissions, submissionDuration)
{
m_isOn = isOn;
m_defaultState = m_isOn;
DisplayCounter = true;
}
示例7: MyGuiScreenLoading
public MyGuiScreenLoading(MyGuiScreenGamePlay screenToLoad, MyGuiScreenGamePlay screenToUnload, MyTexture2D textureFromConstructor)
: base(Vector2.Zero, null, null)
{
MyLoadingPerformance.Instance.StartTiming();
System.Diagnostics.Debug.Assert(Static == null);
Static = this;
m_screenToLoad = screenToLoad;
m_screenToUnload = screenToUnload;
m_closeOnEsc = false;
DrawMouseCursor = false;
m_loadInDrawFinished = false;
m_drawEvenWithoutFocus = true;
m_currentQuoteOfTheDay = MyQuoteOfTheDay.GetRandomQuote();
Vector2 loadingTextSize = MyGuiManager.GetNormalizedSize(MyGuiManager.GetFontMinerWarsBlue(),
MyTextsWrapper.Get(MyTextsWrapperEnum.LoadingPleaseWait), MyGuiConstants.LOADING_PLEASE_WAIT_SCALE);
m_rotatingWheelTexture = MyGuiManager.GetLoadingTexture();
Controls.Add(new MyGuiControlRotatingWheel(this, MyGuiConstants.LOADING_PLEASE_WAIT_POSITION - new Vector2(0, 0.075f + loadingTextSize.Y),
MyGuiConstants.ROTATING_WHEEL_COLOR, MyGuiConstants.ROTATING_WHEEL_DEFAULT_SCALE, MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER, m_rotatingWheelTexture));
m_backgroundTextureFromConstructor = textureFromConstructor;
m_loadFinished = false;
if (m_screenToLoad != null)
{
MyMinerGame.IsGameReady = false;
}
}
示例8: MyGuiScreenProgressAsync
public MyGuiScreenProgressAsync(MyTextsWrapperEnum text, bool enableCancel, Func<IAsyncResult> beginAction, Action<IAsyncResult, MyGuiScreenProgressAsync> endAction)
: base(text, enableCancel)
{
FriendlyName = "MyGuiScreenProgressAsync";
m_beginAction = beginAction;
m_endAction = endAction;
}
示例9: MyNotification
public MyNotification(MyTextsWrapperEnum notificationText, int disapearTimeMs, MyEntity owner = null,
object[] textFormatArguments = null)
: this(notificationText, GetCurrentScreen(), 1.0f, MyGuiConstants.DEFAULT_CONTROL_FONT,
MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER, disapearTimeMs, owner, false,
textFormatArguments)
{
}
示例10: MyMultipleUseObjective
public MyMultipleUseObjective(
MyTextsWrapperEnum name,
MyMissionID id,
MyTextsWrapperEnum description,
MyTexture2D icon,
MyMission parentMission,
MyMissionID[] requiredMissions,
MyTextsWrapperEnum notificationText,
MyTextsWrapperEnum useCaption,
MyTextsWrapperEnum useText,
int requiredTime,
List<uint> MissionEntityIDs,
MyUseObjectiveType objectiveType = MyUseObjectiveType.Hacking,
MyDialogueEnum? startDialogId = null)
: base(name, id, description, icon, parentMission, requiredMissions, null, MissionEntityIDs, startDialogId: startDialogId)
{
m_notificationText = notificationText;
m_useText = useText;
m_useCaption = useCaption;
m_requiredTime = requiredTime;
m_objectiveType = objectiveType;
}
示例11: MyAspectRatioEx
public MyAspectRatioEx(bool isTripleHead, MyAspectRatioEnum aspectRatioEnum, float aspectRatioNumber, MyTextsWrapperEnum textLong, MyTextsWrapperEnum textShort)
{
IsTripleHead = isTripleHead;
AspectRatioEnum = aspectRatioEnum;
AspectRatioNumber = aspectRatioNumber;
TextLong = textLong;
TextShort = textShort;
}
示例12: Get
public static StringBuilder Get(MyTextsWrapperEnum textEnum)
{
if (m_sb == null)
return MyMwcUtils.EmptyStringBuilder;
//return m_sb[(int)textEnum];
return m_sb[(int)textEnum];
}
示例13: Notify
private void Notify(MyTextsWrapperEnum text, object[] args)
{
var handler = OnNotification;
if (handler != null)
{
handler(text, args);
}
}
示例14: MyObjectiveDisablePrefabs
public MyObjectiveDisablePrefabs(MyTextsWrapperEnum name, MyMissionID id, MyTextsWrapperEnum description, MyTexture2D icon, MyMission parentMission,
MyMissionID[] requiredMissions, List<uint> toDisable, List<uint> disableBy, bool displayObjectivesCount = true,
bool markObjectsToDisable = true, MyDialogueEnum? successDialogId = null, MyDialogueEnum? startDialogId = null)
: base(name, id, description, icon, parentMission, requiredMissions, null, disableBy, successDialogId, startDialogId, displayObjectivesCount: displayObjectivesCount)
{
m_toDisable = toDisable;
m_markObjectsToDisable = markObjectsToDisable;
RequiredEntityIDs.AddRange(toDisable);
}
示例15: MyFactionProperties
public MyFactionProperties(
MyTextsWrapperEnum NameEnum,
MyTextsWrapperEnum DescriptionEnum,
MyTransparentMaterialEnum? SolarMapIcon)
{
this.NameEnum = NameEnum;
this.DescriptionEnum = DescriptionEnum;
this.SolarMapIcon = SolarMapIcon;
}