home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CyberMycha 2006 April
/
SGP.iso
/
dema
/
Keepsake-Demo-en-li-v1.0.exe
/
res
/
auto
/
enchantedHallway.mvwrap.tcl
< prev
next >
Wrap
Text File
|
2005-10-22
|
10KB
|
332 lines
namespace eval bookCorner {
variable posx
variable posy
variable width
variable height
variable scene
variable camera
variable {lightCandle} 0
set posx(lightCandle) 0.000000
set posy(lightCandle) 0.346354
set width(lightCandle) 0.125000
set height(lightCandle) 0.333333
set scene(lightCandle) enchantedHallway
set camera(lightCandle) bookCorner
variable {lightLanter} 0
set posx(lightLanter) 0.707031
set posy(lightLanter) 0.131510
set width(lightLanter) 0.250000
set height(lightLanter) 0.333333
set scene(lightLanter) enchantedHallway
set camera(lightLanter) bookCorner
proc new {object args} {
variable $object
variable posx
variable posy
variable width
variable height
variable scene
variable camera
if {[set $object] != 0} return
set optstring {play foreground nopan {depth 0}}
array set v [cmdline::getopt $args $optstring]
set layer "-background"
if $v(foreground?) {
set layer "-foreground"
}
set pan "-pan"
if $v(nopan?) {
set pan ""
}
set depth $v(depth)
set $object [wq'widget::new "movies/[MOVIE_QUALITY]/$scene($object)/$camera($object)/$object" \
-pos $posx($object) $posy($object) -dsize $width($object) $height($object) \
-depth $depth $layer $pan]
eval "oz'widget::property [set $object] $args"
if $v(play?) {
oz'event {
ozSet mvDisableMouse 0
if [ozIsEnable mouse] {
wizDisableMouse
ozSet mvDisableMouse 1
}
}
wq'widget::waitfor [set $object] -animate
wq'widget::delete [set $object]
oz'event {
if [ozGet mvDisableMouse] {
wizEnableMouse
}
}
set $object 0
}
}
proc newSt {object args} {
variable $object
variable posx
variable posy
variable width
variable height
variable scene
variable camera
if {[set $object] != 0} return
set optstring {play foreground {depth 1}}
array set v [cmdline::getopt $args $optstring]
set layer "-background"
if $v(foreground) {
set layer "-foreground"
}
set depth $v(depth)
set $object [wq'widget::new "states/[MODE]/$scene($object)/$camera($object)/$object" \
-pos $posx($object) $posy($object) -dsize $width($object) $height($object) \
-depth $depth $layer -pan]
eval "oz'widget::property [set $object] $args"
}
}
namespace eval corridor {
variable posx
variable posy
variable width
variable height
variable scene
variable camera
variable {lightCandleA1} 0
set posx(lightCandleA1) 0.875000
set posy(lightCandleA1) 0.666667
set width(lightCandleA1) 0.125000
set height(lightCandleA1) 0.333333
set scene(lightCandleA1) enchantedHallway
set camera(lightCandleA1) corridor
variable {lightCandleA2} 0
set posx(lightCandleA2) 0.750000
set posy(lightCandleA2) 0.854167
set width(lightCandleA2) 0.125000
set height(lightCandleA2) 0.145833
set scene(lightCandleA2) enchantedHallway
set camera(lightCandleA2) corridor
variable {lightCandleB} 0
set posx(lightCandleB) 0.360352
set posy(lightCandleB) 0.278646
set width(lightCandleB) 0.125000
set height(lightCandleB) 0.333333
set scene(lightCandleB) enchantedHallway
set camera(lightCandleB) corridor
variable {lightChandelier} 0
set posx(lightChandelier) 0.000000
set posy(lightChandelier) 0.144531
set width(lightChandelier) 0.061523
set height(lightChandelier) 0.333333
set scene(lightChandelier) enchantedHallway
set camera(lightChandelier) corridor
variable {lightChandelierBack} 0
set posx(lightChandelierBack) 0.749023
set posy(lightChandelierBack) 0.364583
set width(lightChandelierBack) 0.125000
set height(lightChandelierBack) 0.166667
set scene(lightChandelierBack) enchantedHallway
set camera(lightChandelierBack) corridor
proc new {object args} {
variable $object
variable posx
variable posy
variable width
variable height
variable scene
variable camera
if {[set $object] != 0} return
set optstring {play foreground nopan {depth 0}}
array set v [cmdline::getopt $args $optstring]
set layer "-background"
if $v(foreground?) {
set layer "-foreground"
}
set pan "-pan"
if $v(nopan?) {
set pan ""
}
set depth $v(depth)
set $object [wq'widget::new "movies/[MOVIE_QUALITY]/$scene($object)/$camera($object)/$object" \
-pos $posx($object) $posy($object) -dsize $width($object) $height($object) \
-depth $depth $layer $pan]
eval "oz'widget::property [set $object] $args"
if $v(play?) {
oz'event {
ozSet mvDisableMouse 0
if [ozIsEnable mouse] {
wizDisableMouse
ozSet mvDisableMouse 1
}
}
wq'widget::waitfor [set $object] -animate
wq'widget::delete [set $object]
oz'event {
if [ozGet mvDisableMouse] {
wizEnableMouse
}
}
set $object 0
}
}
proc newSt {object args} {
variable $object
variable posx
variable posy
variable width
variable height
variable scene
variable camera
if {[set $object] != 0} return
set optstring {play foreground {depth 1}}
array set v [cmdline::getopt $args $optstring]
set layer "-background"
if $v(foreground) {
set layer "-foreground"
}
set depth $v(depth)
set $object [wq'widget::new "states/[MODE]/$scene($object)/$camera($object)/$object" \
-pos $posx($object) $posy($object) -dsize $width($object) $height($object) \
-depth $depth $layer -pan]
eval "oz'widget::property [set $object] $args"
}
}
namespace eval stairsLow {
variable posx
variable posy
variable width
variable height
variable scene
variable camera
variable {lightChandelierBack} 0
set posx(lightChandelierBack) 0.814453
set posy(lightChandelierBack) 0.000000
set width(lightChandelierBack) 0.250000
set height(lightChandelierBack) 0.333333
set scene(lightChandelierBack) enchantedHallway
set camera(lightChandelierBack) stairsLow
proc new {object args} {
variable $object
variable posx
variable posy
variable width
variable height
variable scene
variable camera
if {[set $object] != 0} return
set optstring {play foreground nopan {depth 0}}
array set v [cmdline::getopt $args $optstring]
set layer "-background"
if $v(foreground?) {
set layer "-foreground"
}
set pan "-pan"
if $v(nopan?) {
set pan ""
}
set depth $v(depth)
set $object [wq'widget::new "movies/[MOVIE_QUALITY]/$scene($object)/$camera($object)/$object" \
-pos $posx($object) $posy($object) -dsize $width($object) $height($object) \
-depth $depth $layer $pan]
eval "oz'widget::property [set $object] $args"
if $v(play?) {
oz'event {
ozSet mvDisableMouse 0
if [ozIsEnable mouse] {
wizDisableMouse
ozSet mvDisableMouse 1
}
}
wq'widget::waitfor [set $object] -animate
wq'widget::delete [set $object]
oz'event {
if [ozGet mvDisableMouse] {
wizEnableMouse
}
}
set $object 0
}
}
proc newSt {object args} {
variable $object
variable posx
variable posy
variable width
variable height
variable scene
variable camera
if {[set $object] != 0} return
set optstring {play foreground {depth 1}}
array set v [cmdline::getopt $args $optstring]
set layer "-background"
if $v(foreground) {
set layer "-foreground"
}
set depth $v(depth)
set $object [wq'widget::new "states/[MODE]/$scene($object)/$camera($object)/$object" \
-pos $posx($object) $posy($object) -dsize $width($object) $height($object) \
-depth $depth $layer -pan]
eval "oz'widget::property [set $object] $args"
}
}