43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using LibW4M.Data.X;
|
|
using LibW4M.Data.Teams;
|
|
using LibW4M.Data.WeaponFactory;
|
|
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;
|
|
using W4Gui.Dialogs;
|
|
using W4Gui.Tabs;
|
|
using LibW4M.Data.Highscores;
|
|
|
|
namespace W4Gui.Components.VariablePanel
|
|
{
|
|
public partial class UIntVariablePanel : UserControl
|
|
{
|
|
public UIntVariablePanel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SaveResourceData(ref UIntResourceDetail resource)
|
|
{
|
|
// Load general
|
|
resource.Value = selValue.Value;
|
|
resource.Name = DataManager.SaveFile.LookupString(selName.Text);
|
|
resource.Flags = selFlags.Value;
|
|
}
|
|
|
|
public void LoadResourceData(UIntResourceDetail resource)
|
|
{
|
|
// Load general
|
|
this.selValue.Value = resource.Value;
|
|
this.selName.Text = resource.Name.Value;
|
|
this.selFlags.Value = resource.Flags;
|
|
}
|
|
}
|
|
}
|