TGE1.4: guiTextEditCtrl bug&fix.
by Chris Shark · in Torque Game Engine · 11/26/2005 (11:42 am) · 27 replies
Hello
I found bug in TGE1.4 / guiTextEditCtrl .
When i click [Password] check in guiTextEditCtrl, my torque-app is suspended.
here is my fixes:
In file: gui/guiTextEditCtrl.cc proc: void GuiTextEditCtrl::drawText(...)
Ln 968:
Now is OK (and not suspended)!
But i still dont see "*" symbol with password-checked in texteditctrl.
and now fix:
Ln 1039:
Ln 1125:
Ln 1145:
Cya.
I found bug in TGE1.4 / guiTextEditCtrl .
When i click [Password] check in guiTextEditCtrl, my torque-app is suspended.
here is my fixes:
In file: gui/guiTextEditCtrl.cc proc: void GuiTextEditCtrl::drawText(...)
Ln 968:
...
// Apply password masking (make the masking char optional perhaps?)
if(mPasswordText)
{
[b]//@SHARKK:@2:earlier here--> for(U32 i = 0; i<mTextBuffer.length()-1; i++)[/b]
for(U32 i = 0; i<mTextBuffer.length(); i++)
textBuffer.append(StringBuffer(mPasswordMask));
}
else
...Now is OK (and not suspended)!
But i still dont see "*" symbol with password-checked in texteditctrl.
and now fix:
Ln 1039:
// calculate the cursor
if ( isFocused )
{
// Where in the string are we?
[b]//@SHARKK:@2: earlier here: mTextBuffer.substring(.)....[/b]
StringBuffer preCursor = textBuffer.substring(0, mCursorPos);
S32 cursorOffset=0, charWidth=0;
[b]//@SHARKK:@2: earlier here: mTextBuffer.getChar(.)....[/b]
UTF16 tempChar = textBuffer.getChar(mCursorPos);Ln 1125:
//draw the hilighted portion
if ( mBlockEnd > 0 )
{
[b]//@SHARKK:@2: I think should have textBuffer not mTextBuffer.substring(.)....[/b]
StringBuffer highlightBuff = textBuffer.substring(mBlockStart, mBlockEnd-mBlockStart);Ln 1145:
//draw the portion after the highlite
if(mBlockEnd < mTextBuffer.length())
{
[b]//@SHARKK:@2: I think should have textBuffer not mTextBuffer.substring(.)....[/b]
StringBuffer finalBuff = textBuffer.substring(mBlockEnd, mTextBuffer.length() - mBlockEnd);
FrameTemp<UTF8> finalTemp(finalBuff.length()*3 + 1);Cya.
#22
05/08/2006 (10:44 pm)
I'm lost on how to edit the players name not showing up from the prefs.cs.
#23
|
|
V
06/23/2006 (9:37 am)
Caught me before I deleted the post, Stefan. No problem exists, fixes already in TLK 1.4 and TSE MS3.|
|
V
#24
06/23/2006 (9:43 am)
What's wrong with the thread? I mean, the fixes do work. And resources are way behind in approval right now so TDN would be the best place.
#25
Regards,
Dreamer
07/12/2006 (1:33 pm)
Hey all I have compiled all of this into a resource, you can now just search the word guiTextEditCtrl and it will send you right to the corrected version.Regards,
Dreamer
#26
When will this fix (#1083) become part of the installer? Your last post was january 06.
08/01/2006 (10:48 am)
@BenWhen will this fix (#1083) become part of the installer? Your last post was january 06.
#27
Jokes aside, perhaps we need to keep/maintain our own offsite cvs with all the fixes merged in seeing as we dont have update access to the main repository. Unless GG have another solution in the pipeline which we don't know of yet.
08/01/2006 (2:36 pm)
You bought your licence, they got your money, don't expect any other commitments unless its somehow profitable to GG. They are trying to run a business you know :) Geez, the cheek of some people.Jokes aside, perhaps we need to keep/maintain our own offsite cvs with all the fixes merged in seeing as we dont have update access to the main repository. Unless GG have another solution in the pipeline which we don't know of yet.
Associate Matt Fairfax
Night Heron Games