-
Legendary
[INTERNATIONAL] [RNN] Materials
Show information about different materials.
It is a simple plugin for those who want to have this data always visible without having to open the inventory.
The size and position is configurable. Example:
plugin.Xpor = 0.052f;
plugin.Ypor = 0.001f;
plugin.SizeMultiplier = 1.35f;
Download: Materials.cs
Installation: Place Materials.cs in "plugins\RNN\Materials.cs"
Custom code (in Plugins\User\PluginEnablerOrDisablerPlugin.cs , Optional) :
Code:
Hud.GetPlugin<RNN.Materials>().Enabled = true;
Hud.RunOnPlugin<RNN.Materials>(plugin =>
{
plugin.Xpor = 0.567f; // Valid values: from 0 to 1
plugin.Ypor = 0.983f; // Valid values: from 0 to 1
plugin.OnlyInTown = false; // Show only in town
plugin.ColorText = true; // Different colors will be used for the text or white if ColorText = false
plugin.SizeMultiplier = 1.1f; // Size multiplier for text and icons
plugin.Separation = 0.5f; // Valid values: equal to or greater than zero . Separation between one material and the next
plugin.WarningBS = true; // Show Rectagle Red when Remaining Blood Shard < RemainingBS
plugin.RemainingBS = 250; // Limit Blood Shard
plugin.WarningIS = true; // Show Rectagle Red when Remaining free Inventory Space < RemainingIS
plugin.RemainingIS = 5; // Limit free Inventory Space
plugin.DisableBSIPlugins = true; // Disable default plugins BloodShardPlugin and InventoryFreeSpacePlugin
plugin.MaterialsOrderEnum = new RNN.Materials.MatsEnum[] // Materials you want to display and the order in which you want them to appear. MaterialsOrder is Deprecated
{
RNN.Materials.MatsEnum.ReusableParts, RNN.Materials.MatsEnum.ArcaneDust, RNN.Materials.MatsEnum.VeiledCrystal, RNN.Materials.MatsEnum.DeathsBreath, RNN.Materials.MatsEnum.ForgottenSoul, RNN.Materials.MatsEnum.PrimordialAshes,
RNN.Materials.MatsEnum.GreaterRiftKeystone, RNN.Materials.MatsEnum.BloodShard, RNN.Materials.MatsEnum.InventorySpace
};
} );
Last edited by RNN; 03-25-2024 at 09:20 AM.
Reason: Compatibility fixes. Added primordial ashes.
-
Post Thanks / Like - 4 Thanks
-
Member
Can you make this only show in town?????
-
Legendary
Replace line 100
Code:
if (!Hud.Game.IsInGame) return;
with
Code:
if (!Hud.Game.IsInGame || !Hud.Game.IsInTown) return;
-
Member
Originally Posted by
RNN
Replace line 100
Code:
if (!Hud.Game.IsInGame) return;
with
Code:
if (!Hud.Game.IsInGame || !Hud.Game.IsInTown) return;
You're the best RNN!!!!! THANKS for all the plugins<<3
-
Legendary
Update
Added OnlyInTown
Default text size slightly increased
-
Member
I would like to remove the shards and inventory. I have tried quite a bit myself but lack the know how, hud breaks alot.
I've used PluginEnablerorDisablerPlugin.cs to remove the InventorySpace, and somehow managed to get rid of the bloodshards with materials.cs, i think.
But im left with a dark red box where the shards would be, that i can't seem to get rid of. I've tried commenting out quite a few things but I don't really know what im doing, just kinda guessing around. Any help appreciated thnx.
Last edited by nan0; 05-25-2020 at 07:13 PM.
-
Legendary
Originally Posted by
nan0
I would like to remove the shards and inventory. I have tried quite a bit myself but lack the know how, hud breaks alot.
I've used PluginEnablerorDisablerPlugin.cs to remove the InventorySpace, and somehow managed to get rid of the bloodshards with materials.cs, i think.
But im left with a dark red box where the shards would be, that i can't seem to get rid of. I've tried commenting out quite a few things but I don't really know what im doing, just kinda guessing around. Any help appreciated thnx.
The red square does not appear if WarningBS = false;
If you want a simple way to get everything you are looking for (remove shards, inventory space, red square), just change number 9 to 7 on line 111
Code:
for(var i = 1; i < 9; i++)
or replace the loop (lines 111-126) with this:
Code:
for(var i = 1; i < 7; i++)
{
ListTexture[i].Draw(x, y, sizeIcon, sizeIcon);
x += sizeIcon;
var layout = ListFont[i].GetTextLayout( MatsToString(ListMats[i]) );
ListFont[ColorText?i:0].DrawText(layout, x, y);
x += layout.Metrics.Width + Space;
}
Last edited by RNN; 05-25-2020 at 07:58 PM.
-
Post Thanks / Like - 1 Thanks
nan0 (1 members gave Thanks to RNN for this useful post)
-
Member
Last edited by nan0; 06-03-2020 at 05:04 PM.
-
Member
Hi RNN.
Is it possible to make a small change to the plugin so that it does not modify the opacity of the items in the chest and in the inventory?
Thank you.
-
Legendary
I do not understand what you mean.
This plugin disables BloodShardPlugin and InventoryFreeSpacePlugin, but only when you keep the original position. This is done on lines 85-89:
Code:
if ((Xpor > 0.5f) && (Xpor < 0.65f) && (Ypor > 0.97f))
{
Hud.TogglePlugin<BloodShardPlugin>(false);
Hud.TogglePlugin<InventoryFreeSpacePlugin>(false);
}
Comment those lines if you don't want this to happen
Does not affect any other plugin
-
Post Thanks / Like - 1 Thanks
LittleDez13 (1 members gave Thanks to RNN for this useful post)
-
Member
Originally Posted by
RNN
I do not understand what you mean.
This plugin disables BloodShardPlugin and InventoryFreeSpacePlugin, but only when you keep the original position. This is done on lines 85-89:
Code:
if ((Xpor > 0.5f) && (Xpor < 0.65f) && (Ypor > 0.97f))
{
Hud.TogglePlugin<BloodShardPlugin>(false);
Hud.TogglePlugin<InventoryFreeSpacePlugin>(false);
}
Comment those lines if you don't want this to happen
Does not affect any other plugin
Hi RNN.
I think you helped me resolve this issue, it seems that somehow indirectly this plugin is enabling the NotGoodDisplayEnabled function (grayed out items in inventory).
Taking the opportunity, is there a way for me to select the materials that will be displayed and change their order of presentation? For example, I just want InventorySpace, BloodShard and GreaterRiftKeystone, in that order.
Thank you for take your time.
-
Legendary
Originally Posted by
LittleDez13
Hi RNN.
I think you helped me resolve this issue, it seems that somehow indirectly this plugin is enabling the NotGoodDisplayEnabled function (grayed out items in inventory).
Taking the opportunity, is there a way for me to select the materials that will be displayed and change their order of presentation? For example, I just want InventorySpace, BloodShard and GreaterRiftKeystone, in that order.
Thank you for take your time.
The only explanation I find is that you have modified InventoryFreeSpacePlugin.cs to disable all or part of InventoryAndStashPlugin
You can use this code in PluginEnablerOrDisablerPlugin.cs:
Code:
// turn off sell darkening
Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
If you change the 1 to a 6 on line 111:
Code:
for(var i = 1; i < 9; i++)
Only those 3 data will be shown, but not in the order you want.
Last edited by RNN; 05-27-2020 at 01:07 PM.
-
Post Thanks / Like - 1 Thanks
LittleDez13 (1 members gave Thanks to RNN for this useful post)
-
Legendary
Update 1
It is possible to select which materials you want to see and in which order they will be displayed (MaterialsOrder)
Added "DisableBSIPlugins" to hide the default BloodShardPlugin and InventoryFreeSpacePlugin plugins.Previously they were automatically disabled if the information was displayed near their position.
Removed "InventorySpace" (Configuration. MaterialsOrder will be used to indicate whether or not to show the amount of free space in inventory)
Update 2
Added WarningIS and RemainingIS
Aligned text
Last edited by RNN; 05-28-2020 at 05:54 AM.
-
Post Thanks / Like - 1 Thanks
LittleDez13 (1 members gave Thanks to RNN for this useful post)
-
Member
Can't download this - when going to pastebin - Error, this is a private paste or is pending moderation. If this paste belongs to you, please login to Pastebin to view it.
-
Legendary
Reuploaded
Update
Compatibility fixes.
Added primordial ashes.
MaterialsOrder is Deprecated, replaced by MaterialsOrderEnum.
Last edited by RNN; 03-25-2024 at 09:17 AM.