home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 April
/
Gamestar_83_2006-04_dvd.iso
/
Dema
/
keepsake_demo_en.exe
/
res
/
interface
/
common
/
itf.inv.tcl
< prev
next >
Wrap
Text File
|
2005-11-07
|
44KB
|
863 lines
class itf'inventory {
proc itf'inventory {this stage} oz'widget {itf'inventory} {
set base "interface/[MODE]/inv"
if {$stage == 1} {
set ($this,bg1) [new oz'sprite "$base/inv.bg1"]
set ($this,bg2) [new oz'sprite "$base/inv.bg2"]
} else {
set ($this,bg1) [new oz'sprite "$base/inv.bg3"]
set ($this,bg2) [new oz'sprite "$base/inv.bg4"]
}
set ($this,yewlockLeavesBlue) [new oz'button "$base/inv.yewlockLeavesBlue"]
set ($this,yewlockLeavesRed) [new oz'button "$base/inv.yewlockLeavesRed"]
set ($this,yewlockLeavesWhite) [new oz'button "$base/inv.yewlockLeavesWhite"]
set ($this,yewlockLeavesYellow) [new oz'button "$base/inv.yewlockLeavesYellow"]
set ($this,headenFlower) [new oz'button "$base/inv.headenFlower"]
set ($this,nigilisSeed) [new oz'button "$base/inv.nigilisSeed"]
set ($this,nigilisFruit) [new oz'button "$base/inv.nigilisFruit"]
set ($this,pendant) [new oz'button "$base/inv.pendant"]
set ($this,wineBottle) [new oz'button "$base/inv.wineBottle"]
set ($this,brokenPendant) [new oz'button "$base/inv.brokenPendant"]
set ($this,caretakerTools) [new oz'button "$base/inv.caretakerTools"]
set ($this,figurine) [new oz'button "$base/inv.figurine"]
set ($this,figurineS) [new oz'button "$base/inv.figurineS"]
set ($this,circlet) [new oz'button "$base/inv.circlet"]
set ($this,magicalStaff) [new oz'button "$base/inv.magicalStaff"]
set ($this,keyRing) [new oz'button "$base/inv.keyRing"]
set ($this,caretakerKey) [new oz'button "$base/inv.caretakerKey"]
set ($this,caretakerKeyS) [new oz'button "$base/inv.caretakerKeyS"]
set ($this,wineCaveClue) [new oz'button "$base/inv.wineCaveClue"]
set ($this,caretakerNote) [new oz'button "$base/inv.caretakerNote"]
set ($this,noteBook) [new oz'button "$base/inv.noteBook"]
set ($this,doll) [new oz'button "$base/inv.doll"]
set ($this,dollS) [new oz'button "$base/inv.dollS"]
set ($this,yewlockLeavesPage) [new oz'button "$base/inv.yewlockLeavesPage"]
set ($this,nigilisPage) [new oz'button "$base/inv.nigilisPage"]
set ($this,headenFlowerPage) [new oz'button "$base/inv.headenFlowerPage"]
set ($this,headenFlowerPageS) [new oz'button "$base/inv.headenFlowerPageS"]
set ($this,aleunderRoot) [new oz'button "$base/inv.aleunderRoot"]
set ($this,catHair) [new oz'button "$base/inv.catHair"]
set ($this,celeste) [new oz'button "$base/inv.celeste"]
set ($this,dragonClaw) [new oz'button "$base/inv.dragonClaw"]
set ($this,eternalFlame) [new oz'button "$base/inv.eternalFlame"]
set ($this,libraryBallAqua) [new oz'button "$base/inv.libraryBallAqua"]
set ($this,libraryBallBrown) [new oz'button "$base/inv.libraryBallBrown"]
set ($this,libraryBallEntrance) [new oz'button "$base/inv.libraryBallEntrance"]
set ($this,libraryBallPink) [new oz'button "$base/inv.libraryBallPink"]
set ($this,oracleMoss) [new oz'button "$base/inv.oracleMoss"]
set ($this,pearl) [new oz'button "$base/inv.pearl"]
set ($this,soulDust) [new oz'button "$base/inv.soulDust"]
set ($this,starFragment) [new oz'button "$base/inv.starFragment"]
set ($this,wolfDrool) [new oz'button "$base/inv.wolfDrool"]
set ($this,handWrittenNotes) [new oz'button "$base/inv.handWrittenNotes"]
set ($this,orbNotes) [new oz'button "$base/inv.orbNotes"]
set ($this,spellbook) [new oz'button "$base/inv.spellbook"]
set ($this,tapestryArtRoom) [new oz'button "$base/inv.tapestryArtRoom"]
set ($this,tapestryForge) [new oz'button "$base/inv.tapestryForge"]
set ($this,tapestryObservatory) [new oz'button "$base/inv.tapestryObservatory"]
set ($this,tapestrySolarium) [new oz'button "$base/inv.tapestrySolarium"]
oz'widget::bind $($this,bg1) enter itf'inventory::enter $this
oz'widget::bind $($this,bg1) leave itf'inventory::leave $this
oz'widget::bind $($this,bg2) enter itf'inventory::enter $this
oz'widget::bind $($this,bg2) leave itf'inventory::leave $this
oz'widget::property $($this,bg1) -isize [oz'widget::width $($this,bg1)] [oz'widget::height $($this,bg1)]
oz'widget::property $($this,bg2) -isize [oz'widget::width $($this,bg2)] [oz'widget::height $($this,bg2)]
oz'widget::property $($this,bg1) -pos 0 0.166666 -alpha 0
oz'widget::property $($this,bg2) -pos 0 0.166666 -alpha 0
oz'button::property $($this,yewlockLeavesBlue) \
-pos [xpos 0] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "yewlockLeavesBlue"
oz'button::property $($this,yewlockLeavesRed) \
-pos [xpos 0] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "yewlockLeavesRed"
oz'button::property $($this,yewlockLeavesWhite) \
-pos [xpos 0] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "yewlockLeavesWhite"
oz'button::property $($this,yewlockLeavesYellow) \
-pos [xpos 0] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "yewlockLeavesYellow"
oz'button::property $($this,headenFlower) \
-pos [xpos 1] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "headenFlower"
oz'button::property $($this,nigilisSeed) \
-pos [xpos 2] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "nigilisSeed"
oz'button::property $($this,nigilisFruit) \
-pos [xpos 2] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "nigilisFruit"
oz'button::property $($this,pendant) \
-pos [xpos 0] [ypos 1] -alpha 0 -click itf'inventory::showdesc1 $this "pendant"
oz'button::property $($this,wineBottle) \
-pos [xpos 0] [ypos 1] -alpha 0 -click itf'inventory::showdesc1 $this "wineBottle"
oz'button::property $($this,brokenPendant) \
-pos [xpos 0] [ypos 1] -alpha 0 -click itf'inventory::showdesc1 $this "brokenPendant"
oz'button::property $($this,caretakerTools) \
-pos [xpos 1] [ypos 1] -alpha 0 -click itf'inventory::showdesc1 $this "caretakerTools"
oz'button::property $($this,figurine) \
-pos [xpos 0] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "figurine"
oz'button::property $($this,figurineS) \
-pos [xpos 0] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "figurine"
oz'button::property $($this,circlet) \
-pos [xpos 0] [ypos 2] -alpha 0 -click itf'inventory::showdesc1 $this "circlet"
oz'button::property $($this,magicalStaff) \
-pos [xpos 1] [ypos 2] -alpha 0 -click itf'inventory::showdesc1 $this "magicalStaff"
oz'button::property $($this,keyRing) \
-pos [xpos 0] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "keyRing"
oz'button::property $($this,caretakerKey) \
-pos [xpos 1] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "caretakerKey"
oz'button::property $($this,caretakerKeyS) \
-pos [xpos 1] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "caretakerKey"
oz'button::property $($this,wineCaveClue) \
-pos [xpos 0] [ypos 0] -alpha 0 -click itf'inventory::showdesc2 $this "wineCaveClue"
oz'button::property $($this,caretakerNote) \
-pos [xpos 0] [ypos 1] -alpha 0 -click itf'inventory::showdesc2 $this "caretakerNote"
oz'button::property $($this,noteBook) \
-pos [xpos 0] [ypos 2] -alpha 0 -click itf'inventory::showdesc2 $this "noteBook"
oz'button::property $($this,doll) \
-pos [xpos 0] [ypos 3] -alpha 0 -click itf'inventory::showdesc2 $this "doll"
oz'button::property $($this,dollS) \
-pos [xpos 0] [ypos 3] -alpha 0 -click itf'inventory::showdesc2 $this "doll"
oz'button::property $($this,yewlockLeavesPage) \
-pos [xpos 1] [ypos 0] -alpha 0 -click itf'inventory::showdesc2 $this "yewlockLeavesPage"
oz'button::property $($this,nigilisPage) \
-pos [xpos 1] [ypos 1] -alpha 0 -click itf'inventory::showdesc2 $this "nigilisPage"
oz'button::property $($this,headenFlowerPage) \
-pos [xpos 1] [ypos 2] -alpha 0 -click itf'inventory::showdesc2 $this "headenFlowerPage"
oz'button::property $($this,headenFlowerPageS) \
-pos [xpos 1] [ypos 2] -alpha 0 -click itf'inventory::showdesc2 $this "headenFlowerPage"
oz'button::property $($this,dragonClaw) \
-pos [xpos 3] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "dragonClaw"
oz'button::property $($this,wolfDrool) \
-pos [xpos 4] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "wolfDrool"
oz'button::property $($this,catHair) \
-pos [xpos 5] [ypos 0] -alpha 0 -click itf'inventory::showdesc1 $this "catHair"
oz'button::property $($this,celeste) \
-pos [xpos 3] [ypos 1] -alpha 0 -click itf'inventory::showdesc1 $this "celeste"
oz'button::property $($this,aleunderRoot) \
-pos [xpos 4] [ypos 1] -alpha 0 -click itf'inventory::showdesc1 $this "aleunderRoot"
oz'button::property $($this,oracleMoss) \
-pos [xpos 5] [ypos 1] -alpha 0 -click itf'inventory::showdesc1 $this "oracleMoss"
oz'button::property $($this,libraryBallEntrance) \
-pos [xpos 2] [ypos 2] -alpha 0 -click itf'inventory::showdesc1 $this "libraryBallEntrance"
oz'button::property $($this,libraryBallPink) \
-pos [xpos 5] [ypos 2] -alpha 0 -click itf'inventory::showdesc1 $this "libraryBallPink"
oz'button::property $($this,libraryBallAqua) \
-pos [xpos 4] [ypos 2] -alpha 0 -click itf'inventory::showdesc1 $this "libraryBallAqua"
oz'button::property $($this,libraryBallBrown) \
-pos [xpos 3] [ypos 2] -alpha 0 -click itf'inventory::showdesc1 $this "libraryBallBrown"
oz'button::property $($this,soulDust) \
-pos [xpos 2] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "soulDust"
oz'button::property $($this,pearl) \
-pos [xpos 3] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "pearl"
oz'button::property $($this,eternalFlame) \
-pos [xpos 4] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "eternalFlame"
oz'button::property $($this,starFragment) \
-pos [xpos 5] [ypos 3] -alpha 0 -click itf'inventory::showdesc1 $this "starFragment"
oz'button::property $($this,handWrittenNotes) \
-pos [xpos 3] [ypos 1] -alpha 0 -click itf'inventory::showdesc2 $this "handWrittenNotes"
oz'button::property $($this,orbNotes) \
-pos [xpos 3] [ypos 0] -alpha 0 -click itf'inventory::showdesc2 $this "orbNotes"
oz'button::property $($this,spellbook) \
-pos [xpos 1] [ypos 3] -alpha 0 -click itf'inventory::showdesc2 $this "spellbook"
oz'button::property $($this,tapestryArtRoom) \
-pos [xpos 2] [ypos 2] -alpha 0 -click itf'inventory::showdesc2 $this "tapestryArtRoom"
oz'button::property $($this,tapestryForge) \
-pos [xpos 2] [ypos 0] -alpha 0 -click itf'inventory::showdesc2 $this "tapestryForge"
oz'button::property $($this,tapestryObservatory) \
-pos [xpos 2] [ypos 1] -alpha 0 -click itf'inventory::showdesc2 $this "tapestryObservatory"
oz'button::property $($this,tapestrySolarium) \
-pos [xpos 2] [ypos 3] -alpha 0 -click itf'inventory::showdesc2 $this "tapestrySolarium"
oz'widget::child [FOREGROUNDWIDGET] $($this,bg1) -0.1
oz'widget::child [FOREGROUNDWIDGET] $($this,bg2) -0.1
oz'widget::child [FOREGROUNDWIDGET] $($this,yewlockLeavesBlue) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,yewlockLeavesRed) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,yewlockLeavesWhite) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,yewlockLeavesYellow) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,headenFlower) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,nigilisSeed) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,nigilisFruit) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,pendant) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,wineBottle) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,brokenPendant) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,caretakerTools) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,figurine) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,figurineS) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,circlet) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,magicalStaff) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,keyRing) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,caretakerKey) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,caretakerKeyS) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,wineCaveClue) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,caretakerNote) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,noteBook) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,doll) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,dollS) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,yewlockLeavesPage) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,nigilisPage) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,headenFlowerPage) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,headenFlowerPageS) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,aleunderRoot) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,catHair) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,celeste) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,dragonClaw) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,eternalFlame) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,libraryBallAqua) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,libraryBallBrown) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,libraryBallEntrance) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,libraryBallPink) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,oracleMoss) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,pearl) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,soulDust) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,starFragment) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,wolfDrool) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,handWrittenNotes) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,orbNotes) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,spellbook) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,tapestryArtRoom) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,tapestryForge) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,tapestryObservatory) -0.75
oz'widget::child [FOREGROUNDWIDGET] $($this,tapestrySolarium) -0.75
}
proc ~itf'inventory {this} {
delete $($this,bg1)
delete $($this,bg2)
delete $($this,yewlockLeavesBlue)
delete $($this,yewlockLeavesRed)
delete $($this,yewlockLeavesWhite)
delete $($this,yewlockLeavesYellow)
delete $($this,headenFlower)
delete $($this,nigilisSeed)
delete $($this,nigilisFruit)
delete $($this,pendant)
delete $($this,wineBottle)
delete $($this,brokenPendant)
delete $($this,caretakerTools)
delete $($this,figurine)
delete $($this,figurineS)
delete $($this,circlet)
delete $($this,magicalStaff)
delete $($this,keyRing)
delete $($this,caretakerKey)
delete $($this,caretakerKeyS)
delete $($this,wineCaveClue)
delete $($this,caretakerNote)
delete $($this,noteBook)
delete $($this,doll)
delete $($this,dollS)
delete $($this,yewlockLeavesPage)
delete $($this,nigilisPage)
delete $($this,headenFlowerPage)
delete $($this,headenFlowerPageS)
delete $($this,aleunderRoot)
delete $($this,catHair)
delete $($this,celeste)
delete $($this,dragonClaw)
delete $($this,eternalFlame)
delete $($this,libraryBallAqua)
delete $($this,libraryBallBrown)
delete $($this,libraryBallEntrance)
delete $($this,libraryBallPink)
delete $($this,libraryBallAqua)
delete $($this,oracleMoss)
delete $($this,pearl)
delete $($this,soulDust)
delete $($this,starFragment)
delete $($this,wolfDrool)
delete $($this,handWrittenNotes)
delete $($this,orbNotes)
delete $($this,spellbook)
delete $($this,tapestryArtRoom)
delete $($this,tapestryForge)
delete $($this,tapestryObservatory)
delete $($this,tapestrySolarium)
}
proc load2stage {this} {
set base "interface/[MODE]/inv"
delete $($this,bg1)
delete $($this,bg2)
set ($this,bg1) [new oz'sprite "$base/inv.bg3"]
set ($this,bg2) [new oz'sprite "$base/inv.bg4"]
oz'widget::bind $($this,bg1) enter itf'inventory::enter $this
oz'widget::bind $($this,bg1) leave itf'inventory::leave $this
oz'widget::bind $($this,bg2) enter itf'inventory::enter $this
oz'widget::bind $($this,bg2) leave itf'inventory::leave $this
oz'widget::property $($this,bg1) -isize [oz'widget::width $($this,bg1)] [oz'widget::height $($this,bg1)]
oz'widget::property $($this,bg2) -isize [oz'widget::width $($this,bg2)] [oz'widget::height $($this,bg2)]
oz'widget::property $($this,bg1) -pos 0 0.166666 -alpha 0
oz'widget::property $($this,bg2) -pos 0 0.166666 -alpha 0
oz'widget::child [FOREGROUNDWIDGET] $($this,bg1) -0.1
oz'widget::child [FOREGROUNDWIDGET] $($this,bg2) -0.1
}
proc show {this n} {
oz'widget::fadeto $($this,bg$n) 1
setThreadID 4
oz'event {wizDisableMouse}
oz'event {oz'delay 0.25}
oz'event {wizEnableMouse}
if {$n == 1} {
if {[ozGet itemBlueYewlock] == "pickedUp"} {
oz'event {
oz'widget::x $($this,yewlockLeavesBlue) [itf'inventory::xpos 0]
oz'widget::y $($this,yewlockLeavesBlue) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,yewlockLeavesBlue) 1
}
}
if {[ozGet itemRedYewlock] == "pickedUp"} {
oz'event {
oz'widget::x $($this,yewlockLeavesRed) [itf'inventory::xpos 0]
oz'widget::y $($this,yewlockLeavesRed) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,yewlockLeavesRed) 1
}
}
if {[ozGet itemWhiteYewlock] == "pickedUp"} {
oz'event {
oz'widget::x $($this,yewlockLeavesWhite) [itf'inventory::xpos 0]
oz'widget::y $($this,yewlockLeavesWhite) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,yewlockLeavesWhite) 1
}
}
if {[ozGet itemYellowYewlock] == "pickedUp"} {
oz'event {
oz'widget::x $($this,yewlockLeavesYellow) [itf'inventory::xpos 0]
oz'widget::y $($this,yewlockLeavesYellow) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,yewlockLeavesYellow) 1
}
}
if {[ozGet itemHeadenFlower] == "pickedUp"} {
oz'event {
oz'widget::x $($this,headenFlower) [itf'inventory::xpos 1]
oz'widget::y $($this,headenFlower) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,headenFlower) 1
}
}
if {[ozGet itemNigilisBean] == "pickedUp"} {
oz'event {
oz'widget::x $($this,nigilisSeed) [itf'inventory::xpos 2]
oz'widget::y $($this,nigilisSeed) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,nigilisSeed) 1
}
}
if {[ozGet puzzleNigilisTree] == "complete" && [ozGet "itemNigilisFruit"] != "pickedUp"} {
oz'event {
oz'widget::x $($this,nigilisFruit) [itf'inventory::xpos 2]
oz'widget::y $($this,nigilisFruit) [itf'inventory::ypos 0]
oz'button::disable $($this,nigilisFruit)
oz'widget::fadeto $($this,nigilisFruit) 1
}
}
if {[ozGet puzzleNigilisTree] == "complete" && [ozGet "itemNigilisFruit"] == "pickedUp"} {
oz'event {
oz'widget::x $($this,nigilisFruit) [itf'inventory::xpos 2]
oz'widget::y $($this,nigilisFruit) [itf'inventory::ypos 0]
oz'button::enable $($this,nigilisFruit)
oz'widget::fadeto $($this,nigilisFruit) 1
}
}
if {[ozGet puzzleRepairedPendant] == "complete" || [ozGet puzzleBrokePendant] != "complete"} {
oz'event {
oz'widget::x $($this,pendant) [itf'inventory::xpos 0]
oz'widget::y $($this,pendant) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,pendant) 1
}
}
if {[ozGet puzzleBrokePendant] == "complete" && [ozGet puzzleRepairedPendant] != "complete"} {
oz'event {
oz'widget::x $($this,brokenPendant) [itf'inventory::xpos 0]
oz'widget::y $($this,brokenPendant) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,brokenPendant) 1
}
}
if {[ozGet pendantTools] == "pickedUp"} {
oz'event {
oz'widget::x $($this,caretakerTools) [itf'inventory::xpos 1]
oz'widget::y $($this,caretakerTools) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,caretakerTools) 1
}
}
if {[ozGet minotaurMazeFigurines] == "pickedUp"} {
if {[ozGet puzzleMidgard] != "complete"} {
oz'event {
oz'widget::x $($this,figurine) [itf'inventory::xpos 2]
oz'widget::y $($this,figurine) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,figurine) 1
}
} else {
oz'event {
oz'widget::x $($this,figurineS) [itf'inventory::xpos 2]
oz'widget::y $($this,figurineS) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,figurineS) 1
}
}
}
if {[ozGet itemCirclet] == "pickedUp"} {
oz'event {
oz'widget::x $($this,circlet) [itf'inventory::xpos 0]
oz'widget::y $($this,circlet) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,circlet) 1
}
}
if {[ozGet itemStaff] == "pickedUp"} {
oz'event {
oz'widget::x $($this,magicalStaff) [itf'inventory::xpos 1]
oz'widget::y $($this,magicalStaff) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,magicalStaff) 1
}
}
if {[ozGet itemKeyRing] == "pickedUp"} {
oz'event {
oz'widget::x $($this,keyRing) [itf'inventory::xpos 0]
oz'widget::y $($this,keyRing) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,keyRing) 1
}
}
if {[ozGet itemBrassKey] == "pickedUp"} {
if {[ozGet puzzleMidgard] != "complete"} {
oz'event {
oz'widget::x $($this,caretakerKey) [itf'inventory::xpos 1]
oz'widget::y $($this,caretakerKey) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,caretakerKey) 1
}
} else {
oz'event {
oz'widget::x $($this,caretakerKeyS) [itf'inventory::xpos 1]
oz'widget::y $($this,caretakerKeyS) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,caretakerKeyS) 1
}
}
}
if {[ozGet itemDragonClaw] == "pickedUp"} {
oz'event {
oz'widget::x $($this,dragonClaw) [itf'inventory::xpos 3]
oz'widget::y $($this,dragonClaw) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,dragonClaw) 1
}
}
if {[ozGet itemWolfDribble] == "pickedUp"} {
oz'event {
oz'widget::x $($this,wolfDrool) [itf'inventory::xpos 4]
oz'widget::y $($this,wolfDrool) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,wolfDrool) 1
}
}
if {[ozGet itemCatHair] == "pickedUp"} {
oz'event {
oz'widget::x $($this,catHair) [itf'inventory::xpos 5]
oz'widget::y $($this,catHair) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,catHair) 1
}
}
if {[ozGet itemCelestePortrait] == "pickedUp"} {
oz'event {
oz'widget::x $($this,celeste) [itf'inventory::xpos 3]
oz'widget::y $($this,celeste) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,celeste) 1
}
}
if {[ozGet itemAleunderRoot] == "pickedUp"} {
oz'event {
oz'widget::x $($this,aleunderRoot) [itf'inventory::xpos 4]
oz'widget::y $($this,aleunderRoot) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,aleunderRoot) 1
}
}
if {[ozGet itemDragonvaleMoss] == "pickedUp"} {
oz'event {
oz'widget::x $($this,oracleMoss) [itf'inventory::xpos 5]
oz'widget::y $($this,oracleMoss) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,oracleMoss) 1
}
}
if {[ozGet itemSoulDust] == "pickedUp"} {
oz'event {
oz'widget::x $($this,soulDust) [itf'inventory::xpos 2]
oz'widget::y $($this,soulDust) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,soulDust) 1
}
}
if {[ozGet itemHugePearl] == "pickedUp"} {
oz'event {
oz'widget::x $($this,pearl) [itf'inventory::xpos 3]
oz'widget::y $($this,pearl) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,pearl) 1
}
}
if {[ozGet itemEternalFlame] == "pickedUp"} {
oz'event {
oz'widget::x $($this,eternalFlame) [itf'inventory::xpos 4]
oz'widget::y $($this,eternalFlame) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,eternalFlame) 1
}
}
if {[ozGet itemMeteorite] == "pickedUp"} {
oz'event {
oz'widget::x $($this,starFragment) [itf'inventory::xpos 5]
oz'widget::y $($this,starFragment) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,starFragment) 1
}
}
if {[ozGet artRoomBall] == "pickedUp"} {
oz'event {
oz'widget::x $($this,libraryBallAqua) [itf'inventory::xpos 2]
oz'widget::y $($this,libraryBallAqua) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,libraryBallAqua) 1
}
}
if {[ozGet observatoryBall] == "pickedUp"} {
oz'event {
oz'widget::x $($this,libraryBallPink) [itf'inventory::xpos 5]
oz'widget::y $($this,libraryBallPink) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,libraryBallPink) 1
}
}
if {[ozGet solariumBall] == "pickedUp"} {
oz'event {
oz'widget::x $($this,libraryBallEntrance) [itf'inventory::xpos 4]
oz'widget::y $($this,libraryBallEntrance) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,libraryBallEntrance) 1
}
}
if {[ozGet forgeBall] == "pickedUp"} {
oz'event {
oz'widget::x $($this,libraryBallBrown) [itf'inventory::xpos 3]
oz'widget::y $($this,libraryBallBrown) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,libraryBallBrown) 1
}
}
}
if {$n == 2} {
if {[ozGet itemWineCaveClue] == "pickedUp"} {
oz'event {
oz'widget::x $($this,wineCaveClue) [itf'inventory::xpos 0]
oz'widget::y $($this,wineCaveClue) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,wineCaveClue) 1
}
}
if {[ozGet itemCaretakerNote] == "pickedUp"} {
oz'event {
oz'widget::x $($this,caretakerNote) [itf'inventory::xpos 0]
oz'widget::y $($this,caretakerNote) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,caretakerNote) 1
}
}
if {[ozGet itemNoteBook] == "pickedUp"} {
oz'event {
oz'widget::x $($this,noteBook) [itf'inventory::xpos 0]
oz'widget::y $($this,noteBook) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,noteBook) 1
}
}
if {[ozGet itemDoll] == "pickedUp"} {
if {[ozGet puzzleMidgard] != "complete"} {
oz'event {
oz'widget::x $($this,doll) [itf'inventory::xpos 0]
oz'widget::y $($this,doll) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,doll) 1
}
} else {
oz'event {
oz'widget::x $($this,dollS) [itf'inventory::xpos 0]
oz'widget::y $($this,dollS) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,dollS) 1
}
}
}
if {[ozGet itemPagesYewlockLeaves] == "pickedUp"} {
oz'event {
oz'widget::x $($this,yewlockLeavesPage) [itf'inventory::xpos 1]
oz'widget::y $($this,yewlockLeavesPage) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,yewlockLeavesPage) 1
}
}
if {[ozGet itemPagesNigilis] == "pickedUp"} {
oz'event {
oz'widget::x $($this,nigilisPage) [itf'inventory::xpos 1]
oz'widget::y $($this,nigilisPage) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,nigilisPage) 1
}
}
if {[ozGet itemPagesHeadenFlower] == "pickedUp"} {
if {[ozGet puzzleMidgard] == "pickedUp"} {
oz'event {
oz'widget::x $($this,headenFlowerPage) [itf'inventory::xpos 1]
oz'widget::y $($this,headenFlowerPage) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,headenFlowerPage) 1
}
} else {
oz'event {
oz'widget::x $($this,headenFlowerPageS) [itf'inventory::xpos 1]
oz'widget::y $($this,headenFlowerPageS) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,headenFlowerPageS) 1
}
}
}
if {[ozGet itemNathanielNotes] == "pickedUp"} {
oz'event {
oz'widget::x $($this,handWrittenNotes) [itf'inventory::xpos 3]
oz'widget::y $($this,handWrittenNotes) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,handWrittenNotes) 1
}
}
if {[ozGet itemOrbNotes] == "pickedUp"} {
oz'event {
oz'widget::x $($this,orbNotes) [itf'inventory::xpos 3]
oz'widget::y $($this,orbNotes) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,orbNotes) 1
}
}
if {[ozGet itemSpellbook] == "pickedUp"} {
oz'event {
oz'widget::x $($this,spellbook) [itf'inventory::xpos 1]
oz'widget::y $($this,spellbook) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,spellbook) 1
}
}
if {[ozGet itemArtRoomClue] == "pickedUp"} {
oz'event {
oz'widget::x $($this,tapestryArtRoom) [itf'inventory::xpos 2]
oz'widget::y $($this,tapestryArtRoom) [itf'inventory::ypos 2]
oz'widget::fadeto $($this,tapestryArtRoom) 1
}
}
if {[ozGet itemForgeClue] == "pickedUp"} {
oz'event {
oz'widget::x $($this,tapestryForge) [itf'inventory::xpos 2]
oz'widget::y $($this,tapestryForge) [itf'inventory::ypos 1]
oz'widget::fadeto $($this,tapestryForge) 1
}
}
if {[ozGet itemObservatoryClue] == "pickedUp"} {
oz'event {
oz'widget::x $($this,tapestryObservatory) [itf'inventory::xpos 2]
oz'widget::y $($this,tapestryObservatory) [itf'inventory::ypos 0]
oz'widget::fadeto $($this,tapestryObservatory) 1
}
}
if {[ozGet itemSolariumClue] == "pickedUp"} {
oz'event {
oz'widget::x $($this,tapestrySolarium) [itf'inventory::xpos 2]
oz'widget::y $($this,tapestrySolarium) [itf'inventory::ypos 3]
oz'widget::fadeto $($this,tapestrySolarium) 1
}
}
}
setThreadID 0
}
proc hide {this} {
oz'widget::fadeto $($this,bg1) 0
oz'widget::fadeto $($this,bg2) 0
oz'widget::fadeto $($this,yewlockLeavesBlue) 0
oz'widget::fadeto $($this,yewlockLeavesRed) 0
oz'widget::fadeto $($this,yewlockLeavesWhite) 0
oz'widget::fadeto $($this,yewlockLeavesYellow) 0
oz'widget::fadeto $($this,headenFlower) 0
oz'widget::fadeto $($this,nigilisSeed) 0
oz'widget::fadeto $($this,nigilisFruit) 0
oz'widget::fadeto $($this,pendant) 0
oz'widget::fadeto $($this,wineBottle) 0
oz'widget::fadeto $($this,brokenPendant) 0
oz'widget::fadeto $($this,caretakerTools) 0
oz'widget::fadeto $($this,figurine) 0
oz'widget::fadeto $($this,figurineS) 0
oz'widget::fadeto $($this,circlet) 0
oz'widget::fadeto $($this,magicalStaff) 0
oz'widget::fadeto $($this,keyRing) 0
oz'widget::fadeto $($this,caretakerKey) 0
oz'widget::fadeto $($this,caretakerKeyS) 0
oz'widget::fadeto $($this,wineCaveClue) 0
oz'widget::fadeto $($this,caretakerNote) 0
oz'widget::fadeto $($this,noteBook) 0
oz'widget::fadeto $($this,doll) 0
oz'widget::fadeto $($this,dollS) 0
oz'widget::fadeto $($this,yewlockLeavesPage) 0
oz'widget::fadeto $($this,nigilisPage) 0
oz'widget::fadeto $($this,headenFlowerPage) 0
oz'widget::fadeto $($this,headenFlowerPageS) 0
oz'widget::fadeto $($this,aleunderRoot) 0
oz'widget::fadeto $($this,catHair) 0
oz'widget::fadeto $($this,celeste) 0
oz'widget::fadeto $($this,dragonClaw) 0
oz'widget::fadeto $($this,eternalFlame) 0
oz'widget::fadeto $($this,libraryBallAqua) 0
oz'widget::fadeto $($this,libraryBallBrown) 0
oz'widget::fadeto $($this,libraryBallEntrance) 0
oz'widget::fadeto $($this,libraryBallPink) 0
oz'widget::fadeto $($this,oracleMoss) 0
oz'widget::fadeto $($this,pearl) 0
oz'widget::fadeto $($this,soulDust) 0
oz'widget::fadeto $($this,starFragment) 0
oz'widget::fadeto $($this,wolfDrool) 0
oz'widget::fadeto $($this,handWrittenNotes) 0
oz'widget::fadeto $($this,orbNotes) 0
oz'widget::fadeto $($this,spellbook) 0
oz'widget::fadeto $($this,tapestryArtRoom) 0
oz'widget::fadeto $($this,tapestryForge) 0
oz'widget::fadeto $($this,tapestryObservatory) 0
oz'widget::fadeto $($this,tapestrySolarium) 0
}
proc showdesc1 {this obj} {
itf'sidebar::hide $::itf::sidebar
itf'desc::show $::itf::desc $obj -inv
}
proc showdesc2 {this obj} {
itf'sidebar::hide $::itf::sidebar
itf'desc::show $::itf::desc $obj -notebook
}
proc showicon {this obj x y} {
catch {
oz'widget::x $($this,$obj) $x
oz'widget::y $($this,$obj) $y
oz'widget::fadeto $($this,$obj) 1 0.25
}
}
proc hideicon {this} {
oz'widget::fadeto $($this,yewlockLeavesBlue) 0 0.25
oz'widget::fadeto $($this,yewlockLeavesRed) 0 0.25
oz'widget::fadeto $($this,yewlockLeavesWhite) 0 0.25
oz'widget::fadeto $($this,yewlockLeavesYellow) 0 0.25
oz'widget::fadeto $($this,headenFlower) 0 0.25
oz'widget::fadeto $($this,nigilisSeed) 0 0.25
oz'widget::fadeto $($this,nigilisFruit) 0 0.25
oz'widget::fadeto $($this,pendant) 0 0.25
oz'widget::fadeto $($this,wineBottle) 0 0.25
oz'widget::fadeto $($this,brokenPendant) 0 0.25
oz'widget::fadeto $($this,caretakerTools) 0 0.25
oz'widget::fadeto $($this,figurine) 0 0.25
oz'widget::fadeto $($this,figurineS) 0 0.25
oz'widget::fadeto $($this,circlet) 0 0.25
oz'widget::fadeto $($this,magicalStaff) 0 0.25
oz'widget::fadeto $($this,keyRing) 0 0.25
oz'widget::fadeto $($this,caretakerKey) 0 0.25
oz'widget::fadeto $($this,caretakerKeyS) 0 0.25
oz'widget::fadeto $($this,wineCaveClue) 0 0.25
oz'widget::fadeto $($this,caretakerNote) 0 0.25
oz'widget::fadeto $($this,noteBook) 0 0.25
oz'widget::fadeto $($this,doll) 0 0.25
oz'widget::fadeto $($this,dollS) 0 0.25
oz'widget::fadeto $($this,yewlockLeavesPage) 0 0.25
oz'widget::fadeto $($this,nigilisPage) 0 0.25
oz'widget::fadeto $($this,headenFlowerPage) 0 0.25
oz'widget::fadeto $($this,headenFlowerPageS) 0 0.25
oz'widget::fadeto $($this,aleunderRoot) 0 0.25
oz'widget::fadeto $($this,catHair) 0 0.25
oz'widget::fadeto $($this,celeste) 0 0.25
oz'widget::fadeto $($this,dragonClaw) 0 0.25
oz'widget::fadeto $($this,eternalFlame) 0 0.25
oz'widget::fadeto $($this,libraryBallAqua) 0 0.25
oz'widget::fadeto $($this,libraryBallBrown) 0 0.25
oz'widget::fadeto $($this,libraryBallEntrance) 0 0.25
oz'widget::fadeto $($this,libraryBallPink) 0 0.25
oz'widget::fadeto $($this,oracleMoss) 0 0.25
oz'widget::fadeto $($this,pearl) 0 0.25
oz'widget::fadeto $($this,soulDust) 0 0.25
oz'widget::fadeto $($this,starFragment) 0 0.25
oz'widget::fadeto $($this,wolfDrool) 0 0.25
oz'widget::fadeto $($this,handWrittenNotes) 0 0.25
oz'widget::fadeto $($this,orbNotes) 0 0.25
oz'widget::fadeto $($this,spellbook) 0 0.25
oz'widget::fadeto $($this,tapestryArtRoom) 0 0.25
oz'widget::fadeto $($this,tapestryForge) 0 0.25
oz'widget::fadeto $($this,tapestryObservatory) 0 0.25
oz'widget::fadeto $($this,tapestrySolarium) 0 0.25
}
proc xpos {x} {
return [expr 0.093750 + $x * 0.125000]
}
proc ypos {y} {
return [expr 0.166666 + $y * 0.166666]
}
proc enter {this} {
oz'mouse::cursor +100
}
proc leave {this} {
oz'mouse::cursor -100
}
}