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 11-09-2011, 01:10 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Limiting options

Okay, so I have this lovely GUI I'm working on, everything works wonders, except this one issue. I want to limit what a player can enter in the GuiTextEditCtrl.

This is the only thing I've been able to get working..
PHP Code:
if (! (UserPrice.text == "Offer")) {
  return;

I only want the following text order to be allowed, other than offer:
PHP Code:
this.format "$" amount "k"
How would I go about do something like this?
__________________

Last edited by Tim_Rocks; 11-09-2011 at 01:38 AM..
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 10:12 AM.


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