自食其力的土豆菜是好吃的土豆
This commit is contained in:
code/systems
translate/text
@ -19,15 +19,23 @@ local function assets(extras, ____bindingPattern0)
|
||||
{
|
||||
["f$fives"] = __TS__New(STFont, "fonts/fives.csv", "fonts/fives.png"),
|
||||
["f$helloplayer"] = __TS__New(STFont, "fonts/helloplayer.csv", "fonts/helloplayer.png"),
|
||||
["ic$player$down"] = __TS__New(STFrames, "images/characters/player/down.json", "images/characters/player/down.png"),
|
||||
["ic$player$down_plush"] = __TS__New(STFrames, "images/characters/player/down_plush.json", "images/characters/player/down_plush.png"),
|
||||
["ic$player$left"] = __TS__New(STFrames, "images/characters/player/left.json", "images/characters/player/left.png"),
|
||||
["ic$player$left_plush"] = __TS__New(STFrames, "images/characters/player/left_plush.json", "images/characters/player/left_plush.png"),
|
||||
["ic$player$right"] = __TS__New(STFrames, "images/characters/player/right.json", "images/characters/player/right.png"),
|
||||
["ic$player$right_plush"] = __TS__New(STFrames, "images/characters/player/right_plush.json", "images/characters/player/right_plush.png"),
|
||||
["ic$player$sleep"] = __TS__New(STFrames, "images/characters/player/sleep.json", "images/characters/player/sleep.png"),
|
||||
["ic$player$down"] = __TS__New(STFrames, "images/characters/player/down.json",
|
||||
"images/characters/player/down.png"),
|
||||
["ic$player$down_plush"] = __TS__New(STFrames, "images/characters/player/down_plush.json",
|
||||
"images/characters/player/down_plush.png"),
|
||||
["ic$player$left"] = __TS__New(STFrames, "images/characters/player/left.json",
|
||||
"images/characters/player/left.png"),
|
||||
["ic$player$left_plush"] = __TS__New(STFrames, "images/characters/player/left_plush.json",
|
||||
"images/characters/player/left_plush.png"),
|
||||
["ic$player$right"] = __TS__New(STFrames, "images/characters/player/right.json",
|
||||
"images/characters/player/right.png"),
|
||||
["ic$player$right_plush"] = __TS__New(STFrames, "images/characters/player/right_plush.json",
|
||||
"images/characters/player/right_plush.png"),
|
||||
["ic$player$sleep"] = __TS__New(STFrames, "images/characters/player/sleep.json",
|
||||
"images/characters/player/sleep.png"),
|
||||
["ic$player$up"] = __TS__New(STFrames, "images/characters/player/up.json", "images/characters/player/up.png"),
|
||||
["ic$player$up_plush"] = __TS__New(STFrames, "images/characters/player/up_plush.json", "images/characters/player/up_plush.png"),
|
||||
["ic$player$up_plush"] = __TS__New(STFrames, "images/characters/player/up_plush.json",
|
||||
"images/characters/player/up_plush.png"),
|
||||
["ic$player$what_side"] = __TS__New(STImage, "images/characters/player/what_side.png"),
|
||||
["ic$player$what_side_plush"] = __TS__New(STImage, "images/characters/player/what_side_plush.png"),
|
||||
["ie$confused"] = __TS__New(STImage, "images/expressions/confused.png"),
|
||||
@ -47,7 +55,8 @@ local function assets(extras, ____bindingPattern0)
|
||||
["if$player$confused"] = __TS__New(STImage, "images/faces/player/confused.png"),
|
||||
["if$player$confused_large"] = __TS__New(STImage, "images/faces/player/confused_large.png"),
|
||||
["if$player$cry"] = __TS__New(STFrames, "images/faces/player/cry.json", "images/faces/player/cry.png"),
|
||||
["if$player$cry_large"] = __TS__New(STFrames, "images/faces/player/cry_large.json", "images/faces/player/cry_large.png"),
|
||||
["if$player$cry_large"] = __TS__New(STFrames, "images/faces/player/cry_large.json",
|
||||
"images/faces/player/cry_large.png"),
|
||||
["if$player$default"] = __TS__New(STImage, "images/faces/player/default.png"),
|
||||
["if$player$default_large"] = __TS__New(STImage, "images/faces/player/default_large.png"),
|
||||
["if$player$determined"] = __TS__New(STImage, "images/faces/player/determined.png"),
|
||||
@ -56,8 +65,10 @@ local function assets(extras, ____bindingPattern0)
|
||||
["if$player$determined2_large"] = __TS__New(STImage, "images/faces/player/determined2_large.png"),
|
||||
["if$player$happi"] = __TS__New(STImage, "images/faces/player/happi.png"),
|
||||
["if$player$happi_large"] = __TS__New(STImage, "images/faces/player/happi_large.png"),
|
||||
["if$player$happi2"] = __TS__New(STFrames, "images/faces/player/happi2.json", "images/faces/player/happi2.png"),
|
||||
["if$player$happi2_large"] = __TS__New(STFrames, "images/faces/player/happi2_large.json", "images/faces/player/happi2_large.png"),
|
||||
["if$player$happi2"] = __TS__New(STFrames, "images/faces/player/happi2.json",
|
||||
"images/faces/player/happi2.png"),
|
||||
["if$player$happi2_large"] = __TS__New(STFrames, "images/faces/player/happi2_large.json",
|
||||
"images/faces/player/happi2_large.png"),
|
||||
["if$player$sad"] = __TS__New(STImage, "images/faces/player/sad.png"),
|
||||
["if$player$sad_large"] = __TS__New(STImage, "images/faces/player/sad_large.png"),
|
||||
["if$player$sad2"] = __TS__New(STImage, "images/faces/player/sad2.png"),
|
||||
@ -94,30 +105,51 @@ local function assets(extras, ____bindingPattern0)
|
||||
["if$player$xeyes_large"] = __TS__New(STImage, "images/faces/player/xeyes_large.png"),
|
||||
["ig$rhythm$backdrop"] = __TS__New(STImage, "images/games/rhythm/backdrop.png"),
|
||||
["ig$rhythm$circle"] = __TS__New(STImage, "images/games/rhythm/circle.png"),
|
||||
["ig$rhythm$emotion_anxiety"] = __TS__New(STFrames, "images/games/rhythm/emotion_anxiety.json", "images/games/rhythm/emotion_anxiety.png"),
|
||||
["ig$rhythm$emotion_depression"] = __TS__New(STFrames, "images/games/rhythm/emotion_depression.json", "images/games/rhythm/emotion_depression.png"),
|
||||
["ig$rhythm$emotion_anxiety"] = __TS__New(STFrames, "images/games/rhythm/emotion_anxiety.json",
|
||||
"images/games/rhythm/emotion_anxiety.png"),
|
||||
["ig$rhythm$emotion_depression"] = __TS__New(STFrames, "images/games/rhythm/emotion_depression.json",
|
||||
"images/games/rhythm/emotion_depression.png"),
|
||||
["ig$rhythm$expand_middle"] = __TS__New(STImage, "images/games/rhythm/expand_middle.png"),
|
||||
["ig$rhythm$expand_side"] = __TS__New(STImage, "images/games/rhythm/expand_side.png"),
|
||||
["ig$rhythm$flare"] = __TS__New(STFrames, "images/games/rhythm/flare.json", "images/games/rhythm/flare.png"),
|
||||
["ig$rhythm$flare_diag"] = __TS__New(STFrames, "images/games/rhythm/flare_diag.json", "images/games/rhythm/flare_diag.png"),
|
||||
["ig$rhythm$joystick_cardinal1"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal1.json", "images/games/rhythm/joystick_cardinal1.png"),
|
||||
["ig$rhythm$joystick_cardinal2"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal2.json", "images/games/rhythm/joystick_cardinal2.png"),
|
||||
["ig$rhythm$joystick_cardinal3"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal3.json", "images/games/rhythm/joystick_cardinal3.png"),
|
||||
["ig$rhythm$joystick_cardinal4"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal4.json", "images/games/rhythm/joystick_cardinal4.png"),
|
||||
["ig$rhythm$joystick_cardinal5"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal5.json", "images/games/rhythm/joystick_cardinal5.png"),
|
||||
["ig$rhythm$joystick_cardinal6"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal6.json", "images/games/rhythm/joystick_cardinal6.png"),
|
||||
["ig$rhythm$joystick_diagonal1"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal1.json", "images/games/rhythm/joystick_diagonal1.png"),
|
||||
["ig$rhythm$joystick_diagonal2"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal2.json", "images/games/rhythm/joystick_diagonal2.png"),
|
||||
["ig$rhythm$joystick_diagonal3"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal3.json", "images/games/rhythm/joystick_diagonal3.png"),
|
||||
["ig$rhythm$joystick_diagonal4"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal4.json", "images/games/rhythm/joystick_diagonal4.png"),
|
||||
["ig$rhythm$joystick_diagonal5"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal5.json", "images/games/rhythm/joystick_diagonal5.png"),
|
||||
["ig$rhythm$joystick_diagonal6"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal6.json", "images/games/rhythm/joystick_diagonal6.png"),
|
||||
["ig$rhythm$joystick_neutral1"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral1.json", "images/games/rhythm/joystick_neutral1.png"),
|
||||
["ig$rhythm$joystick_neutral2"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral2.json", "images/games/rhythm/joystick_neutral2.png"),
|
||||
["ig$rhythm$joystick_neutral3"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral3.json", "images/games/rhythm/joystick_neutral3.png"),
|
||||
["ig$rhythm$joystick_neutral4"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral4.json", "images/games/rhythm/joystick_neutral4.png"),
|
||||
["ig$rhythm$joystick_neutral5"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral5.json", "images/games/rhythm/joystick_neutral5.png"),
|
||||
["ig$rhythm$joystick_neutral6"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral6.json", "images/games/rhythm/joystick_neutral6.png"),
|
||||
["ig$rhythm$flare_diag"] = __TS__New(STFrames, "images/games/rhythm/flare_diag.json",
|
||||
"images/games/rhythm/flare_diag.png"),
|
||||
["ig$rhythm$joystick_cardinal1"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal1.json",
|
||||
"images/games/rhythm/joystick_cardinal1.png"),
|
||||
["ig$rhythm$joystick_cardinal2"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal2.json",
|
||||
"images/games/rhythm/joystick_cardinal2.png"),
|
||||
["ig$rhythm$joystick_cardinal3"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal3.json",
|
||||
"images/games/rhythm/joystick_cardinal3.png"),
|
||||
["ig$rhythm$joystick_cardinal4"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal4.json",
|
||||
"images/games/rhythm/joystick_cardinal4.png"),
|
||||
["ig$rhythm$joystick_cardinal5"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal5.json",
|
||||
"images/games/rhythm/joystick_cardinal5.png"),
|
||||
["ig$rhythm$joystick_cardinal6"] = __TS__New(STFrames, "images/games/rhythm/joystick_cardinal6.json",
|
||||
"images/games/rhythm/joystick_cardinal6.png"),
|
||||
["ig$rhythm$joystick_diagonal1"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal1.json",
|
||||
"images/games/rhythm/joystick_diagonal1.png"),
|
||||
["ig$rhythm$joystick_diagonal2"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal2.json",
|
||||
"images/games/rhythm/joystick_diagonal2.png"),
|
||||
["ig$rhythm$joystick_diagonal3"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal3.json",
|
||||
"images/games/rhythm/joystick_diagonal3.png"),
|
||||
["ig$rhythm$joystick_diagonal4"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal4.json",
|
||||
"images/games/rhythm/joystick_diagonal4.png"),
|
||||
["ig$rhythm$joystick_diagonal5"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal5.json",
|
||||
"images/games/rhythm/joystick_diagonal5.png"),
|
||||
["ig$rhythm$joystick_diagonal6"] = __TS__New(STFrames, "images/games/rhythm/joystick_diagonal6.json",
|
||||
"images/games/rhythm/joystick_diagonal6.png"),
|
||||
["ig$rhythm$joystick_neutral1"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral1.json",
|
||||
"images/games/rhythm/joystick_neutral1.png"),
|
||||
["ig$rhythm$joystick_neutral2"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral2.json",
|
||||
"images/games/rhythm/joystick_neutral2.png"),
|
||||
["ig$rhythm$joystick_neutral3"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral3.json",
|
||||
"images/games/rhythm/joystick_neutral3.png"),
|
||||
["ig$rhythm$joystick_neutral4"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral4.json",
|
||||
"images/games/rhythm/joystick_neutral4.png"),
|
||||
["ig$rhythm$joystick_neutral5"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral5.json",
|
||||
"images/games/rhythm/joystick_neutral5.png"),
|
||||
["ig$rhythm$joystick_neutral6"] = __TS__New(STFrames, "images/games/rhythm/joystick_neutral6.json",
|
||||
"images/games/rhythm/joystick_neutral6.png"),
|
||||
["im$ch_dropdown"] = __TS__New(STImage, "images/menu/ch_dropdown.png"),
|
||||
["im$dl_box"] = __TS__New(STImage, "images/menu/dl_box.png"),
|
||||
["im$dl_circle"] = __TS__New(STImage, "images/menu/dl_circle.png"),
|
||||
@ -132,6 +164,10 @@ local function assets(extras, ____bindingPattern0)
|
||||
["im$volume"] = __TS__New(STFrames, "images/menu/volume.json", "images/menu/volume.png"),
|
||||
["m$mainmenu"] = __TS__New(STDaemon, "music/mainmenu.ogg", { mixer = music, gain = 0.6, loop = true }),
|
||||
["s$awaken"] = __TS__New(STDaemon, "sounds/awaken.ogg", { mixer = sound, gain = 0.6 }),
|
||||
["im$menu_item"] = __TS__New(STImage, "images/menu/menu_item.png"), -- 四個貼圖的予加載
|
||||
["im$menu_ponder"] = __TS__New(STImage, "images/menu/menu_ponder.png"),
|
||||
["im$menu_options"] = __TS__New(STImage, "images/menu/menu_options.png"),
|
||||
["im$menu_save"] = __TS__New(STImage, "images/menu/menu_save.png"),
|
||||
["s$beep_error"] = __TS__New(
|
||||
STDaemon,
|
||||
__TS__New(STAudio, "sounds/beep_error.ogg"),
|
||||
|
@ -247,26 +247,28 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
||||
player_menu.children[1]:attach(unpack(ST:populate(
|
||||
4,
|
||||
function(i)
|
||||
return __TS__New(STText,
|
||||
local imageKeys = {
|
||||
"im$menu_item",
|
||||
"im$menu_ponder",
|
||||
"im$menu_options",
|
||||
"im$menu_save"
|
||||
}
|
||||
return __TS__New(
|
||||
STSprite,
|
||||
{
|
||||
font = assets["f$fives"],
|
||||
anchor = { x = 0.5 },
|
||||
position = { y = i * 7 },
|
||||
content = ({ text.menu1, text.menu2, text.menu3, text.menu4 })
|
||||
[i + 1]
|
||||
}):addTicker(function(self)
|
||||
if atlas.target == "menu" and atlas:selection() == ({ "item", "ponder", "options", "save" })[i + 1] then
|
||||
self.color.red = 255
|
||||
self.color.green = 255
|
||||
self.color.blue = 255
|
||||
elseif i == 0 and #inventory == 0 then
|
||||
self.color.red = 63
|
||||
self.color.green = 63
|
||||
self.color.blue = 63
|
||||
image = assets[imageKeys[i + 1]],
|
||||
anchor = { x = 0.5, y = 0.5 },
|
||||
position = { y = i * 7.5 + 2 }, -- 此處是「y = i * 間距 ± 基準座標偏移值」
|
||||
scale = { x = 0.6, y = 0.6 } -- x軸和y軸的縮放
|
||||
}
|
||||
):addTicker(function(self)
|
||||
-- 選中狀態處理(通過更改透明度)
|
||||
if atlas.target == "menu" and atlas:selection() == ({ "item", "ponder", "options", "save" })[i + 1] then -- 選中
|
||||
self.alpha.value = 1
|
||||
elseif i == 0 and #inventory == 0 then -- item不可用時
|
||||
self.alpha.value = 0.25
|
||||
else
|
||||
self.color.red = 127
|
||||
self.color.green = 127
|
||||
self.color.blue = 127
|
||||
self.alpha.value = 0.5 -- 未選中
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
@ -14,7 +14,8 @@ local world = ____global.world
|
||||
local ____launcher = require("code.screens.launcher")
|
||||
local mouseButtonMenu = ____launcher.mouseButtonMenu
|
||||
local function textGen()
|
||||
return {header = "(Are you sure?)\n{color=0xff3f3f}(Unsaved data in this\nworld will be lost.)", button1 = "STAY", button2 = "EXIT"}
|
||||
return { header = "(Are you sure?)\n{color=0xff3f3f}(Unsaved data in this\nworld will be lost.)", button1 = "STAY", button2 =
|
||||
"EXIT" }
|
||||
end
|
||||
local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0)
|
||||
local screen
|
||||
@ -68,7 +69,8 @@ local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0)
|
||||
screen:attach(wrapper)
|
||||
local ____self_2 = mouseButtonMenu(
|
||||
wrapper,
|
||||
{main = ST:populate(
|
||||
{
|
||||
main = ST:populate(
|
||||
3,
|
||||
function(i)
|
||||
local content = ({ text.header, text.button1, text.button2 })[i + 1]
|
||||
@ -114,7 +116,8 @@ local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0)
|
||||
}
|
||||
)
|
||||
end
|
||||
)},
|
||||
)
|
||||
},
|
||||
"main"
|
||||
)
|
||||
____self_2["then"](
|
||||
|
@ -247,26 +247,28 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
||||
player_menu.children[1]:attach(unpack(ST:populate(
|
||||
4,
|
||||
function(i)
|
||||
return __TS__New(STText,
|
||||
local imageKeys = {
|
||||
"im$menu_item",
|
||||
"im$menu_ponder",
|
||||
"im$menu_options",
|
||||
"im$menu_save"
|
||||
}
|
||||
return __TS__New(
|
||||
STSprite,
|
||||
{
|
||||
font = assets["f$fives"],
|
||||
anchor = { x = 0.5 },
|
||||
position = { y = i * 7 },
|
||||
content = ({ text.menu1, text.menu2, text.menu3, text.menu4 })
|
||||
[i + 1]
|
||||
}):addTicker(function(self)
|
||||
if atlas.target == "menu" and atlas:selection() == ({ "item", "ponder", "options", "save" })[i + 1] then
|
||||
self.color.red = 255
|
||||
self.color.green = 255
|
||||
self.color.blue = 255
|
||||
elseif i == 0 and #inventory == 0 then
|
||||
self.color.red = 63
|
||||
self.color.green = 63
|
||||
self.color.blue = 63
|
||||
image = assets[imageKeys[i + 1]],
|
||||
anchor = { x = 0.5, y = 0.5 },
|
||||
position = { y = i * 7.5 + 2 }, -- 此處是「y = i * 間距 ± 基準座標偏移值」
|
||||
scale = { x = 0.6, y = 0.6 } -- x軸和y軸的縮放
|
||||
}
|
||||
):addTicker(function(self)
|
||||
-- 選中狀態處理(通過更改透明度)
|
||||
if atlas.target == "menu" and atlas:selection() == ({ "item", "ponder", "options", "save" })[i + 1] then -- 選中
|
||||
self.alpha.value = 1
|
||||
elseif i == 0 and #inventory == 0 then -- item不可用時
|
||||
self.alpha.value = 0.25
|
||||
else
|
||||
self.color.red = 127
|
||||
self.color.green = 127
|
||||
self.color.blue = 127
|
||||
self.alpha.value = 0.5 -- 未選中
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
@ -247,26 +247,28 @@ local function atlas(assets, batch, ____debug, game, ____bindingPattern0, ____bi
|
||||
player_menu.children[1]:attach(unpack(ST:populate(
|
||||
4,
|
||||
function(i)
|
||||
return __TS__New(STText,
|
||||
local imageKeys = {
|
||||
"im$menu_item",
|
||||
"im$menu_ponder",
|
||||
"im$menu_options",
|
||||
"im$menu_save"
|
||||
}
|
||||
return __TS__New(
|
||||
STSprite,
|
||||
{
|
||||
font = assets["f$fives"],
|
||||
anchor = { x = 0.5 },
|
||||
position = { y = i * 7 },
|
||||
content = ({ text.menu1, text.menu2, text.menu3, text.menu4 })
|
||||
[i + 1]
|
||||
}):addTicker(function(self)
|
||||
if atlas.target == "menu" and atlas:selection() == ({ "item", "ponder", "options", "save" })[i + 1] then
|
||||
self.color.red = 255
|
||||
self.color.green = 255
|
||||
self.color.blue = 255
|
||||
elseif i == 0 and #inventory == 0 then
|
||||
self.color.red = 63
|
||||
self.color.green = 63
|
||||
self.color.blue = 63
|
||||
image = assets[imageKeys[i + 1]],
|
||||
anchor = { x = 0.5, y = 0.5 },
|
||||
position = { y = i * 7.5 + 2 }, -- 此處是「y = i * 間距 ± 基準座標偏移值」
|
||||
scale = { x = 0.6, y = 0.6 } -- x軸和y軸的縮放
|
||||
}
|
||||
):addTicker(function(self)
|
||||
-- 選中狀態處理(通過更改透明度)
|
||||
if atlas.target == "menu" and atlas:selection() == ({ "item", "ponder", "options", "save" })[i + 1] then -- 選中
|
||||
self.alpha.value = 1
|
||||
elseif i == 0 and #inventory == 0 then -- item不可用時
|
||||
self.alpha.value = 0.25
|
||||
else
|
||||
self.color.red = 127
|
||||
self.color.green = 127
|
||||
self.color.blue = 127
|
||||
self.alpha.value = 0.5 -- 未選中
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
Reference in New Issue
Block a user