Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Bug Report (https://forums.graalonline.com/forums/forumdisplay.php?f=193)
-   -   GuiTextEditSliderCtrl bug (https://forums.graalonline.com/forums/showthread.php?t=77042)

napo_p2p 10-05-2007 05:05 AM

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

Crow 10-05-2007 01:55 PM

Quote:

Originally Posted by napo_p2p (Post 1351056)
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 :confused:

Admins 10-05-2007 09:07 PM

How its not updating properly? What text do you see ?

napo_p2p 10-05-2007 09:53 PM

Quote:

Originally Posted by Stefan (Post 1351139)
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).

Admins 10-08-2007 01:32 PM

Ok fixed in my version, some part of the code was expecting the number to be always in the front.


All times are GMT +2. The time now is 01:54 AM.

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