SubMenu Question
Hello guys, do you know a method to create an item like LAM's submenu, or if is it possible to use directly LAM items in another tab. The problem is, i create a tab in guild section, and in this tab i want to put some info with the submenu items.
Edit: if u know there is a method that can tell me if a player is a GuildMaster? |
You can always call the "widget" functions of LAM controls directly in your lua code to e.g. create a LAM dropdown or checkbox somewhere else, not in a LAM panel, afaik, using the function that the widget uses itsself:
Code:
LAMCreateControl I guess it would work though. At the bottom of each widget lua file you will find the name of the control that is created, e.g. for a slider Code:
LAMCreateControl.slider(container, data, name) Code:
function LAMCreateControl.submenu(parent, submenuData, controlName) Edit: You need to get the rank of a guildMemberIndex and then check if the rank got a guildmaster. IsGuildRankGuildMaster(guildId, guildRank) Here is an example code, !!!untested!!! Lua Code:
|
All times are GMT -6. The time now is 03:37 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI