Download
(2 Kb)
Download
Updated: 04/12/21 11:28 AM
Pictures
File Info
Compatibility:
Flames of Ambition (6.3.5)
Markarth (6.2.5)
Stonethorn (6.1.5)
Greymoor (6.0.5)
Updated:04/12/21 11:28 AM
Created:03/23/15 02:07 PM
Monthly downloads:123
Total downloads:414,104
Favorites:203
MD5:
LibMainMenu (DO NOT USE ANYMORE - PLEASE SWITCH TO: LibMainMenu-2.0)  Popular! (More than 5000 hits)
Version: 999
by: Ayantir, Baertram
LiMainMenu must not be used any longer! Please install LibMainmenu-2.0 instead:
https://www.esoui.com/downloads/info...nMenu-2.0.html

All addons uisng LibMainMenu 1 should migrate to LMM 2.0!
Check description and comments for further "howto" instructions


Change your txt file:
Remove:
## (Optional)DependsOn: LibMainMenu

Add:
## (Optional)DependsOn: LibMainMenu-2.0>=40400


Change your lua files:
All LibMainMenu references need to be changed to LibMainMenu2 references!

e.g. Remove:
Local LMM = LibMainMenu

e.g. Add:
Local LMM = LibMainMenu2
v999
======
LiMainMenu must not be used any longer! Please install LibMainmenu-2.0 instead and all addons uisng LibMainMenu 1 should migrate to LMM 2.0!
Check description and comments for further "howto" instructions


v10
======
-Fixed lua errors in line 69 + 70

v9
======
-Removed LibStub
-Updated to API Markarth
-Fixed ZO_Object usage lua error

v8
======
Added some more security checks if the library was loaded properly to avoid problems with old addons having this library included hardcoded

v7
======
-Updated API
-Fixed global variable LibMainMenu to be loaded after LibStub checks etc. in order to fix "overwriting/clearing" of the variable -> Many thanks to Knurps for the info

v6
======
-Added ## AddOnVersion and ## IsLibrary: true tags
-Added global variable LibMainMenu for the library referencing (instead of LibStub!). The global LIBMAINMENU is still given for debugging.
-Added txt file to load the library as standalone version
-Made the library loadable without (prefered!) and with LibStub (old way, please change to usage of the global variable LibMainMenu!)

v5
======
- Fixed duplicate controls at startup, sorry.

v4
======
- Completly disabled the handler which emulated Main Menu top bar and which could trigger randomly when altabbing. This function was unused, so 0 changes.

v3
======
- Little fix, caused by bad a bad copy/paste which triggered error sometimes when alt-tabing.

v2
======
- No longer rewrites MAIN_MENU but emulates it. As consequence, Menus added by LibMainMenu won't be anymore added to Main menu at top of the screen. Also call to LibMainMenu has been a little bit modified.

v1
======
Initial release
Archived Files (10)
File Name
Version
Size
Uploader
Date
10
5kB
Baertram
02/21/21 11:05 AM
9
5kB
Baertram
11/02/20 07:06 AM
8
5kB
Baertram
12/06/19 04:51 PM
7
4kB
Baertram
12/02/19 09:50 AM
6
5kB
Baertram
10/01/19 10:04 AM
5
4kB
Ayantir
04/29/15 12:17 PM
4
4kB
Ayantir
04/16/15 09:35 PM
3
4kB
Ayantir
04/03/15 12:43 PM
2
4kB
Ayantir
03/30/15 11:04 AM
1
3kB
03/23/15 02:07 PM


Post A Reply Comment Options
Unread 03/23/15, 02:50 PM  
dominoid
AddOn Author - Click to view AddOns

Forum posts: 34
File comments: 276
Uploads: 2
This looks spiffy. Thanks.
Last edited by dominoid : 03/23/15 at 02:50 PM.
Report comment to moderator  
Reply With Quote
Unread 03/23/15, 06:15 PM  
Randactyl
 
Randactyl's Avatar
AddOn Author - Click to view AddOns

Forum posts: 251
File comments: 462
Uploads: 17
Awesome. This should make a few things I'm working on more manageable
Report comment to moderator  
Reply With Quote
Unread 03/26/15, 06:42 PM  
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1019
File comments: 1531
Uploads: 31
Just a Word to say that after a long moment to study if I could do this, I think I can't anymore use this library as it's actually writen because of some problems this library introduce.

So.. this library is loaded by addon manager. and so on, it's an insecure code who handles scenes. 0 problemes for all scenes in whole game (there are 134 scenes in game). Except 1, the new market.

It's a "remote scene" and one of it's main functions (ChangeRemoteSceneVisibility) is protected.
It use the fragment STOP_MOVEMENT_FRAGMENT which calls StopAllMovement() which is also protected.

If I could bypass the fragment by deleting it in some dirty way, I can clearly not touch to ChangeRemoteSceneVisibility which is clearly here to protect the market itself from addon modifications

Modifying MAIN_MENU in other way in order maybe to add a nice menu is not really possible due to the local var CATEGORY_LAYOUT_INFO which handle everything and this library was bypassing by calling the global subarray dumped by this var, so I'll rewrite everything and "emulate" menus as they were real ones without using MAIN_MENU itself.

bit sad
Report comment to moderator  
Reply With Quote
Unread 03/29/15, 02:27 PM  
QuadroTony
Banned
 
QuadroTony's Avatar
AddOn Author - Click to view AddOns

Forum posts: 828
File comments: 3866
Uploads: 3
Originally Posted by Ayantir
Just a Word to say that after a long moment to study if I could do this, I think I can't anymore use this library as it's actually writen because of some problems this library introduce.

So.. this library is loaded by addon manager. and so on, it's an insecure code who handles scenes. 0 problemes for all scenes in whole game (there are 134 scenes in game). Except 1, the new market.

