Thread: keydown in gui
View Single Post
  #6  
Old 11-12-2006, 05:16 PM
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
Add the buttons to the window, then you just need to show/hide the window instead of showing/hiding each individual button:
PHP Code:
new GuiWindowCtrl(DiscriptionWindow){
  new 
GuiButtonCtrl(ItemButtonWindow){ 
  }
  ...

To display the description of the button when you move the mouse over it, use the hint-attribute, like
PHP Code:
new GuiButtonCtrl(ItemButtonWindow){ 
  
hint "This is the item button"

To react to the button click, use the onAction-event:
PHP Code:
function ItemButtonWindow.onAction() {
  ...

Reply With Quote