mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
revise populateallfonts
rewritten to be a full itteration of all unique combos of font+size used by any currently loaded guicontrolprofile
This commit is contained in:
parent
6cb34ab3e9
commit
f22464b056
1 changed files with 19 additions and 7 deletions
|
|
@ -641,15 +641,27 @@ function switchControlObject(%client, %newControlEntity)
|
||||||
%control.setConnectionControlObject(%client);
|
%control.setConnectionControlObject(%client);
|
||||||
}
|
}
|
||||||
|
|
||||||
function populateAllFonts(%font)
|
function populateAllFonts()
|
||||||
{
|
{
|
||||||
populateFontCacheRange(%font,14,0,65535);
|
%fontarray = new ArrayObject();
|
||||||
populateFontCacheRange(%font,18,0,65535);
|
foreach( %obj in GuiDataGroup )
|
||||||
populateFontCacheRange(%font,24,0,65535);
|
{
|
||||||
populateFontCacheRange(%font,32,0,65535);
|
if( !%obj.isMemberOfClass( "GuiControlProfile" ) )
|
||||||
populateFontCacheRange(%font,36,0,65535);
|
continue;
|
||||||
|
%fontarray.push_back(%obj.fontType,%obj.fontSize);
|
||||||
|
}
|
||||||
|
%fontarray.uniqueKey();
|
||||||
|
|
||||||
|
%fontarrayCount = %fontarray.count();
|
||||||
|
|
||||||
|
for (%i=0;%i<%fontarrayCount;%i++)
|
||||||
|
{
|
||||||
|
%font = %fontarray.getKey(%i);
|
||||||
|
%hieght = %fontarray.getValue(%i);
|
||||||
|
populateFontCacheRange(%font,%hieght,0,65535);
|
||||||
|
}
|
||||||
|
%fontarray.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
function clientCMDPlaySound(%soundAssetId,%pos)
|
function clientCMDPlaySound(%soundAssetId,%pos)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue