Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified NBTExplorer.Installer/Bitmaps/Banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer.Installer/Bitmaps/Dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/Dead_Bush.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/Dead_Bush_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/amp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/document-b-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/document-d-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/document-f-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/document-i-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/document-l-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/document-s-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/edit-code-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/edit-code-i-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/edit-list-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/edit-small-caps-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/pencil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NBTExplorer/Resources/selection-input-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
392 changes: 196 additions & 196 deletions NBTExplorer/Windows/FindBlock.Designer.cs

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion NBTExplorer/Windows/FindBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public FindBlock (DataNode searchRoot)
{
InitializeComponent();

inputDistance = groupBox1.Width - _regionXTextBox.Width;

FormResize();

_searchRoot = searchRoot;

_groupX = new CoordinateGroup() {
Expand All @@ -58,7 +62,6 @@ public FindBlock (DataNode searchRoot)

ApplyRegion(_groupX, "0", true);
ApplyRegion(_groupZ, "0", true);

Validate();
}

Expand Down Expand Up @@ -526,5 +529,20 @@ private void _cancelButton_Click (object sender, EventArgs e)
DialogResult = DialogResult.Cancel;
Close();
}

private int inputDistance;

private void FormResize(object sender = null, EventArgs e = null) {
_regionXTextBox.Width = groupBox1.Width - inputDistance;
_regionZTextBox.Width = groupBox1.Width - inputDistance;
_chunkXTextBox.Width = groupBox1.Width - inputDistance;
_chunkZTextBox.Width = groupBox1.Width - inputDistance;
_blockXTextBox.Width = groupBox1.Width - inputDistance;
_blockZTextBox.Width = groupBox1.Width - inputDistance;
_localChunkXTextBox.Width = groupBox1.Width - inputDistance;
_localChunkZTextBox.Width = groupBox1.Width - inputDistance;
_localBlockXTextBox.Width = groupBox1.Width - inputDistance;
_localBlockZTextBox.Width = groupBox1.Width - inputDistance;
}
}
}
1,701 changes: 1,701 additions & 0 deletions NBTExplorer/Windows/FindBlock.resx

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions NBTExplorer/Windows/WatermarkTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public WatermarkTextBox ()
this.ForeColor = Color.Gray;

GotFocus += (source, e) => {
RemoveWatermak();
RemoveWatermark();
};

LostFocus += (source, e) => {
Expand All @@ -29,7 +29,7 @@ public WatermarkTextBox ()

public bool WatermarkActive { get; set; }

public void RemoveWatermak ()
public void RemoveWatermark ()
{
if (this.WatermarkActive) {
this.WatermarkActive = false;
Expand All @@ -56,7 +56,7 @@ public void ApplyWatermark (string newText)

public void ApplyText (string text)
{
RemoveWatermak();
RemoveWatermark();
Text = text;
}
}
Expand Down