View Single Post
  #29  
Unread 03-10-2005, 12:27 AM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

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 )
Attached Files
File Type: zip _eq2map_proposal_plugins_3b.zip (12.3 KB, 432 views)
__________________
Talyns

Last edited by Talyns : 03-10-2005 at 02:36 AM.
Reply With Quote