Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-08-2012, 07:04 AM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
Item description

How do I make the Gui display the item description?

In the actual weapon I have this

PHP Code:
//#CLIENTSIDE
function onCreated() {
 
obj.description "This is a test.";
 } 
In the inventory I have this for the display text part

--This is done after item is clicked.
PHP Code:
      new GuiTextCtrl("Inventory_Item_Text") {
        
profile GuiBlueTextProfile;
        
text obj.description;
        
screenwidth/2-700+480;
        
screenheight/2-350+140;
        
layer 2;
      } 
I may be way off. But I'm still trying to learn
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 08:45 PM.


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