Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-12-2006, 01:04 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Gui Control Prob

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
__________________

Last edited by projectigi; 03-12-2006 at 10:48 AM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.