@@ -13,11 +13,6 @@ YarnDemoScene = {}
1313class (' YarnDemoScene' ).extends (NobleScene )
1414local scene = YarnDemoScene
1515local crankTick = 0
16- local dialogueInputHandler = {
17- AButtonDown = function ()
18- story :Continue ()
19- end
20- }
2116local createDialogueInputHandler = function (onA )
2217 return {
2318 AButtonDown = onA
@@ -74,6 +69,7 @@ function scene:init()
7469 self :setValues ()
7570 local thisStory = self
7671 self .menu = Noble .Menu .new (false , Noble .Text .ALIGN_LEFT , false , Graphics .kColorWhite , 8 , 6 , 2 )
72+
7773 story :SetNode (" Intro" )
7874 story :AddDialoguePresenter ({
7975 RunLine = function (_ , lineInfo )
@@ -133,10 +129,9 @@ function scene:update()
133129
134130 story :ProgressCoroutine ()
135131 if self .menu :isActive () then
136- Graphics .setColor (self .color1 )
137- Graphics .setDitherPattern (0.2 , Graphics .image .kDitherTypeScreen )
138- Graphics .fillRoundRect (self .menuX , self .menuY , self .menu .width + 25 , 40 * # self .menu .itemNames , 15 )
139- self .menu :draw (self .menuX + 15 , self .menuY + 8 )
132+ self .menu :activate ()
133+ Graphics .fillRoundRect (self .menuX , self .menuY , self .menu .width + 25 , 31.5 * # self .menu .itemNames , 15 )
134+ self .menu :draw (self .menuX + 15 , self .menuY + 8 )
140135 end
141136 Graphics .setColor (Graphics .kColorBlack )
142137end
@@ -151,7 +146,6 @@ function scene:start()
151146end
152147
153148function scene :drawBackground ()
154- if self .bg then
155- self .bg :draw (0 , 0 )
156- end
149+ scene .super .drawBackground (self )
150+ self .background :draw (0 , 0 )
157151end
0 commit comments