Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Announcements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-30-2005, 01:13 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Exclamation Graal v4.03 revision 2 released

Get the latest version for Windows or Linux by connecting to the login server.

Updates:
- UDP is disabled by default now, but it is automatically enabled when you want to use the microphone (since UDP is currently required for using the voice chat in Graal); UDP can speed things up for you in the game (less lag when seeing other players moving), but it is often not working for people so it's now disabled by default, can be reenabled by the player
- fixed copying of text (Windows)
- fixed the keyboard-remap-thing in the options window (Linux)
- when pressing up/down in the chatbar then it is not showing the selection anymore (it was highlighting wrong text)
- reconnecting to the login server doesn't mess up the F8 window anymore
- npc.canbepulled on clientside works correctly now (although its deprecated)
- fixed crashing problems when classes are updated
- removed the buggy GuiMenuBar and added a new control: GuiMenuCtrl; it is quite simple to use, you add menus with addMenu(menuname) and can then access the menus by menus[index], each menu is a GuiTextListCtrl, so you can add menu entries with menus[0].addrow(id,menuentrytext) etc.; here an example:
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
addGuiControls();
}

function 
addGuiControls() {
  new 
GuiWindowCtrl("MenuTest_Window") {
    
profile GuiBlueWindowProfile;
    
0;
    
width height 200;
    
canmove true;
    
canmaximize true;
    
canminimize true;
    
canclose false;
    
text "Menu Test";
    
    new 
GuiMenuCtrl("MenuTest_Menu") {
      
profile GuiMenuBarProfile;
      
5;
      
24;
      
width 190;
      
height 20;
      
horizSizing "width";
      
setIconSize(16,16);
      
      
with (addMenu("File")) {
        
icon.drawimagestretched(0,0,16,16,
          
"mud_apple.png",0,0,32,32);
        
clearRows();
        
addRow(0,"Hello");
        
addRow(1,"Close"); 
      }
      
with (addMenu("Edit")) {
        
icon.drawimagestretched(0,0,16,16,
          
"mud_stone.png",0,0,32,32);
        
clearRows();
        
setIconSize(16,16);
        
with (addRow(0,"Hmmm")) {
          
icon.drawimagestretched(0,0,16,16,
            
"mud_loaf.png",0,0,32,32);
        }
        
addRow(1,"Ok Dokey Schlokey");
      }
    }
  }
}

function 
MenuTest_Menu.onSelect(menuname,selid,seltext,selindex) {
  echo(
"menu selected: " menuname " - " selid 
    
" - " seltext " - " selindex);

Basicly you only need addMenu and addRow, but the example also shows how to use icons and such. I have attached the 3 images required for this.

Update: Forgot to mention this:
- Alt+4 displays the incoming and outgoing data (in bytes/sec)
- Alt+5 displays the fps (frames per second) in Graal 3D (in Graal2D there are always 20 fps)

Update: Also uploaded the new Mac version
Attached Images
   
Reply With Quote
 


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 02:33 PM.


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