- Joined
- Jul 12, 2010
- Messages
- 1,737
ok guys so I saw this thread and I tried to make a 3D model on UI with no luck...
Does anybody know how to do it without the whole screen turning black?
Also why does this method require special 2d models?
If anybody knows please provide a working example, thank you.
Code:
local framehandle model = BlzCreateFrameByType("SPRITE", "Test", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 0)
// call BlzFrameSetModel(model, "units\\human\\ArthaswithSword\\ArthaswithSword", 0)
call BlzFrameSetModel(model, "ui\\feedback\\xpbar\\xpbarconsole.mdx", 0)
// call BlzFrameSetTexture(model, "Textures\\Arthas.blp" , 1, true)
// call BlzFrameSetSpriteAnimate(model, 1, 0)
call BlzFrameSetSize(model, 0.2, 0.2)
call BlzFrameSetAbsPoint(model, FRAMEPOINT_CENTER, 0.4, 0.4)
endfunction
//===========================================================================
function InitTrig_model_3d takes nothing returns nothing
set gg_trg_model_3d = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_model_3d, 0.50 )
call TriggerAddAction( gg_trg_model_3d, function Trig_model_3d_2_Actions )
endfunction
Does anybody know how to do it without the whole screen turning black?
Also why does this method require special 2d models?
If anybody knows please provide a working example, thank you.