Skip to content

Commit 1261016

Browse files
committed
Make the scene look a lil nicer
1 parent e8afe30 commit 1261016

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

source/pdxinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ author=Peter Appleby
33
description=This is a WIP demo of playline
44
bundleID=dev.pappleby.playlinedemo
55
version=0.0.1
6-
buildNumber=6
6+
buildNumber=7
77
imagePath=assets/launcher/
88
launchSoundPath=assets/launcher/sound.wav

source/scenes/YarnDemoScene.lua

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ YarnDemoScene = {}
1313
class('YarnDemoScene').extends(NobleScene)
1414
local scene = YarnDemoScene
1515
local crankTick = 0
16-
local dialogueInputHandler = {
17-
AButtonDown = function()
18-
story:Continue()
19-
end
20-
}
2116
local 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)
142137
end
@@ -151,7 +146,6 @@ function scene:start()
151146
end
152147

153148
function 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)
157151
end

0 commit comments

Comments
 (0)