Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-05-2007, 05:05 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
GuiTextEditSliderCtrl bug

I came across some strange behavior when playing around with GuiTextEditSliderCtrl.

It works just fine if you do not set a format, or have:
PHP Code:
format "$d something"
However, the text does not update properly when you have something before $d, like:
PHP Code:
format "something $d"
NOTE: Replace $ with the percent sign. For whatever reason, I get a bad request error from the server when I try to post with the percent sign, which may very well be another bug...
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #2  
Old 10-05-2007, 01:55 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by napo_p2p View Post
I came across some strange behavior when playing around with GuiTextEditSliderCtrl.

It works just fine if you do not set a format, or have:
PHP Code:
format "$d something"
However, the text does not update properly when you have something before $d, like:
PHP Code:
format "something $d"
NOTE: Replace $ with the percent sign. For whatever reason, I get a bad request error from the server when I try to post with the percent sign, which may very well be another bug...
Yea, the forum somehow blocks the percent symbol.
About the GuiTextEditSlider, thats infact pretty weird
__________________
Reply With Quote
  #3  
Old 10-05-2007, 09:07 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
How its not updating properly? What text do you see ?
Reply With Quote
  #4  
Old 10-05-2007, 09:53 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Stefan View Post
How its not updating properly? What text do you see ?
When the arrows are pushed, the text just remains the same.

For example, if you take the example code off of the wiki:
PHP Code:
new GuiTextEditSliderCtrl("Test_EditSlider") {
  
profile GuiBlueTextEditSliderProfile;
  
10;
  
10;
  
width 160;
  
height 20;
  
format "Edit $d Slider";
  
range = {1,200};
  
value 123;

The slider says "Edit 1 slider" no matter what. If you change format to:
PHP Code:
format "$d Slider"
Then it is working fine.


(Again, replace $ with the percent sign).
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #5  
Old 10-08-2007, 01:32 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
Ok fixed in my version, some part of the code was expecting the number to be always in the front.
Reply With Quote
Reply


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 PM.


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