TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DrawSelf()

override void Terraria.ModLoader.UI.UIModPackItem.DrawSelf ( SpriteBatch spriteBatch)
inlineprotectedvirtual

Reimplemented from Terraria.GameContent.UI.Elements.UIPanel.

Definition at line 467 of file UIModPackItem.cs.

468 {
469 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
470 //IL_0043: Unknown result type (might be due to invalid IL or missing references)
471 //IL_004d: Unknown result type (might be due to invalid IL or missing references)
472 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
473 //IL_009b: Unknown result type (might be due to invalid IL or missing references)
474 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
475 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
476 //IL_00b8: Unknown result type (might be due to invalid IL or missing references)
477 base.DrawSelf(spriteBatch);
479 Vector2 drawPos = default(Vector2);
480 ((Vector2)(ref drawPos))._002Ector(innerDimensions.X + 5f, innerDimensions.Y + 30f);
481 spriteBatch.Draw(_dividerTexture.Value, drawPos, (Rectangle?)null, Color.White, 0f, Vector2.Zero, new Vector2((innerDimensions.Width - 10f) / 8f, 1f), (SpriteEffects)0, 0f);
482 ((Vector2)(ref drawPos))._002Ector(innerDimensions.X + innerDimensions.Width - 355f, innerDimensions.Y);
483 DrawPanel(spriteBatch, drawPos, 350f);
484 DrawEnabledText(spriteBatch, drawPos + new Vector2(10f, 5f));
486 if (enableListOnlyButton != null && enableListOnlyButton.IsMouseHovering)
487 {
488 _tooltip = Language.GetTextValue("tModLoader.ModPackEnableOnlyThisListDesc");
489 return;
490 }
492 if (enableListButton != null && enableListButton.IsMouseHovering)
493 {
494 _tooltip = Language.GetTextValue("tModLoader.ModPackEnableThisListDesc");
495 return;
496 }
498 if (exportPackInstanceButton != null && exportPackInstanceButton.IsMouseHovering)
499 {
500 _tooltip = Language.GetTextValue("tModLoader.ExportPackInstanceDesc");
501 return;
502 }
504 if (removePackInstanceButton != null && removePackInstanceButton.IsMouseHovering)
505 {
506 _tooltip = Language.GetTextValue("tModLoader.DeletePackInstanceDesc");
507 return;
508 }
510 if (playInstanceButton != null && playInstanceButton.IsMouseHovering)
511 {
512 _tooltip = "Play tModLoader using InstallDirectory/<ModPackName>";
513 return;
514 }
516 if (importFromPackLocalButton != null && importFromPackLocalButton.IsMouseHovering)
517 {
518 _tooltip = Language.GetTextValue("tModLoader.InstallPackLocalDesc");
519 return;
520 }
522 if (removePackLocalButton != null && removePackLocalButton.IsMouseHovering)
523 {
524 _tooltip = Language.GetTextValue("tModLoader.RemovePackLocalDesc");
525 return;
526 }
528 if (viewInModBrowserButton != null && viewInModBrowserButton.IsMouseHovering)
529 {
530 _tooltip = Language.GetTextValue("tModLoader.ModPackViewModsInModBrowserDesc");
531 return;
532 }
534 if (updateListWithEnabledButton != null && updateListWithEnabledButton.IsMouseHovering)
535 {
536 _tooltip = Language.GetTextValue("tModLoader.ModPackUpdateListWithEnabledDesc");
537 }
538 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
readonly UIAutoScaleTextTextPanel< string > _playInstanceButton
readonly UIAutoScaleTextTextPanel< string > _enableListOnlyButton
void DrawPanel(SpriteBatch spriteBatch, Vector2 position, float width)
readonly UIAutoScaleTextTextPanel< string > _importFromPackLocalButton
readonly UIAutoScaleTextTextPanel< string > _removePackLocalButton
readonly UIAutoScaleTextTextPanel< string > _removePackInstanceButton
readonly UIAutoScaleTextTextPanel< string > _updateListWithEnabledButton
void DrawEnabledText(SpriteBatch spriteBatch, Vector2 drawPos)
readonly UIAutoScaleTextTextPanel< string > _enableListButton
readonly UIAutoScaleTextTextPanel< string > _viewInModBrowserButton
readonly UIAutoScaleTextTextPanel< string > _exportPackInstanceButton
readonly Asset< Texture2D > _dividerTexture
CalculatedStyle GetInnerDimensions()
Definition UIElement.cs:455

References Terraria.ModLoader.UI.UIModPackItem._dividerTexture, Terraria.ModLoader.UI.UIModPackItem._enableListButton, Terraria.ModLoader.UI.UIModPackItem._enableListOnlyButton, Terraria.ModLoader.UI.UIModPackItem._exportPackInstanceButton, Terraria.ModLoader.UI.UIModPackItem._importFromPackLocalButton, Terraria.ModLoader.UI.UIModPackItem._playInstanceButton, Terraria.ModLoader.UI.UIModPackItem._removePackInstanceButton, Terraria.ModLoader.UI.UIModPackItem._removePackLocalButton, Terraria.ModLoader.UI.UIModPackItem._tooltip, Terraria.ModLoader.UI.UIModPackItem._updateListWithEnabledButton, Terraria.ModLoader.UI.UIModPackItem._viewInModBrowserButton, Terraria.ModLoader.UI.UIModPackItem.DrawEnabledText(), Terraria.ModLoader.UI.UIModPackItem.DrawPanel(), Terraria.UI.UIElement.GetInnerDimensions(), and Terraria.Localization.Language.GetTextValue().

+ Here is the call graph for this function: