Originally Posted by
sacrefizz
okay it work .. i just dont saw it .. show up and hide quickly.
now trying .. to change the position ... i want it near my health Globe.
change the position
Code:
Hud.GetPlugin<AncientParthanCount>().XWidth = 0.3f;
Hud.GetPlugin<AncientParthanCount>().YHeight = 0.3f;
I put this code in PluginEnablerOrDisablerPlugin.cs?
yes but if you change more than one use RunOnPlugin
Code:
Hud.RunOnPlugin<AncientParthanCount>(plugin =>
{
plugin.XWidth = 0.3f;
plugin.YHeight = 0.3f;
});
those two variables scale with minimap size.
Originally Posted by
sacrefizz
i think i have to modify your code. i tryed in PluginEnablerOrDisablerPlugin.cs and got exception : PluginEnablerOrDisablerPlugin.cs(42,17) : error CS0246: The type or namespace name 'AncientParthanCount' could not be found (are you missing a using directive or an assembly reference?)
your PluginEnablerOrDisablerPlugin.cs needs a using directive
or use function like this
Code:
Hud.RunOnPlugin<glq.AncientParthanCount>(plugin =>
greetz gjuz