|
|
|
@ -86,7 +86,7 @@ plVoiceRecorder::plVoiceRecorder()
|
|
|
|
|
plPlateManager::Instance().CreatePlate( &fDisabledIcon ); |
|
|
|
|
fDisabledIcon->CreateFromResource( MICROPHONE ); |
|
|
|
|
fDisabledIcon->SetPosition(-0.90, -0.90); |
|
|
|
|
fDisabledIcon->SetSize(0.0675, 0.09); |
|
|
|
|
fDisabledIcon->SetSize(0.064, 0.064, true); |
|
|
|
|
fDisabledIcon->SetVisible(false); |
|
|
|
|
|
|
|
|
|
plPlateManager::Instance().CreatePlate( &fTalkIcon ); |
|
|
|
@ -210,14 +210,17 @@ void plVoiceRecorder::DrawDisabledIcon(hsBool b)
|
|
|
|
|
{ |
|
|
|
|
fDisabledIcon->CreateFromResource( MICROPHONE ); |
|
|
|
|
fDisabledIcon->SetPosition(-0.90, -0.90); |
|
|
|
|
fDisabledIcon->SetSize(0.0675, 0.09); |
|
|
|
|
fDisabledIcon->SetSize(0.064, 0.064, true); |
|
|
|
|
fDisabledIcon->SetVisible(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (fDisabledIcon) |
|
|
|
|
{ |
|
|
|
|
fDisabledIcon->SetSize(0.064, 0.064, true); // Re-compute plate size in case the aspect ratio has changed.
|
|
|
|
|
fDisabledIcon->SetVisible(b); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void plVoiceRecorder::DrawTalkIcon(hsBool b) |
|
|
|
|
{ |
|
|
|
@ -227,13 +230,14 @@ void plVoiceRecorder::DrawTalkIcon(hsBool b)
|
|
|
|
|
if (fTalkIcon) |
|
|
|
|
{ fTalkIcon->CreateFromResource( TALKING ); |
|
|
|
|
fTalkIcon->SetPosition(-0.9,-0.9); |
|
|
|
|
fTalkIcon->SetSize(0.0675, 0.09); |
|
|
|
|
fTalkIcon->SetSize(0.064, 0.064, true); |
|
|
|
|
fTalkIcon->SetVisible(false); |
|
|
|
|
}
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (fTalkIcon) |
|
|
|
|
{ |
|
|
|
|
fTalkIcon->SetSize(0.064, 0.064, true); // Re-compute plate size in case the aspect ratio has changed.
|
|
|
|
|
fTalkIcon->SetVisible(b); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|