ok presets are
NPC Code:
clientr.login_news="test";
clientr.login_hirings="test";
clientr.login_rules="test";
thiso.addtabs="news,hirings,rules";
thiso.addtabtitles="News,Hirings,Rules";
NPC Code:
[...]
new GuiScrollCtrl(MainTab) {
x = 10;
y = 70;
width = screenwidth - 60;
height = 200;
visible = true;
profile = "GuiBlueScrollProfile";
for(thiso.i: thiso.addtabs){
new GuiMLTextCtrl(thiso.i@"TabText"){
position = "7 2";
visible = false;
width = screenwidth - 60 - 40;
height = 195;
text = clientr.("login_"@thiso.i);
profile = "GuiBlueTextProfile";
}
}
}
new GuiTabCtrl(NewsTAB_Main) {
profile = "GuiBlueTabProfile";
x = 10;
width = screenwidth - 60;
y = 30;
height = 40;
clearRows();
thiso.addtabs = getstringkeys("clientr.login_");
thiso.ccd = 0;
this.i=0;
for(thiso.i: thiso.addtabs){
with(addRow(this.ccd,thiso.addtabtitles[thiso.addtabs.index(thiso.i)])){
this.pane=(thiso.i@"TabText");
}
}
thiso.catchevent(name, "onSelect", "onTabSelect");
setSelectedById(0);
}
[...]
function onTabSelect(tabs) {
for (temp.tab: temp.tabs.rows) {
if (temp.tab.pane == null)
continue;
if (temp.tab == temp.tabs.selected)
temp.tab.pane.visible=true;
else
temp.tab.pane.visible=false;
}
}
so the TextCtrls get created but they dont show up(they have a text, u can see it when u set the visible flag of the textctrls to true)
so something with the tab thing is wrong
the text(the textctrls) dont show up
edit:
it seems like it isnt using the pane as an object