It's a "remote scene" and one of it's main functions (ChangeRemoteSceneVisibility) is protected.
It use the fragment STOP_MOVEMENT_FRAGMENT which calls StopAllMovement() which is also protected.

If I could bypass the fragment by deleting it in some dirty way, I can clearly not touch to ChangeRemoteSceneVisibility which is clearly here to protect the market itself from addon modifications

Modifying MAIN_MENU in other way in order maybe to add a nice menu is not really possible due to the local var CATEGORY_LAYOUT_INFO which handle everything and this library was bypassing by calling the global subarray dumped by this var, so I'll rewrite everything and "emulate" menus as they were real ones without using MAIN_MENU itself.

bit sad
im not really a developer, but mby this will help you

http://www.esoui.com/forums/showthread.php?t=4469
Report comment to moderator  
Reply With Quote
Unread 03/30/15, 11:05 AM  
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1019
File comments: 1531
Uploads: 31
LMM has been updated and don't interfere anymore in MAIN_MENU, but just emulates it.
I've tested with 1 addon and another fake addon, all is fine now
Report comment to moderator  
Reply With Quote
Unread 05/15/15, 02:07 AM  
JohnnyKing94
 
JohnnyKing94's Avatar

Forum posts: 45
File comments: 6
Uploads: 0
I tried to use this library and the scene works, all except the chance to add the button on the menu... then i saw your code and this part was commented, why?
Report comment to moderator  
Reply With Quote
Unread 05/15/15, 02:23 AM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 577
File comments: 1667
Uploads: 40
Originally Posted by JohnnyKing94
I tried to use this library and the scene works, all except the chance to add the button on the menu... then i saw your code and this part was commented, why?
See QuadroTony's comment. While using the lib in SuperStar Ayantir trapped into what I describe here.
The crone market does not like custom code in MAIN_MENU.
Last edited by votan : 05/15/15 at 02:25 AM.
Report comment to moderator  
Reply With Quote
Unread 05/15/15, 03:46 AM  
JohnnyKing94
 
JohnnyKing94's Avatar

Forum posts: 45
File comments: 6
Uploads: 0
Originally Posted by votan
Originally Posted by JohnnyKing94
I tried to use this library and the scene works, all except the chance to add the button on the menu... then i saw your code and this part was commented, why?
See QuadroTony's comment. While using the lib in SuperStar Ayantir trapped into what I describe here.
The crone market does not like custom code in MAIN_MENU.
First, are there no alternatives to have a button in the MenuCategoryBar???
Second, how to correctly scale the scenes?? When i set a custom scale in the videosettings, all the scene get fu*ed up, are there any ways to fix it?
Report comment to moderator  
Reply With Quote
Unread 03/09/16, 03:18 PM  
JohnnyKing94
 
JohnnyKing94's Avatar

Forum posts: 45
File comments: 6
Uploads: 0
I'd like to have this library reborn... i alread saw a LibMainMenu 2.0 but it doesn't have all the functions already present here
Report comment to moderator  
Reply With Quote
Unread 10/27/16, 05:34 PM  
Mitsarugi
 
Mitsarugi's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 225
Uploads: 12
could you make a demo file for people to build on? please
Report comment to moderator  
Reply With Quote
Unread 12/06/19, 08:42 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4903
File comments: 5974
Uploads: 78
Originally Posted by Mitsarugi
could you make a demo file for people to build on? please
The description pretty sums up all.
Or check addons like pChat, WishList, Superstar for live demos.
Report comment to moderator  
Reply With Quote
Unread 10/11/20, 08:15 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4903
File comments: 5974
Uploads: 78
Attention:
With version 9 LibMainMenu will NOT support LibStub anymore! Switch your addon code to the global variable LibMainMenu (please read the description).
Last edited by Baertram : 11/02/20 at 07:09 AM.
Report comment to moderator  
Reply With Quote
Unread 01/27/21, 11:52 AM  
sMuggle

Forum posts: 6
File comments: 124
Uploads: 0
differences?

What are the differences, are both, or can either replace the other?

https://www.esoui.com/downloads/info...nMenu-2.0.html
Report comment to moderator  
Reply With Quote
Unread 01/27/21, 01:27 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4903
File comments: 5974
Uploads: 78
Re: differences?

Originally Posted by sMuggle
What are the differences, are both, or can either replace the other?

https://www.esoui.com/downloads/info...nMenu-2.0.html
Well I'd start to read their descriptions and check the screenshots and then you'll notice (or should at least ) they are different and cannot be replaced by each other. Else it would have been done.

LibMainMenu also adds a complete new scene with tab integration (the right hand rectangle shown for "Superstar" on the screenshot here). LibMainMenu2 only adds the icon to the main menu at the top.
Last edited by Baertram : 01/27/21 at 01:28 PM.
Report comment to moderator  
Reply With Quote
Unread 03/06/21, 01:00 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4903
File comments: 5974
Uploads: 78
This library was integrated into LibMainMenu-2.0 at 2021-04-12!
Please uninstall this library LibMainMenu 1!
You must do some small adjustments to your addon's txt and lua files.
The new global library variable LibMainMenu -> LibMainMenu2 and the ## DependsOn: needs a change in your manifest txt file:

Change your txt file:
Remove:
## (Optional)DependsOn: LibMainMenu

Add:
## (Optional)DependsOn: LibMainMenu-2.0>=40400


Change your lua files:
All LibMainMenu references need to be changed to LibMainMenu2 references!

e.g. Remove:
Local LMM = LibMainMenu

e.g. Add:
Local LMM = LibMainMenu2

Last edited by Baertram : 04/12/21 at 12:03 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: