using System; using System.Drawing; namespace BizHawk.Client.EmuHawk { public partial class TAStudio { // Everything here is currently for Lua public Func QueryItemBgColorCallback { get; set; } public Func QueryItemTextCallback { get; set; } public Func QueryItemIconCallback { get; set; } public Action GreenzoneInvalidatedCallback { get; set; } public Action BranchLoadedCallback { get; set; } public Action BranchSavedCallback { get; set; } public Action BranchRemovedCallback { get; set; } private Color? GetColorOverride(int index, InputRoll.RollColumn column) { return QueryItemBgColorCallback?.Invoke(index, column.Name); } private string GetTextOverride(int index, InputRoll.RollColumn column) { return QueryItemTextCallback?.Invoke(index, column.Name); } private Bitmap GetIconOverride(int index, InputRoll.RollColumn column) { return QueryItemIconCallback?.Invoke(index, column.Name); } private void GreenzoneInvalidated(int index) { GreenzoneInvalidatedCallback?.Invoke(index); } private void BranchLoaded(int index) { BranchLoadedCallback?.Invoke(index); } private void BranchSaved(int index) { BranchSavedCallback?.Invoke(index); } private void BranchRemoved(int index) { BranchRemovedCallback?.Invoke(index); } } }