It would help if you show us what you've done already. Or is this a request for someone to write something for you from scratch (in which case you should have posted in Plugin Requests, and will need to give more specific information - what icons, what locations, etc)
I apologize. I thought i explained it pretty good I don't have anything any more. All the scripts i tried to edit i just rolled back to there original or deleted them. I need to show icons in a location in my menu, the location will be put in through the plugin manager so i can change them on the fly in case my menu evolves or changes. So guess what i'm asking is how do i first off add an icons to my menu script via switches at different locations based on the switch that is on. I don't want it made for me. I do understand js a little form working with unity3D but things seem a little different in the js plugins i dunno maybe its just me.
so lets try this maybe, something like this,
var mySwithch = $gameSwitches number defined in the plugin manager;
var mySwithch2 = $gameSwitches number defined in the plugin manager;
if(mySwitch = true)
Show icon number defined in plugin manager at x, y, and maybe z all defined in the plugin manager;
else if (mySwitch2 && mySwitch = true)
Show icon2 number defined plugin manager in the editor at the same x, y, z, as the one above;
i don't know how to make it so the plugin allows me to edit parts of the plugin from the manager for one, and when i try my var switch and my if statements i get nothing no error and it does nothing. Wait once i did get a switch not defined or something but that was a while ago i cant remember. just looking or more direction or incite if i cant figure it out i will post in the plugin request section but i would rather learn more on how to make it my self. I hope that makes more sense.
I guess ill toss it up once before i let it die
Thanks it works great and the code is for the most part clear. My only question is in your screen shot it shows 2 rows but mine only shows 6 icons on one row the second row does not show up which is fine i can work with that, but in your code i don't see where it wraps the icons to the second row? am i missing something or is it just supposed to be automatic?
Again thank you so much for your help. I was going about this in all the wrong ways.
Also just noticed when i enter the menu and close it with any of the switches activated it opens a message window that displays the name of all of the items that are activated? and I put it in a fresh project and and have not edited anything yet and it still did it.
I was sleepy when I make it but it suppose to make it automatic
But you can fix it easly
In the last code change h to 2
Because you using yanfly plugin
i will try make it compatible
Yes you did and i now see how. Its perfect. Thank you so much your a huge help.
Oh one last question. What do i add to make it so i only see the icons and not the little window behind it?
I tried that one but not under
this.addWindow(this._myWindow);
so I learned something today 😉 thanx
haha glad i could help too. ><