地三鲜 vs 茄盒
This commit is contained in:
parent
47c290e249
commit
5f21819e85
@ -259,17 +259,19 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
self.color.red = 255
|
self.color.red = 255
|
||||||
self.color.green = 255
|
self.color.green = 255
|
||||||
self.color.blue = 255
|
self.color.blue = 255
|
||||||
self.z = 999
|
local parent = self.parent
|
||||||
|
if parent and parent.remove and parent.attach then
|
||||||
|
parent:remove(self)
|
||||||
|
parent:attach(self)
|
||||||
|
end
|
||||||
elseif i == 0 and #inventory == 0 then
|
elseif i == 0 and #inventory == 0 then
|
||||||
self.color.red = 63
|
self.color.red = 63
|
||||||
self.color.green = 63
|
self.color.green = 63
|
||||||
self.color.blue = 63
|
self.color.blue = 63
|
||||||
self.z = 0
|
|
||||||
else
|
else
|
||||||
self.color.red = 127
|
self.color.red = 127
|
||||||
self.color.green = 127
|
self.color.green = 127
|
||||||
self.color.blue = 127
|
self.color.blue = 127
|
||||||
self.z = i
|
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@ -407,43 +409,61 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
if ____cond60 then
|
if ____cond60 then
|
||||||
return {
|
return {
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10 }, font =
|
{
|
||||||
assets["f$helloplayer"], content = text
|
anchor = { y = 0.5 },
|
||||||
.generic_disabled }):addTicker(index == 1 and
|
position = { x = 10 },
|
||||||
(function(self)
|
font =
|
||||||
self.alpha.value = accessor["$option_music_enabled"] and
|
assets["f$helloplayer"],
|
||||||
0 or 1
|
content = text
|
||||||
end) or (function(self)
|
.generic_disabled
|
||||||
self.alpha.value = accessor["$option_sound_enabled"] and
|
}):addTicker(index == 1 and
|
||||||
0 or 1
|
(function(self)
|
||||||
end)),
|
self.alpha.value = accessor
|
||||||
|
["$option_music_enabled"] and
|
||||||
|
0 or 1
|
||||||
|
end) or (function(self)
|
||||||
|
self.alpha.value = accessor
|
||||||
|
["$option_sound_enabled"] and
|
||||||
|
0 or 1
|
||||||
|
end)),
|
||||||
__TS__New(STAnimation,
|
__TS__New(STAnimation,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10, y = -2 }, scale = { x = 2 }, frames =
|
{
|
||||||
assets["im$volume"] }):addTicker(index == 1 and
|
anchor = { y = 0.5 },
|
||||||
(function(self)
|
position = { x = 10, y = -2 },
|
||||||
self.alpha.value = accessor["$option_music_enabled"] and
|
scale = { x = 2 },
|
||||||
1 or 0
|
frames =
|
||||||
self.frame = accessor["$option_music"]
|
assets["im$volume"]
|
||||||
end) or (function(self)
|
}):addTicker(index == 1 and
|
||||||
self.alpha.value = accessor["$option_sound_enabled"] and
|
(function(self)
|
||||||
1 or 0
|
self.alpha.value = accessor
|
||||||
self.frame = accessor["$option_sound"]
|
["$option_music_enabled"] and
|
||||||
end))
|
1 or 0
|
||||||
|
self.frame = accessor["$option_music"]
|
||||||
|
end) or (function(self)
|
||||||
|
self.alpha.value = accessor
|
||||||
|
["$option_sound_enabled"] and
|
||||||
|
1 or 0
|
||||||
|
self.frame = accessor["$option_sound"]
|
||||||
|
end))
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
____cond60 = ____cond60 or
|
____cond60 = ____cond60 or
|
||||||
(____switch60 == 4 or ____switch60 == 5)
|
(____switch60 == 4 or ____switch60 == 5)
|
||||||
if ____cond60 then
|
if ____cond60 then
|
||||||
return { __TS__New(STText,
|
return { __TS__New(STText,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10 }, font =
|
{
|
||||||
assets["f$helloplayer"] }):addTicker(index == 4 and
|
anchor = { y = 0.5 },
|
||||||
(function(self)
|
position = { x = 10 },
|
||||||
self.content = ({ text.shaders1, text.shaders2, text.shaders3 })
|
font =
|
||||||
[accessor["$option_shaders"] + 1]
|
assets["f$helloplayer"]
|
||||||
end) or (function(self)
|
}):addTicker(index == 4 and
|
||||||
self.content = accessor["$option_debug"] and
|
(function(self)
|
||||||
text.generic_enabled or text.generic_disabled
|
self.content = ({ text.shaders1, text.shaders2, text.shaders3 })
|
||||||
end)) }
|
[accessor["$option_shaders"] + 1]
|
||||||
|
end) or (function(self)
|
||||||
|
self.content = accessor["$option_debug"] and
|
||||||
|
text.generic_enabled or text.generic_disabled
|
||||||
|
end)) }
|
||||||
end
|
end
|
||||||
do
|
do
|
||||||
return {}
|
return {}
|
||||||
@ -536,7 +556,7 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
justify = 0.5,
|
justify = 0.5,
|
||||||
font = assets["f$helloplayer"],
|
font = assets["f$helloplayer"],
|
||||||
content = atlas.navigators.menu.position.y == (#inventory == 0 and 0 or 1) and
|
content = atlas.navigators.menu.position.y == (#inventory == 0 and 0 or 1) and
|
||||||
text.confirm_ponder or text.confirm_debug
|
text.confirm_ponder or text.confirm_debug
|
||||||
}),
|
}),
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ position = { x = -25, y = 24 }, anchor = 0.5, font = assets["f$helloplayer"] })
|
{ position = { x = -25, y = 24 }, anchor = 0.5, font = assets["f$helloplayer"] })
|
||||||
@ -670,8 +690,13 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
children = {
|
children = {
|
||||||
__TS__New(STSprite, { image = assets["im$ov_toast"], anchor = 0.5 }),
|
__TS__New(STSprite, { image = assets["im$ov_toast"], anchor = 0.5 }),
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ position = { y = -14 }, anchor = { x = 0.5 }, justify = 0.5, font = assets
|
{
|
||||||
["f$helloplayer"] }):addTicker(function(self)
|
position = { y = -14 },
|
||||||
|
anchor = { x = 0.5 },
|
||||||
|
justify = 0.5,
|
||||||
|
font = assets
|
||||||
|
["f$helloplayer"]
|
||||||
|
}):addTicker(function(self)
|
||||||
if atlas.target == "save" then
|
if atlas.target == "save" then
|
||||||
self.content = text.save1
|
self.content = text.save1
|
||||||
else
|
else
|
||||||
|
@ -259,17 +259,19 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
self.color.red = 255
|
self.color.red = 255
|
||||||
self.color.green = 255
|
self.color.green = 255
|
||||||
self.color.blue = 255
|
self.color.blue = 255
|
||||||
self.z = 999
|
local parent = self.parent
|
||||||
|
if parent and parent.remove and parent.attach then
|
||||||
|
parent:remove(self)
|
||||||
|
parent:attach(self)
|
||||||
|
end
|
||||||
elseif i == 0 and #inventory == 0 then
|
elseif i == 0 and #inventory == 0 then
|
||||||
self.color.red = 63
|
self.color.red = 63
|
||||||
self.color.green = 63
|
self.color.green = 63
|
||||||
self.color.blue = 63
|
self.color.blue = 63
|
||||||
self.z = 0
|
|
||||||
else
|
else
|
||||||
self.color.red = 127
|
self.color.red = 127
|
||||||
self.color.green = 127
|
self.color.green = 127
|
||||||
self.color.blue = 127
|
self.color.blue = 127
|
||||||
self.z = i
|
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@ -407,43 +409,61 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
if ____cond60 then
|
if ____cond60 then
|
||||||
return {
|
return {
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10 }, font =
|
{
|
||||||
assets["f$helloplayer"], content = text
|
anchor = { y = 0.5 },
|
||||||
.generic_disabled }):addTicker(index == 1 and
|
position = { x = 10 },
|
||||||
(function(self)
|
font =
|
||||||
self.alpha.value = accessor["$option_music_enabled"] and
|
assets["f$helloplayer"],
|
||||||
0 or 1
|
content = text
|
||||||
end) or (function(self)
|
.generic_disabled
|
||||||
self.alpha.value = accessor["$option_sound_enabled"] and
|
}):addTicker(index == 1 and
|
||||||
0 or 1
|
(function(self)
|
||||||
end)),
|
self.alpha.value = accessor
|
||||||
|
["$option_music_enabled"] and
|
||||||
|
0 or 1
|
||||||
|
end) or (function(self)
|
||||||
|
self.alpha.value = accessor
|
||||||
|
["$option_sound_enabled"] and
|
||||||
|
0 or 1
|
||||||
|
end)),
|
||||||
__TS__New(STAnimation,
|
__TS__New(STAnimation,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10, y = -2 }, scale = { x = 2 }, frames =
|
{
|
||||||
assets["im$volume"] }):addTicker(index == 1 and
|
anchor = { y = 0.5 },
|
||||||
(function(self)
|
position = { x = 10, y = -2 },
|
||||||
self.alpha.value = accessor["$option_music_enabled"] and
|
scale = { x = 2 },
|
||||||
1 or 0
|
frames =
|
||||||
self.frame = accessor["$option_music"]
|
assets["im$volume"]
|
||||||
end) or (function(self)
|
}):addTicker(index == 1 and
|
||||||
self.alpha.value = accessor["$option_sound_enabled"] and
|
(function(self)
|
||||||
1 or 0
|
self.alpha.value = accessor
|
||||||
self.frame = accessor["$option_sound"]
|
["$option_music_enabled"] and
|
||||||
end))
|
1 or 0
|
||||||
|
self.frame = accessor["$option_music"]
|
||||||
|
end) or (function(self)
|
||||||
|
self.alpha.value = accessor
|
||||||
|
["$option_sound_enabled"] and
|
||||||
|
1 or 0
|
||||||
|
self.frame = accessor["$option_sound"]
|
||||||
|
end))
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
____cond60 = ____cond60 or
|
____cond60 = ____cond60 or
|
||||||
(____switch60 == 4 or ____switch60 == 5)
|
(____switch60 == 4 or ____switch60 == 5)
|
||||||
if ____cond60 then
|
if ____cond60 then
|
||||||
return { __TS__New(STText,
|
return { __TS__New(STText,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10 }, font =
|
{
|
||||||
assets["f$helloplayer"] }):addTicker(index == 4 and
|
anchor = { y = 0.5 },
|
||||||
(function(self)
|
position = { x = 10 },
|
||||||
self.content = ({ text.shaders1, text.shaders2, text.shaders3 })
|
font =
|
||||||
[accessor["$option_shaders"] + 1]
|
assets["f$helloplayer"]
|
||||||
end) or (function(self)
|
}):addTicker(index == 4 and
|
||||||
self.content = accessor["$option_debug"] and
|
(function(self)
|
||||||
text.generic_enabled or text.generic_disabled
|
self.content = ({ text.shaders1, text.shaders2, text.shaders3 })
|
||||||
end)) }
|
[accessor["$option_shaders"] + 1]
|
||||||
|
end) or (function(self)
|
||||||
|
self.content = accessor["$option_debug"] and
|
||||||
|
text.generic_enabled or text.generic_disabled
|
||||||
|
end)) }
|
||||||
end
|
end
|
||||||
do
|
do
|
||||||
return {}
|
return {}
|
||||||
@ -536,7 +556,7 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
justify = 0.5,
|
justify = 0.5,
|
||||||
font = assets["f$helloplayer"],
|
font = assets["f$helloplayer"],
|
||||||
content = atlas.navigators.menu.position.y == (#inventory == 0 and 0 or 1) and
|
content = atlas.navigators.menu.position.y == (#inventory == 0 and 0 or 1) and
|
||||||
text.confirm_ponder or text.confirm_debug
|
text.confirm_ponder or text.confirm_debug
|
||||||
}),
|
}),
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ position = { x = -25, y = 24 }, anchor = 0.5, font = assets["f$helloplayer"] })
|
{ position = { x = -25, y = 24 }, anchor = 0.5, font = assets["f$helloplayer"] })
|
||||||
@ -670,8 +690,13 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
children = {
|
children = {
|
||||||
__TS__New(STSprite, { image = assets["im$ov_toast"], anchor = 0.5 }),
|
__TS__New(STSprite, { image = assets["im$ov_toast"], anchor = 0.5 }),
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ position = { y = -14 }, anchor = { x = 0.5 }, justify = 0.5, font = assets
|
{
|
||||||
["f$helloplayer"] }):addTicker(function(self)
|
position = { y = -14 },
|
||||||
|
anchor = { x = 0.5 },
|
||||||
|
justify = 0.5,
|
||||||
|
font = assets
|
||||||
|
["f$helloplayer"]
|
||||||
|
}):addTicker(function(self)
|
||||||
if atlas.target == "save" then
|
if atlas.target == "save" then
|
||||||
self.content = text.save1
|
self.content = text.save1
|
||||||
else
|
else
|
||||||
|
@ -259,17 +259,19 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
self.color.red = 255
|
self.color.red = 255
|
||||||
self.color.green = 255
|
self.color.green = 255
|
||||||
self.color.blue = 255
|
self.color.blue = 255
|
||||||
self.z = 999
|
local parent = self.parent
|
||||||
|
if parent and parent.remove and parent.attach then
|
||||||
|
parent:remove(self)
|
||||||
|
parent:attach(self)
|
||||||
|
end
|
||||||
elseif i == 0 and #inventory == 0 then
|
elseif i == 0 and #inventory == 0 then
|
||||||
self.color.red = 63
|
self.color.red = 63
|
||||||
self.color.green = 63
|
self.color.green = 63
|
||||||
self.color.blue = 63
|
self.color.blue = 63
|
||||||
self.z = 0
|
|
||||||
else
|
else
|
||||||
self.color.red = 127
|
self.color.red = 127
|
||||||
self.color.green = 127
|
self.color.green = 127
|
||||||
self.color.blue = 127
|
self.color.blue = 127
|
||||||
self.z = i
|
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@ -407,43 +409,61 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
if ____cond60 then
|
if ____cond60 then
|
||||||
return {
|
return {
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10 }, font =
|
{
|
||||||
assets["f$helloplayer"], content = text
|
anchor = { y = 0.5 },
|
||||||
.generic_disabled }):addTicker(index == 1 and
|
position = { x = 10 },
|
||||||
(function(self)
|
font =
|
||||||
self.alpha.value = accessor["$option_music_enabled"] and
|
assets["f$helloplayer"],
|
||||||
0 or 1
|
content = text
|
||||||
end) or (function(self)
|
.generic_disabled
|
||||||
self.alpha.value = accessor["$option_sound_enabled"] and
|
}):addTicker(index == 1 and
|
||||||
0 or 1
|
(function(self)
|
||||||
end)),
|
self.alpha.value = accessor
|
||||||
|
["$option_music_enabled"] and
|
||||||
|
0 or 1
|
||||||
|
end) or (function(self)
|
||||||
|
self.alpha.value = accessor
|
||||||
|
["$option_sound_enabled"] and
|
||||||
|
0 or 1
|
||||||
|
end)),
|
||||||
__TS__New(STAnimation,
|
__TS__New(STAnimation,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10, y = -2 }, scale = { x = 2 }, frames =
|
{
|
||||||
assets["im$volume"] }):addTicker(index == 1 and
|
anchor = { y = 0.5 },
|
||||||
(function(self)
|
position = { x = 10, y = -2 },
|
||||||
self.alpha.value = accessor["$option_music_enabled"] and
|
scale = { x = 2 },
|
||||||
1 or 0
|
frames =
|
||||||
self.frame = accessor["$option_music"]
|
assets["im$volume"]
|
||||||
end) or (function(self)
|
}):addTicker(index == 1 and
|
||||||
self.alpha.value = accessor["$option_sound_enabled"] and
|
(function(self)
|
||||||
1 or 0
|
self.alpha.value = accessor
|
||||||
self.frame = accessor["$option_sound"]
|
["$option_music_enabled"] and
|
||||||
end))
|
1 or 0
|
||||||
|
self.frame = accessor["$option_music"]
|
||||||
|
end) or (function(self)
|
||||||
|
self.alpha.value = accessor
|
||||||
|
["$option_sound_enabled"] and
|
||||||
|
1 or 0
|
||||||
|
self.frame = accessor["$option_sound"]
|
||||||
|
end))
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
____cond60 = ____cond60 or
|
____cond60 = ____cond60 or
|
||||||
(____switch60 == 4 or ____switch60 == 5)
|
(____switch60 == 4 or ____switch60 == 5)
|
||||||
if ____cond60 then
|
if ____cond60 then
|
||||||
return { __TS__New(STText,
|
return { __TS__New(STText,
|
||||||
{ anchor = { y = 0.5 }, position = { x = 10 }, font =
|
{
|
||||||
assets["f$helloplayer"] }):addTicker(index == 4 and
|
anchor = { y = 0.5 },
|
||||||
(function(self)
|
position = { x = 10 },
|
||||||
self.content = ({ text.shaders1, text.shaders2, text.shaders3 })
|
font =
|
||||||
[accessor["$option_shaders"] + 1]
|
assets["f$helloplayer"]
|
||||||
end) or (function(self)
|
}):addTicker(index == 4 and
|
||||||
self.content = accessor["$option_debug"] and
|
(function(self)
|
||||||
text.generic_enabled or text.generic_disabled
|
self.content = ({ text.shaders1, text.shaders2, text.shaders3 })
|
||||||
end)) }
|
[accessor["$option_shaders"] + 1]
|
||||||
|
end) or (function(self)
|
||||||
|
self.content = accessor["$option_debug"] and
|
||||||
|
text.generic_enabled or text.generic_disabled
|
||||||
|
end)) }
|
||||||
end
|
end
|
||||||
do
|
do
|
||||||
return {}
|
return {}
|
||||||
@ -536,7 +556,7 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
justify = 0.5,
|
justify = 0.5,
|
||||||
font = assets["f$helloplayer"],
|
font = assets["f$helloplayer"],
|
||||||
content = atlas.navigators.menu.position.y == (#inventory == 0 and 0 or 1) and
|
content = atlas.navigators.menu.position.y == (#inventory == 0 and 0 or 1) and
|
||||||
text.confirm_ponder or text.confirm_debug
|
text.confirm_ponder or text.confirm_debug
|
||||||
}),
|
}),
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ position = { x = -25, y = 24 }, anchor = 0.5, font = assets["f$helloplayer"] })
|
{ position = { x = -25, y = 24 }, anchor = 0.5, font = assets["f$helloplayer"] })
|
||||||
@ -670,8 +690,13 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
|||||||
children = {
|
children = {
|
||||||
__TS__New(STSprite, { image = assets["im$ov_toast"], anchor = 0.5 }),
|
__TS__New(STSprite, { image = assets["im$ov_toast"], anchor = 0.5 }),
|
||||||
__TS__New(STText,
|
__TS__New(STText,
|
||||||
{ position = { y = -14 }, anchor = { x = 0.5 }, justify = 0.5, font = assets
|
{
|
||||||
["f$helloplayer"] }):addTicker(function(self)
|
position = { y = -14 },
|
||||||
|
anchor = { x = 0.5 },
|
||||||
|
justify = 0.5,
|
||||||
|
font = assets
|
||||||
|
["f$helloplayer"]
|
||||||
|
}):addTicker(function(self)
|
||||||
if atlas.target == "save" then
|
if atlas.target == "save" then
|
||||||
self.content = text.save1
|
self.content = text.save1
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user