Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SephLeague authored and SephLeague committed Jun 1, 2015
1 parent 2a4701e commit 87e3594
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ public Menu SubMenu(string name)
}
}

public enum MenuValueType
internal enum MenuValueType
{
None,
Boolean,
Expand Down Expand Up @@ -828,7 +828,7 @@ public class MenuItem
internal bool Interacting;
public string Name;
public Menu Parent;
public MenuValueType ValueType;
internal MenuValueType ValueType;

public MenuItem(string name, string displayName, bool makeChampionUniq = false)
{
Expand Down
8 changes: 4 additions & 4 deletions Orbwalking.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static bool CanMove(float extraWindup)
return false;
}

if (_missileLaunched && Orbwalker.missilecheck)
if (_missileLaunched && Orbwalker.MissileCheck)
{
return true;
}
Expand Down Expand Up @@ -499,7 +499,7 @@ public Orbwalker(Menu attachToMenu)
_config.AddSubMenu(misc);

/* Missile check */
_config.AddItem(new MenuItem("missilecheck", "Use Missile Check").SetShared().SetValue(true));
_config.AddItem(new MenuItem("MissileCheck", "Use Missile Check").SetShared().SetValue(true));

/* Delay sliders */
_config.AddItem(
Expand Down Expand Up @@ -538,9 +538,9 @@ private int FarmDelay
get { return _config.Item("FarmDelay").GetValue<Slider>().Value; }
}

public static bool missilecheck
public static bool MissileCheck
{
get { return _config.Item("missilecheck").GetValue<bool>(); }
get { return _config.Item("MissileCheck").GetValue<bool>(); }
}

public OrbwalkingMode ActiveMode
Expand Down
13 changes: 2 additions & 11 deletions PermaShow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ You should have received a copy of the GNU General Public License

#endregion



using System;
using System.Collections.Generic;
using System.Linq;
using LeagueSharp.Common;
using LeagueSharp;
using SharpDX;
using SharpDX.Direct3D9;
using Font = SharpDX.Direct3D9.Font;

namespace PermaShow
namespace LeagueSharp.Common
{

/// <summary>
Expand All @@ -48,11 +44,10 @@ public class PermaShowItem
{
public String DisplayName { get; set; }
public MenuItem Item { get; set; }
public MenuValueType ItemType { get; set; }
internal MenuValueType ItemType { get; set; }
public SharpDX.Color Color { get; set; }
}

public static Sprite Sprite;
public static Font Text;

static PermaShow()
Expand Down Expand Up @@ -135,24 +130,20 @@ public static void Permashow(this MenuItem item, String customdisplayname = null
private static void CurrentDomainOnDomainUnload(object sender, EventArgs eventArgs)
{
Text.Dispose();
Sprite.Dispose();
}

private static void DrawingOnOnPostReset(EventArgs args)
{
Text.OnResetDevice();
Sprite.OnResetDevice();
}

private static void DrawingOnOnPreReset(EventArgs args)
{
Text.OnLostDevice();
Sprite.OnLostDevice();
}

public static void PrepareDrawing()
{
Sprite = new Sprite(Drawing.Direct3DDevice);
Text = new Font(
Drawing.Direct3DDevice,
new FontDescription
Expand Down

0 comments on commit 87e3594

Please sign in to comment.