Hey guys I want to get a startup GUI and I found this in the Graal Bible
PHP Code:
//#CLIENTSIDE
function onCreated()
{
ExampleWindow = new GuiWindowCtrl("ExampleWindow");
with (ExampleWindow)
{
profile = "GuiBlueWindowProfile";
position = "20 20";
extent = "320 240";
canMove = true;
canResize = false;
canMaximize = false;
canClose = true;
tile = true;
text = "Welcome here i will display all the required information";
new GuiControl(AppleTab)
{
visible = false;
profile = "GuiBlueControlProfile";
position = "10 52";
extent = "222 184";
new GuiTextCtrl(AppleTab_Label)
{
profile = "GuiBlueTextProfile";
position = "0 0";
extent = "222 20";
text = "Current Staff: Owner: iSlayer";
};
};
new GuiControl(BananaTab)
{
visible = false;
profile = "GuiBlueControlProfile";
position = "10 52";
extent = "222 184";
new GuiTextCtrl(BananaTab_Label)
{
profile = "GuiBlueTextProfile";
position = "0 0";
extent = "222 20";
text = "We are hiring all dev positions";
};
};
new GuiControl(CranberryTab)
{
visible = false;
profile = "GuiBlueControlProfile";
position = "10 52";
extent = "222 184";
new GuiTextCtrl(CranberryTab_Label)
{
profile = "GuiBlueTextProfile";
position = "0 0";
extent = "222 20";
text = "Forum PM to iSlayer";
};
};
new GuiTabCtrl(ExampleTabs)
{
profile = "GuiBlueTabProfile";
position = "10 28";
extent = "300 24";
clearRows();
with (addRow(0, "Staff Members"))
{
this.pane = AppleTab;
}
with (addRow(1, "Hirings"))
{
this.pane = BananaTab;
}
with (addRow(2, "Contact"))
{
this.pane = CranberryTab;
}
thiso.catchevent(name, "onSelect", "onTabSelect");
};
};
ExampleTabs.setSelectedById(0);
GraalControl.addControl(ExampleWindow);
}
function onTabSelect(tabs)
{
for (temp.tab: temp.tabs.rows)
{
if (temp.tab.pane == null)
{
continue;
}
if (temp.tab == temp.tabs.selected)
{
temp.tab.pane.show();
}
else
{
temp.tab.pane.hide();
}
}
}
Would this work? Any help would be helpful
