Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/Beta-Build'
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian committed Aug 10, 2016
2 parents dfc2f8b + eb37f7d commit 6498df6
Show file tree
Hide file tree
Showing 187 changed files with 1,414 additions and 796 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions PokemonGo/RocketAPI/Window/ItemBox.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions PokemonGo/RocketAPI/Window/ItemBox.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
using System;
using System.Drawing;
using System.Windows.Forms;
using POGOProtos.Inventory.Item;

namespace PokemonGo.RocketAPI.Window {
public partial class ItemBox : UserControl {
public ItemData item_ { get; }

public event EventHandler ItemClick;

public ItemBox(ItemData item) {
InitializeComponent();

item_ = item;

pb.Image = (Image)Properties.Resources.ResourceManager.GetObject(item.ItemId.ToString());
lbl.Text = item.Count.ToString();

foreach (Control control in this.Controls) {
control.MouseEnter += childMouseEnter;
control.MouseLeave += childMouseLeave;
control.MouseClick += childMouseClick;
}

if (item_.ItemId == ItemId.ItemIncubatorBasic || item_.ItemId == ItemId.ItemIncubatorBasicUnlimited) {
this.Enabled = false;
}
}

private void childMouseClick(object sender, MouseEventArgs e) {
OnItemClick(item_, EventArgs.Empty);
}

protected override void OnMouseClick(MouseEventArgs e) {
base.OnMouseClick(e);
OnItemClick(item_, EventArgs.Empty);
}

private void childMouseLeave(object sender, EventArgs e) {
OnMouseLeave(e);
}

private void childMouseEnter(object sender, EventArgs e) {
OnMouseEnter(e);
}

protected override void OnMouseLeave(EventArgs e) {
base.OnMouseLeave(e);
this.BackColor = Color.Transparent;
}

protected override void OnMouseEnter(EventArgs e) {
base.OnMouseEnter(e);
this.BackColor = Color.LightGreen;
}

protected virtual void OnItemClick(ItemData item, EventArgs e) {
EventHandler handler = ItemClick;
if (handler != null) {
handler(item, e);
}
}
}
}
143 changes: 143 additions & 0 deletions PokemonGo/RocketAPI/Window/ItemForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions PokemonGo/RocketAPI/Window/ItemForm.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using POGOProtos.Inventory.Item;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PokemonGo.RocketAPI.Window {
public partial class ItemForm : Form {
public ItemForm(ItemData item) {
InitializeComponent();

pb.Image = (Image)Properties.Resources.ResourceManager.GetObject(item.ItemId.ToString());
numCount.Maximum = item.Count;

if (item.ItemId == ItemId.ItemLuckyEgg || item.ItemId == ItemId.ItemIncenseOrdinary) {
btnRecycle.Text = "Use";
//btnRecycle.Enabled = false;
numCount.Visible = false;
}
}
}
}
Loading

0 comments on commit 6498df6

Please sign in to comment.