• "SchoolMe" flash player, is it vgui, possible to use in lua?!
    49 replies, posted
[QUOTE=TehBigA;15799034]Did you not read the whole thread?[/QUOTE] and totally ignore the helpful SDK stuff i pasted in ok.
Yeah Steve, I knew it was HTML since post 3 or whatever. Woa, SDK, how can I use those within LUA, is it possible?
try calling those functions?
Like html:StartAnimate etc? Nothing.
[QUOTE='-[ Fizzadar ]-;15805068']Like html:StartAnimate etc? Nothing.[/QUOTE] Well Garry needs to add them if that's going to work.
This is a pretty big issue with everyone. You'd think someone would work on making it update? And maybe upgrading IE from 5 would be a good plan as well. (At least I think that's what it is)
[QUOTE=Skapocalypse;15934162]This is a pretty big issue with everyone. You'd think someone would work on making it update? And maybe upgrading IE from 5 would be a good plan as well. (At least I think that's what it is)[/QUOTE] First is possible, though I doubt Garry would take the time to do it. Second question is all on Valve.
[QUOTE=Skapocalypse;15934162]This is a pretty big issue with everyone. You'd think someone would work on making it update? And maybe upgrading IE from 5 would be a good plan as well. (At least I think that's what it is)[/QUOTE] As far as I know, it uses the latest version of IE installed on the client.
-Snip-
Garry should be able to just add those SDK commands to the LUA engine, should be extremely quick really. [editline]02:08AM[/editline] Submitted to the new suggestions shit: [url]http://getsatisfaction.com/facepunch/topics/html_vgui_lua_additions[/url]
Not sure anymore. I remember a while ago, it was IE 5. This is what I got with a basic PHP check of the browser. [IMG]http://i30.tinypic.com/2iaee50.png[/IMG]
[QUOTE=Unrealomega;15949486]It doesn't, it uses a rather old module. :P[/QUOTE] ...which uses the latest version of IE that the client has.
Version is irrelevant, there's SDK funcs that need to be added to GMod LUA by Garry.
Garry finnaly put in StartAnimate() :D Its not as FPS rape as the window "fix" but it still drops fps by 15, better than having 15 FPS tho [lua] function RunTest(ply, cmd, arg) Winmain = vgui.Create("DFrame") Winmain:SetPos(0,0) Winmain:SetSize(800,600) Winmain:SetVisible(true) Winmain:SetTitle( "StartAnimate() Test" ) Winmain:MakePopup() Winmain:ShowCloseButton(true) Winhtml = vgui.Create( "HTML" , Winmain) Winhtml:SetPos(0,30) Winhtml:SetSize(790,560) Winhtml:SetVisible(true) local link = "dagobah.biz/copy1_dagobah_biz/Touhou_Canyon.swf" // you can put whatever media you want here local url = [[<center> <OBJECT ID="MediaPlayer" WIDTH="750" HEIGHT="530" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject"> <PARAM NAME="FileName" VALUE="http://]]..link..[["> <PARAM name="autostart" VALUE="true"> <PARAM name="ShowControls" VALUE="false"> <param name="ShowStatusBar" value="false"> <PARAM name="ShowDisplay" VALUE="false"> </OBJECT> </center>]] Winhtml:SetHTML( url ) Winhtml:Refresh(true) Winhtml:StartAnimate(100) end concommand.Add("animtest", RunTest) [/lua]
[QUOTE=mcd1992;16290993]Garry finnaly put in StartAnimate() :D Its not as FPS rape as the window "fix" but it still drops fps by 15, better than having 15 FPS tho [lua] function RunTest(ply, cmd, arg) Winmain = vgui.Create("DFrame") Winmain:SetPos(0,0) Winmain:SetSize(800,600) Winmain:SetVisible(true) Winmain:SetTitle( "StartAnimate() Test" ) Winmain:MakePopup() Winmain:ShowCloseButton(true) Winhtml = vgui.Create( "HTML" , Winmain) Winhtml:SetPos(0,30) Winhtml:SetSize(790,560) Winhtml:SetVisible(true) local link = "dagobah.biz/copy1_dagobah_biz/Touhou_Canyon.swf" // you can put whatever media you want here local url = [[<center> <OBJECT ID="MediaPlayer" WIDTH="750" HEIGHT="530" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject"> <PARAM NAME="FileName" VALUE="http://]]..link..[["> <PARAM name="autostart" VALUE="true"> <PARAM name="ShowControls" VALUE="false"> <param name="ShowStatusBar" value="false"> <PARAM name="ShowDisplay" VALUE="false"> </OBJECT> </center>]] Winhtml:SetHTML( url ) Winhtml:Refresh(true) Winhtml:StartAnimate(100) end concommand.Add("animtest", RunTest) [/lua][/QUOTE] Has this been added to the wiki? :3
I didnt really read all the replies, but... Garry hardcoded the videos in. Look for the .flv files that there is in the \help folder. He used C++ to direct SchoolMe to the HTML file thats included. The HTML files takes over from there, and using CSS the video is positioned perfectly. The HTML also points to the .flv videos that are included. Really, this thing isn't that hard to figure out. Its easy to mod the SchoolMe, thats pretty much open source. Heck, its even in the GMod wiki. [url]http://wiki.garrysmod.com/?title=Modding[/url] Please don't flame me if i didn't understand ya, im not into the hardcore stuff.
[QUOTE=Unrealomega;]Has this been added to the wiki? :3[/QUOTE] Its In The wiki but needs a page, just replace your hacky resize window thing with [lua] htmlpanel:StartAnimate(milliseconds) [/lua]
Sorry, you need to Log In to post a reply to this thread.