Quote:
|
Originally Posted by Talyns
I was going to add Callback events for when the Titlebar or Frame changed it's visible state.. I decided to skip it for now.. If there's ever a need for it.. It can be added later..
|
I thought of at least on use for titlebar callbacks in plugins.. It allows modders to hide and show a button plugin (like the dockbutton in minimap) with the titlebar..
So I added both just in case..
Changes to mainhud_map:
I removed the WC_Frame.OnHide=' ' that was in the onshow2 script..
Changes to window_titlebar: OnHide="Parent.TM_Plugins.OnHideTitlebar.Activated=true Parent.Size=484,597" (Read edit at bottom)
OnShow="Parent.TM_Plugins.OnShowTitlebar.Activated=true">
Changes to window_frame:
OnHide="Parent.TM_Plugins.OnHideFrame.Activated=true" OnShow="Parent.TM_Plugins.OnShowFrame.Activated=true"
Plus the changes from previous post
Edit: there was a bug with the titlebar OnHide script.. When the title bar was hidden the window was restored by resizing back to fullsize.. It didn't notify the plugin system.. I changed it so it activates the restore button instead..
So the titlebar on hide should be:
OnHide="Parent.TM_Plugins.OnHideTitlebar.Activated=true QM_RestoreButton.Activated=true"
( I updated the attachment to reflect changes )