mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +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;
|
||||
_icon = null;
|
||||
_entry = null;
|
||||
//Dalamud.Framework.RunOnTick( () =>
|
||||
//{
|
||||
// _icon = Dalamud.PluginInterface.UiBuilder.LoadImage( Path.Combine( Dalamud.PluginInterface.AssemblyLocation.DirectoryName!,
|
||||
// "tsmLogo.png" ) );
|
||||
// if( _icon != null )
|
||||
// {
|
||||
// _entry = Dalamud.TitleScreenMenu.AddEntry( "Manage Penumbra", _icon, OnTriggered );
|
||||
// }
|
||||
//} );
|
||||
|
||||
void CreateEntry()
|
||||
{
|
||||
_icon = Dalamud.PluginInterface.UiBuilder.LoadImage( Path.Combine( Dalamud.PluginInterface.AssemblyLocation.DirectoryName!,
|
||||
"tsmLogo.png" ) );
|
||||
if( _icon != null )
|
||||
{
|
||||
_entry = Dalamud.TitleScreenMenu.AddEntry( "Manage Penumbra", _icon, OnTriggered );
|
||||
}
|
||||
|
||||
Dalamud.PluginInterface.UiBuilder.Draw -= CreateEntry;
|
||||
}
|
||||
|
||||
Dalamud.PluginInterface.UiBuilder.Draw += CreateEntry;
|
||||
}
|
||||
|
||||
private void OnTriggered()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue