Scripting Level = Beginner "always"
Code isn't the whole script because obviously it isn't finished.
Everything is under onCreated for testing purposes.
So, I'm not too bad at GUI's and ZeroG wanted me to make one for the server. Basically wanted a window with tabs.. now I could have put the tabs on a guiwindowctrl, but then I would have the tab under the bad top window spot.. and the minimize, close, and such buttons...
So, I was thinking I could
recreate a 'window' so to speak, with the tabs above it and have it moveable.. technically what I have could work not moveable.. Anyway... let's get to the point.
Main Problem: canMove does not work for the outside container holding the third guicontrol, and tabs.. however the third guicontrol could move with it on... this is odd to me.. I've even tried to move it outside of the tab and third guicontrol clicking in the second's box.
Second GuiControl won't move.
Sub Problem: profile.fillcolor and fillcolor isn't working, not too important.
Anyone know why the second window isn't moving the two things it is containing? Yet the third would? I tried putting canMove on the two as well because I thought they would be holding it down.. but that was a stupid thought. :]
Or, is there a window without the top bar that I could use instead?
I'd love to figure this out, because I'd like to make a GUI tutorial.
I don't find wikia or bible that helpful for many of the tutorials or information... I'd like to make tutorials for new people, not people who know what to do... GUI's I feel semi confident in making a tutorial for.. other scripting I do not.
PHP Code:
findplayer("Devil_Lord2").addweapon(this.name);
//#CLIENTSIDE
function onCreated(){
new GuiControl("Frontier_MainMenuCtrl"){ //Invisible Controller Box
position = {screenheight/2-300, screenwidth/2};
extent = "600, 600";
new GuiControl("Frontier_MainMenu"){ //Invisible Compact Box
useownprofile = true;
fillColor = {255, 0, 0};
position = {55,0};
extent = "300, 300";
text = "Main Menu";
canMove = true; // This I want to work, but does not.
visible = true;
new GuiControl("Frontier_MainBox"){ //Invisible Box will hold text.
profile.fillcolor = {250,250,250,.8};
useownprofile = true;
profile.border = 3;
position = {1,30};
extent = "300, 270";
text = "Main Menu";
//canMove = true; // This does work
}
new GuiTabCtrl("Frontier_MainTabs"){ //Tabs above the text box.
position = "1,0";
extent = "400,30";
tabwidth = 55;
clearrows();
addrow(0,"Help");
addrow(1,"Quest");
addrow(2,"Credits");
setSelectedRow(0);
}
}
}
}