PDA

View Full Version : Graal v4.03 revision 2 released


Admins
12-30-2005, 01:13 AM
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:

//#CLIENTSIDE
function onCreated() {
addGuiControls();
}

function addGuiControls() {
new GuiWindowCtrl("MenuTest_Window") {
profile = GuiBlueWindowProfile;
x = y = 0;
width = height = 200;
canmove = true;
canmaximize = true;
canminimize = true;
canclose = false;
text = "Menu Test";

new GuiMenuCtrl("MenuTest_Menu") {
profile = GuiMenuBarProfile;
x = 5;
y = 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,seli ndex) {
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

Skyld
12-30-2005, 01:18 AM
- fixed the keyboard-remap-thing in the options window (Linux)
- reconnecting to the login server doesn't mess up the F8 window anymore

...

- 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:
I love you, Stefan. :D

ZeLpH_MyStiK
12-30-2005, 03:29 AM
Back off Skyld! Stefan's mine!

Yen
12-30-2005, 04:07 AM
I already called marriage. ;[

napo_p2p
12-30-2005, 04:40 AM
I already called marriage. ;[

And Stefan probably called the police :p.

ApothiX
12-30-2005, 11:13 AM
Decent menu system, and by copying of text, did you mean the bug where it copied past the End of Selection mark?

Admins
12-30-2005, 02:31 PM
Decent menu system, and by copying of text, did you mean the bug where it copied past the End of Selection mark?

Yes

ZeLpH_MyStiK
12-30-2005, 08:45 PM
Yes

Sounds kinda forced...