mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 12:55:59 +02:00
Got rid of Action<T>/Func<T>
This commit is contained in:
parent
44bd9c698f
commit
b52db47d55
37 changed files with 94 additions and 88 deletions
|
@ -346,7 +346,7 @@ namespace Beefy.widgets
|
|||
int32 mRefCount = 1;
|
||||
|
||||
public Event<OpenNewWindowDelegate> mOpenNewWindowDelegate ~ _.Dispose();
|
||||
public Event<Action<TabbedView>> mTabbedViewClosed ~ _.Dispose();
|
||||
public Event<delegate void(TabbedView)> mTabbedViewClosed ~ _.Dispose();
|
||||
|
||||
public SharedData Ref()
|
||||
{
|
||||
|
@ -363,7 +363,7 @@ namespace Beefy.widgets
|
|||
|
||||
public delegate void OpenNewWindowDelegate(TabbedView tabbedView, WidgetWindow newWindow);
|
||||
|
||||
public Action<Menu> mPopulateMenuEvent;
|
||||
public delegate void(Menu) mPopulateMenuEvent;
|
||||
public float mTabHeight;
|
||||
public float mTabAreaWidth;
|
||||
public bool mNeedResizeTabs;
|
||||
|
@ -417,7 +417,7 @@ namespace Beefy.widgets
|
|||
return mTabs.Count;
|
||||
}
|
||||
|
||||
public virtual void WithTabs(Action<TabbedView.TabButton> func)
|
||||
public virtual void WithTabs(delegate void(TabbedView.TabButton) func)
|
||||
{
|
||||
for (var tab in mTabs)
|
||||
func(tab);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue