Can I generate menu with hero names? because it saves the settings per menu id instead of hero name.
Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.Login to Account Create an Account
Help with menu
Started By
Rugal
, Apr 10 2018 10:13
#1
Posted 10 April 2018 - 10:13
#2
Posted 11 April 2018 - 10:29
local MyMenu = MenuElement({id = "my_menu", name = "My Menu", type = MENU})
for k = 1, Game.HeroCount() do
local hero = Game.Hero(k)
local heroName = hero.charName
MyMenu:MenuElement({id = heroName, name = "Menu for " .. heroName, value = true})
end
#3
Posted 11 April 2018 - 10:36
I reached this, but how do I use it?
Menu.Name:MenuElement
Menu.[Name]:MenuElement
Menu[Name]:MenuElement
#4
Posted 11 April 2018 - 10:39
I reached this, but how do I use it?
Menu.Name:MenuElement
Menu.[Name]:MenuElement
Menu[Name]:MenuElement
The last option is correct.
for k = 1, Game.HeroCount() do local hero = Game.Hero(k) local heroName = hero.charName if MyMenu[heroName]:Value() == true then -- do smt end end
#5
Posted 11 April 2018 - 11:04
The last option is correct.
for k = 1, Game.HeroCount() do local hero = Game.Hero(k) local heroName = hero.charName if MyMenu[heroName]:Value() == true then -- do smt end end
thank you very much!!!
sadly I cant upvote you for some weird bug
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users
Sign In
Create Account


Back to top
Report







