diff --git a/src/css/states/main_menu.scss b/src/css/states/main_menu.scss index 005ee7af..acd4a3c9 100644 --- a/src/css/states/main_menu.scss +++ b/src/css/states/main_menu.scss @@ -88,7 +88,9 @@ @include S(grid-column-gap, 10px); display: grid; - grid-template-columns: 1fr 1fr; + &[data-columns="1"] { + grid-template-columns: 1fr; + } .standaloneBanner { background: rgb(255, 75, 84); @@ -230,7 +232,7 @@ @include S(padding, 20px); @include S(border-radius, $globalBorderRadius); > .dlcLogo { - @include S(width, 200px); + @include S(width, 190px); } > button { @@ -240,6 +242,21 @@ background-color: #333; color: #fff; } + + &.notOwned { + p { + @include PlainText; + color: #333; + @include S(margin-top, 10px); + @include S(width, 190px); + } + > button { + box-sizing: border-box; + @include S(margin-top, 10px); + @include S(width, 190px); + @include S(padding, 10px, 20px); + } + } } .mainContainer { diff --git a/src/js/changelog.js b/src/js/changelog.js index 3a28acde..408f47f8 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -1,11 +1,11 @@ export const CHANGELOG = [ { version: "1.4.0", - date: "UNRELEASED", + date: "27.05.2021", entries: [ - "Added puzzle mode", "Belts in blueprints should now always paste correctly", "You can now clear belts by selecting them, and then pressing 'B'", + "Preparations for the puzzle dlc!", ], }, { diff --git a/src/js/states/main_menu.js b/src/js/states/main_menu.js index 25d93d7a..58052eb5 100644 --- a/src/js/states/main_menu.js +++ b/src/js/states/main_menu.js @@ -69,7 +69,9 @@ export class MainMenuState extends GameState { v${G_BUILD_VERSION} - Puzzle DLC! -
+
${showDemoBadges ? `
${bannerHtml}
` : ""}
@@ -85,15 +87,31 @@ export class MainMenuState extends GameState { ${ // @TODO: Only display if DLC is owned, otherwise show ad for store page - showDemoBadges - ? "" - : ` + G_IS_STANDALONE && false + ? `
` + : "" + } + + ${ + // @TODO: Only display if DLC is owned, otherwise show ad for store page + G_IS_STANDALONE && true + ? ` +
+ +

${T.mainMenu.puzzleDlcText}

+ +
` + : "" }
diff --git a/translations/base-en.yaml b/translations/base-en.yaml index a1ba0ce5..3aef4beb 100644 --- a/translations/base-en.yaml +++ b/translations/base-en.yaml @@ -120,6 +120,11 @@ mainMenu: puzzleMode: Puzzle Mode back: Back + puzzleDlcText: >- + Do you enjoy compacting and optimizing factories? + Get the Puzzle DLC now on Steam for even more fun! + puzzleDlcWishlist: Wishlist now! + puzzleMenu: play: Play edit: Edit diff --git a/translations/base-es.yaml b/translations/base-es.yaml index eb62fdd8..0c3198b9 100644 --- a/translations/base-es.yaml +++ b/translations/base-es.yaml @@ -17,16 +17,16 @@ steamPage: what_others_say: Lo que otras personas dicen sobre shapez.io nothernlion_comment: Este juego es estupendo - Estoy teniendo un tiempo maravolloso jugano, y el tiempo ha pasado volando. - notch_comment: Miercoles. Verdaderamente debería dormir, pero creo que acabo de descubrir + notch_comment: Miercoles. Verdaderamente debería dormir, pero creo que acabo de descubrir como hacer un ordenador en shapez.io steam_review_comment: Este juego ha robado mi vida y no la quiero de vuelta. - Muy relajante juego de fábrica que no me dejará hacer mis lineas más + Muy relajante juego de fábrica que no me dejará hacer mis lineas más eficientes. - + global: loading: Cargando error: Error - thousandsDivider: , + thousandsDivider: "," decimalSeparator: "." suffix: thousands: k diff --git a/translations/base-zh-TW.yaml b/translations/base-zh-TW.yaml index b94caa73..db3f85ea 100644 --- a/translations/base-zh-TW.yaml +++ b/translations/base-zh-TW.yaml @@ -125,13 +125,15 @@ dialogs: desc: 你還沒有解鎖藍圖功能!完成更多的關卡來解鎖藍圖。 keybindingsIntroduction: title: 實用按鍵 - desc: "這個遊戲有很多能幫助搭建工廠的使用按鍵。 以下是其中的一些,記得在按鍵設定中查看其他的!

+ desc: + "這個遊戲有很多能幫助搭建工廠的使用按鍵。 以下是其中的一些,記得在按鍵設定中查看其他的!

CTRL + 拖曳:選擇區域以複製或刪除。
SHIFT: 按住以放置多個。
ALT: 反向放置輸送帶。
" createMarker: title: 建立標記 - desc: 給地圖標記取一個名字。你可以在名字中加入一個簡短代碼以加入圖形。(你可以在這裡 + desc: + 給地圖標記取一個名字。你可以在名字中加入一個簡短代碼以加入圖形。(你可以在這裡 建立簡短代碼。) titleEdit: 修改標記 markerDemoLimit: @@ -243,15 +245,18 @@ ingame: 1_1_extractor: 在圓形礦脈上放一個開採機來採集圓形! 1_2_conveyor: 用輸送帶將你的開採機連接到基地上!

提示:用你的游標按下並拖曳輸送帶! - 1_3_expand: 這不是一個放置型遊戲!建造更多的開採機和輸送帶來更快地完成目標。

+ 1_3_expand: + 這不是一個放置型遊戲!建造更多的開採機和輸送帶來更快地完成目標。

提示:按住SHIFT鍵來放置多個開採機,用R鍵旋轉它們。 2_1_place_cutter: "現在放置一個切割機並利用它把圓圈切成兩半!

PS: 不論切割機的方向,它都會把圖形垂直地切成兩半。" 2_2_place_trash: 切割機可能會堵塞並停止運作

垃圾桶把「目前」不需要的部分處理掉。 - 2_3_more_cutters: "做得好! 現在,再放2個切割機來加速這個緩慢的生產線!

PS: + 2_3_more_cutters: + "做得好! 現在,再放2個切割機來加速這個緩慢的生產線!

PS: 使用0-9快捷鍵可以更快選取建築 !" - 3_1_rectangles: "現在來開採一些方形吧!蓋4座開採機,把形狀收集到基地。

PS: + 3_1_rectangles: + "現在來開採一些方形吧!蓋4座開採機,把形狀收集到基地。

PS: 選擇輸送帶,按住SHIFT並拖曳滑鼠可以計畫輸送帶位置!" 21_1_place_quad_painter: 放置一個切割機(四分)並取得一些 圓形白色紅色! @@ -445,11 +450,13 @@ buildings: transistor: default: name: 電晶體 - description: 如果基極(側面)的輸入訊號為「真」,則把射極(底部)輸入的真假值複製到集極(頂部)的輸出。 + description: + 如果基極(側面)的輸入訊號為「真」,則把射極(底部)輸入的真假值複製到集極(頂部)的輸出。 (「真」值代表:形狀正確、顏色正確或布林值為1) mirrored: name: 電晶體 - description: 如果基極(側面)的輸入訊號為「真」,則把射極(底部)輸入的真假值複製到集極(頂部)的輸出。 + description: + 如果基極(側面)的輸入訊號為「真」,則把射極(底部)輸入的真假值複製到集極(頂部)的輸出。 (「真」值代表:形狀正確、顏色正確或布林值為1) filter: default: @@ -580,11 +587,13 @@ storyRewards: 布林值(1或0)。 reward_logic_gates: title: 邏輯閘 - desc: 邏輯閘已解鎖。 你可以覺得無所謂,但其實邏輯閘其實超酷的!

有了這些邏輯閘,你可以運算 AND, + desc: + 邏輯閘已解鎖。 你可以覺得無所謂,但其實邏輯閘其實超酷的!

有了這些邏輯閘,你可以運算 AND, OR, XOR 與 NOT。

錦上添花,我再送你電晶體! reward_virtual_processing: title: 虛擬操作 - desc: 虛擬操作

已解鎖。很多新建築有虛擬版,你可以模擬切割機、旋轉機、推疊機還有更多電路層上的建築。 + desc: + 虛擬操作

已解鎖。很多新建築有虛擬版,你可以模擬切割機、旋轉機、推疊機還有更多電路層上的建築。 繼續遊玩的你現在有三個選項:

- 蓋一個自動生成任何基地要求圖形的自動機(推薦!)。

- 利用電路層蓋一些很酷建築

- 繼續用原本的方式破關。

不論你的選擇是什麼,祝你玩得開心! @@ -811,7 +820,7 @@ keybindings: copyWireValue: 電路:複製數值於游標底下 rotateToUp: "轉動: 向上" rotateToDown: "轉動: 向下" - rotateToRight: 轉動: 向右" + rotateToRight: "轉動: 向右" rotateToLeft: "轉動: 向左" about: title: 關於遊戲