mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-29 10:22:53 +08:00
48 lines
1.0 KiB
C#
48 lines
1.0 KiB
C#
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.Project.Panels
|
|
{
|
|
public partial class EditYmapGrassPanel : ProjectPanel
|
|
{
|
|
public ProjectForm ProjectForm;
|
|
public YmapGrassInstanceBatch CurrentBatch { get; set; }
|
|
|
|
//private bool populatingui = false;
|
|
|
|
public EditYmapGrassPanel(ProjectForm owner)
|
|
{
|
|
ProjectForm = owner;
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetBatch(YmapGrassInstanceBatch batch)
|
|
{
|
|
CurrentBatch = batch;
|
|
Tag = batch;
|
|
LoadGrassBatch();
|
|
UpdateFormTitle();
|
|
}
|
|
|
|
private void UpdateFormTitle()
|
|
{
|
|
Text = CurrentBatch?.Batch.archetypeName.ToString() ?? "Grass Batch";
|
|
}
|
|
|
|
|
|
|
|
private void LoadGrassBatch()
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|