mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 04:34:19 +01:00
Use temporary mechanism to add main menu button.
This commit is contained in:
parent
d97e9f37a8
commit
f99bfae4bb
1 changed files with 14 additions and 9 deletions
|
|
@ -18,15 +18,20 @@ public class LaunchButton : IDisposable
|
||||||
_configWindow = ui;
|
_configWindow = ui;
|
||||||
_icon = null;
|
_icon = null;
|
||||||
_entry = null;
|
_entry = null;
|
||||||
//Dalamud.Framework.RunOnTick( () =>
|
|
||||||
//{
|
void CreateEntry()
|
||||||
// _icon = Dalamud.PluginInterface.UiBuilder.LoadImage( Path.Combine( Dalamud.PluginInterface.AssemblyLocation.DirectoryName!,
|
{
|
||||||
// "tsmLogo.png" ) );
|
_icon = Dalamud.PluginInterface.UiBuilder.LoadImage( Path.Combine( Dalamud.PluginInterface.AssemblyLocation.DirectoryName!,
|
||||||
// if( _icon != null )
|
"tsmLogo.png" ) );
|
||||||
// {
|
if( _icon != null )
|
||||||
// _entry = Dalamud.TitleScreenMenu.AddEntry( "Manage Penumbra", _icon, OnTriggered );
|
{
|
||||||
// }
|
_entry = Dalamud.TitleScreenMenu.AddEntry( "Manage Penumbra", _icon, OnTriggered );
|
||||||
//} );
|
}
|
||||||
|
|
||||||
|
Dalamud.PluginInterface.UiBuilder.Draw -= CreateEntry;
|
||||||
|
}
|
||||||
|
|
||||||
|
Dalamud.PluginInterface.UiBuilder.Draw += CreateEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnTriggered()
|
private void OnTriggered()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue