mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 22:54:46 +08:00
Moved tools forms into Tools folder, removed unused Materials.txt
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using CodeWalker.GameFiles;
|
||||
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 CodeWalker
|
||||
{
|
||||
public partial class JenkGenForm : Form
|
||||
{
|
||||
public JenkGenForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void InputTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GenerateHash();
|
||||
}
|
||||
|
||||
private void GenerateHash()
|
||||
{
|
||||
JenkHashInputEncoding encoding = JenkHashInputEncoding.UTF8;
|
||||
if (ASCIIRadioButton.Checked) encoding = JenkHashInputEncoding.ASCII;
|
||||
|
||||
JenkHash h = new JenkHash(InputTextBox.Text, encoding);
|
||||
|
||||
HashHexTextBox.Text = h.HashHex;
|
||||
HashSignedTextBox.Text = h.HashInt.ToString();
|
||||
HashUnsignedTextBox.Text = h.HashUint.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user