Thread: News-Window
View Single Post
  #29  
Old 04-09-2009, 06:45 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
lawl, maybe I shouldnt "edit" the script and just post the one I use:


If this doesnt work, I should stop scripting
PHP Code:
//Made by Schetti
/* useful Codes:
<b>text</b>
<u>text</u>
<i>text</i>
<center>text</center>
*/

//#CLIENTSIDE
function onCreated()
{
  
NewsWindow = new GuiWindowCtrl("NewsWindow");
  
  
with (NewsWindow)
  {
    
profile     "GuiBlueWindowProfile"
    
position    "640 390";
    
extent      "380 380";
    
canMove     true
    
canResize   false
    
canMaximize false
    
canClose    true
    
tile        true
    
text        "Supernova-News"
    
    new 
GuiControl(NewsTab)
    {
      
visible    false;
      
profile    "GuiBlueControlProfile";
      
position   "10 52";
      
extent     "360 310";
      
    new 
GuiScrollCtrl("NewsScroll") {
      
profile GuiBlueScrollProfile;
      
position = { 510};
      
extent = { 350300};
      
hscrollbar "alwaysOff";
      
vscrollbar "alwaysOn";


    new 
GuiMLTextCtrl("NewsList") { 

         
profile GuiBlueMLTextProfile;
         
extent = { 51832};   
        
horizsizing "width";
text "
<u><b>Schetti:</b></u>
I am working on our mine system,
but it needs GFX!

<u><b>Lucas:</b></u>
Finally we got tailor (Schetti
made it,much thanks to he for that) 
to open it say /tailor.

<u><b>Schetti:</b></u>
The newswindow is fixed now.
We are working on some quests now.

<u><b>Schetti:</b></u>
I am is working on a new Event. 
I hope it works
"
;                                            

      };
    }
    };
    
    new 
GuiControl(HiringsTab)
    {
      
visible    false;
      
profile    "GuiBlueControlProfile";
      
position   "10 52";
      
extent     "360 310";
      
    new 
GuiScrollCtrl("HiringsScroll") {
      
profile GuiBlueScrollProfile;
      
position = { 510};
      
extent = { 350300};
      
hscrollbar "alwaysOff";
      
vscrollbar "alwaysOn";


    new 
GuiMLTextCtrl("HiringsList") {
        
profile GuiBlueMLTextProfile
        
horizsizing "width";
extent = { 34732};
text "
We are currently under construction and we hire every kind of staff 
exept FAQ/GP and ET.

<b>WE HARDLY NEED SCRIPTERS(NAT)!
Just send us 2-3 of your best scripts.</b>

If you're interested write an E-Mail to:
                                         
[email protected]
or  [email protected]
                                                                                                       
with some of your levels, ganis or what ever you make at your job                 
and some personal stuff like: 
your experience on other servers, 
why you want to be staff here, 
and why do you think we should take you 
instead of another applicant.

LATs can contact Schetti or Lucas3 if they are online.
We might give you OnlineEditor so you can show us what you can.

You also can say 
/latapply  or
/gfxapply



<b>IMPORTAND!</b>
Please dont write an apply, if you aren't Gold.
        "
;    
       
      };
    }
    };
    
    new 
GuiControl(StaffTab)
    {
      
visible    false;
      
profile    "GuiBlueControlProfile";
      
position   "10 52";
      
extent     "360 310";
      
    new 
GuiScrollCtrl("StaffScroll") {
      
profile GuiBlueScrollProfile;
      
position = { 510};
      
extent = { 350300};
      
hscrollbar "alwaysOff";
      
vscrollbar "alwaysOn";


    new 
GuiMLTextCtrl("StaffList") {
        
profile GuiBlueMLTextProfile
        
horizsizing "width";
        
position = { xy};
        
extent = { 34732};
text "
*Owner*
Lucas3

*CO-Owner*
<b>needed</b>  

*Manager*
<b>needed</b> 
                                                                                                                                                                
*Developer*
PowerProNL
tstre

*GFX*
<b>needed</b>

*LAT*
Schetti
Valtor
sonnfel"
;    
       
      };
    }
    };
    
    new 
GuiTabCtrl(ExampleTabs)
    {
      
profile   "GuiBlueTabProfile";
      
position  "10 28";
      
extent    "300 24";
      
      
clearRows();
      
with (addRow(0"News"))
      {
        
this.pane NewsTab;
      }
      
with (addRow(1"Hirings"))
      {
        
this.pane HiringsTab;
      }
      
with (addRow(2"Staff"))
      {
        
this.pane StaffTab;
      }
      
      
thiso.catchevent(name"onSelect""onTabSelect");
    };
  };
  
ExampleTabs.setSelectedById(0);
  
GraalControl.addControl(NewsWindow);
}

function 
onTabSelect(tabs)
{
  for (
temp.tabtemp.tabs.rows)
  {
    if (
temp.tab.pane == null)
    {
      continue;
    }
    
    if (
temp.tab == temp.tabs.selected)
    {
      
temp.tab.pane.show();
    }
    else
    {
      
temp.tab.pane.hide();
    }
  }

__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote