W
weischbier
Guest
Hi,
i'm designing at the moment my GUi for my CC and i got some problems.
I want the user to set up several Settings via a Number in a Textbox.
Now that Number should be saved and should be handeled with in the CC.
Lets say: 85 is the value i want Anti-Magic shell to be casted.
i say:
But all what is behind the = got a red underline.
I declared it as an int.
in the CC it looks like this:
i don't know how to handle that.
Maybe anybody of you can =)
Greetz
Weischbier
i'm designing at the moment my GUi for my CC and i got some problems.
I want the user to set up several Settings via a Number in a Textbox.
Now that Number should be saved and should be handeled with in the CC.
Lets say: 85 is the value i want Anti-Magic shell to be casted.
i say:
Code:
amsvalue_.Text = Deathknight.Instance.Settings.amsvalue;
I declared it as an int.
Code:
[Setting, DefaultValue(85)]
public int amsvalue { get; set; }
in the CC it looks like this:
Code:
if (Me.HealthPercent < Deathknight.Instance.Settings.amsvalue)
{
CastSpell(ams);
}
i don't know how to handle that.
Maybe anybody of you can =)
Greetz
Weischbier
Last edited by a moderator: