Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-27-2011, 10:56 PM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
onKeyDown() and keydown(i) in GUIControls

I'm modifying my inventory to work with the keyboard, but I'm running into some problems
Why doesn't this work?
PHP Code:
function onMenuKeyDown() {
   
player.chat="MenuKeyDown";
   if (
keydown(8)) {
     
player.chat="TAB";
     
Inventory_Categories.forceonaction();
  }

The player only chats "MenuKeyDown".

So I'm doing this instead,which works, but can I even use keycodes? Aren't they platform specific?
PHP Code:
function onMenuKeyDown(gui,keycode) {
   
player.chat="MenuKeyDown";
   if (
keycode==9) {
     
player.chat="TAB";
     
Inventory_Categories.forceonaction();
  }

Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:57 AM.


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