Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: fsk on June 21, 2011, 05:02:29 PM
-
Hi everyone!
When i play a theora video i wan't to disabled any click of mouse and keyboard keys..
Can i?
Is there any script?
Thanks! :)
-
I did some modification along these lines which should be theoretically in WME - latest.
the attribute in question is
Game.VideoSkipButton = [0..2];
0 = leftclick skips theora
1 = rightclick skips theora
2 = no mouse skipping allowed
But ask Mnemonic, if it's included in the official branch.
-
Thanks metamorphium for the replay..
I will be waiting for an answer of mnemonic! :)
-
It's present in the (unofficial) WME latest (http://dead-code.org/download/wme_latest.zip) build.
-
Thanks mnemonic.. any example code to understand because i have stuck! :(
-
anyone to help me? ::rock
-
You simply write Game.VideoSkipButton = 2; in your Script, so the video cannot be skipped by mouseclick.
-
no working.. Try it if you want!
"VideoSkipButton" there is not.
Look, i use theora.. so, in my game.script:
Game.VideoSkipButton = 2;
Game.PlayTheora ("My Video.ogv");
am i wrong?
Thanks for the replay Spellbreaker..
-
Did you download the wme version that Mnemonic linked above?
-
Yes..i have the WME latest build.
Did you tried?
-
I tried the download - couldn't download - downloading file box just hung
-
Just downloaded - worked fine
Wrote Game.VideoSkipButton = 2; into my game.script file - worked fine
Dunno where your problem is, did you _really_ use exactly the version mnemonic linked there, and updated the two files?
cheers
-
It's worked..
but i wrote: Game.VideoSkipButton = 3; :-\
ok for mouse.. but for keyboard? (esc for example to disable)
-
Anyone to know how to disable the esc button when i play my video?
and
another problem is the audio of theora? i don't hear anything.. is there any way to saw to change maybe the volume if is down..?
Thanks!
-
anyone to have the same problem (disable the esc button when theora is playing) ? ??? (only me? ;D )
-
You can't do that with full-screen video. But you can use a scene with video entity (entity.PlayTheora()) and then you have complete control over the video playback.
-
Thanks Mnemonic! ::rock