-
Contributor
Plz expose baseMapShapeDecorator and maxMapShapeDecorator as public so we can edit them as well.
-
Contributor
Originally Posted by
Stormreaver
Plz expose baseMapShapeDecorator and maxMapShapeDecorator as public so we can edit them as well.
Have you tried modifying it?I don't know how to make it customizable
-
Contributor
What do you mean? Just replace
Code:
private MapShapeDecorator baseMapShapeDecorator;
Private MapShapeDecorator maxMapShapeDecorator;
with
Code:
public MapShapeDecorator baseMapShapeDecorator;
public MapShapeDecorator maxMapShapeDecorator;
That way we can plugin into those deco to change them, otherwise the elevated "private" security will not let us.
I changed your file myself to lower the opacity of the circle. I just thought others may want to as well.
Code:
plugin.baseMapShapeDecorator.Brush = Hud.Render.CreateBrush(70, 180, 147, 109, 1);
plugin.maxMapShapeDecorator.Brush = Hud.Render.CreateBrush(70, 180, 147, 109, 1);
Last edited by Stormreaver; 08-27-2017 at 06:27 PM.
-
Member
Where do I add the custom code in the txt file?
Also, can I set the range so that the default is 20 yards, and the max range is 40 yards?
WD only really cares about close mobs.
-
Contributor
Originally Posted by
hsindogg
Where do I add the custom code in the txt file?
Also, can I set the range so that the default is 20 yards, and the max range is 40 yards?
WD only really cares about close mobs.
have a look here (Default theme customization 101)
and edit your customization:
PHP Code:
Hud.RunOnPlugin<MonstersCountPlugin>(plugin =>
{
plugin.ShowCircle = true;//Draw a circle on minimap
plugin.ToggleEnable = true;//Enable/Disable hotkey switching
plugin.ToggleKeyEvent = Hud.Input.CreateKeyEvent(true, Key.LeftControl, true, false, false);//Toggle the base range and maximum range
plugin.BaseYard = 40;//Basic range of Statistics //this in your case
plugin.MaxYard = 120;//The maximum range of Statistics (120 is maximum)
plugin.ShowMonstersCount = true;
plugin.ShowTotalProgression = true;
plugin.ShowTrashProgression = true;
plugin.ShowEliteProgression = true;
plugin.ShowRareMinionProgression = true;
plugin.ShowRiftGlobeProgression = true;
plugin.ShowTime = true;//Progress to time value
plugin.ShowHauntedCount = true;
plugin.ShowLlocustCount = true;
plugin.ShowPalmedCount = true;
});
greetz gjuz
-
Member
Thanks for that help, but I'm getting an error on start up, here's the log:
error CS0246: The type or namespace name 'MonstersCountPlugin' could not be found (are you missing a using directive or an assembly reference?)
-
Member
Is it possible to add another circle with 20 yards count ? would be nice ... also when playing WD i cant see soul harvest stacks due to too big (or badly centered stopwatch, or not enough transparency). is it going to be fixed?(would be nice )
-
Active Member
what would be the reason that i'm getting this error?
Code:
2017.11.19 13:01:47.284 c:\Users\****\Desktop\TBHD\plugins\User\PluginEnablerOrDisablerPlugin.cs(268,60) : error CS0103: The name 'Key' does not exist in the current context
This is my Custom code:
Code:
// MonsterCountPlugin Settings
Hud.RunOnPlugin<glq.MonstersCountPlugin>(plugin => {
plugin.ShowCircle = true;//Draw a circle on minimap
plugin.ToggleEnable = true;//Enable/Disable hotkey switching
plugin.ToggleKeyEvent = Hud.Input.CreateKeyEvent(true, Key.LeftControl, true, false, false);//Toggle the base range and maximum range
plugin.BaseYard = 40;//Basic range of Statistics
plugin.MaxYard = 120;//The maximum range of Statistics (120 is maximum)
plugin.ShowMonstersCount = true;
plugin.ShowTotalProgression = true;
plugin.ShowTrashProgression = true;
plugin.ShowEliteProgression = true;
plugin.ShowRareMinionProgression = true;
plugin.ShowRiftGlobeProgression = true;
plugin.ShowTime = true;//Progress to time value
plugin.ShowHauntedCount = true;
plugin.ShowLlocustCount = true;
plugin.ShowPalmedCount = true;
plugin.XWidth = 0.84f;
plugin.YHeight = 0.61f;
});
-
Contributor
Originally Posted by
everknown
what would be the reason that i'm getting this error?
Code:
2017.11.19 13:01:47.284 c:\Users\****\Desktop\TBHD\plugins\User\PluginEnablerOrDisablerPlugin.cs(268,60) : error CS0103: The name 'Key' does not exist in the current context
This is my Custom code:
Code:
// MonsterCountPlugin Settings
Hud.RunOnPlugin<glq.MonstersCountPlugin>(plugin => {
plugin.ShowCircle = true;//Draw a circle on minimap
plugin.ToggleEnable = true;//Enable/Disable hotkey switching
plugin.ToggleKeyEvent = Hud.Input.CreateKeyEvent(true, Key.LeftControl, true, false, false);//Toggle the base range and maximum range
plugin.BaseYard = 40;//Basic range of Statistics
plugin.MaxYard = 120;//The maximum range of Statistics (120 is maximum)
plugin.ShowMonstersCount = true;
plugin.ShowTotalProgression = true;
plugin.ShowTrashProgression = true;
plugin.ShowEliteProgression = true;
plugin.ShowRareMinionProgression = true;
plugin.ShowRiftGlobeProgression = true;
plugin.ShowTime = true;//Progress to time value
plugin.ShowHauntedCount = true;
plugin.ShowLlocustCount = true;
plugin.ShowPalmedCount = true;
plugin.XWidth = 0.84f;
plugin.YHeight = 0.61f;
});
Code:
using SharpDX.DirectInput;
Put this code in the first line of your custom file(PluginEnablerOrDisablerPlugin.cs)
-
Post Thanks / Like - 1 Thanks
Colmans (1 members gave Thanks to SeaDragon for this useful post)
-
Member
Hello. For some resason the plugin doesn't show me the strongarmed mobs.
Also, is there a way to show the number of cursed mobs?
Last edited by falsey; 01-20-2018 at 08:16 AM.
-
Member
請教SeaDragon
我用拉蠻 想另外顯示150碼的怪物數量在螢幕上方,方便第一時間定位聚怪 該如何寫呢?
感謝
-
Contributor
Originally Posted by
odaru7788
請教SeaDragon
我用拉蠻 想另外顯示150碼的怪物數量在螢幕上方,方便第一時間定位聚怪 該如何寫呢?
感謝
Hud.GetPlugin<MonstersCountPlugin>().ToggleEnable = true;//启用或禁用切换开关
Hud.GetPlugin<MonstersCountPlugin>().ToggleKeyEvent = Hud.Input.CreateKeyEvent(true, Key.LeftControl, true, false, false);//切换开关,默认是左边CTRL键
Hud.GetPlugin<MonstersCountPlugin>().BaseYard = 40;//按切换开关后切换到40码范围
Hud.GetPlugin<MonstersCountPlugin>().MaxYard = 120;//按切换开关后切换到120码显示(120码是最大距离,即使你填了150也只有120码的范围)
ps:下次最好用英语,这个论坛不适合用中文交流
-
Member
Is this a modification to the original plugin?
I want to add an additional plugin for easy reading at the top center of the screen
-
Contributor
Originally Posted by
odaru7788
Is this a modification to the original plugin?
I want to add an additional plugin for easy reading at the top center of the screen
This is the custom code
I think it can meet your needs.
-
Member
Are these codes inserted PluginEnablerOrDisablerPlugin.cs ?