[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 314809f2a7 443/472: Merge branch 'master' into fea
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 314809f2a7 443/472: Merge branch 'master' into feature/awesome-score-sign-203 |
Date: |
Thu, 6 Jan 2022 21:59:47 -0500 (EST) |
branch: elpa/pacmacs
commit 314809f2a7e66d9cef0d3abdddc8b9fcd26d7c72
Merge: 21a99294ad 9fd3009e5a
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Merge branch 'master' into feature/awesome-score-sign-203
Need #204 and #206 in feature/awesome-score-sign-203
---
pacmacs.el | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/pacmacs.el b/pacmacs.el
index 536dae30c7..3a39786d6b 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -95,7 +95,7 @@
:type '(radio (const :tag "Default path")
(directory :tag "Custom path")))
-(define-derived-mode pacmacs-mode special-mode "pacmacs-mode"
+(define-derived-mode pacmacs-mode special-mode "Pacmacs"
(define-key pacmacs-mode-map (kbd "<up>") 'pacmacs-up)
(define-key pacmacs-mode-map (kbd "<down>") 'pacmacs-down)
(define-key pacmacs-mode-map (kbd "<left>") 'pacmacs-left)
@@ -106,6 +106,11 @@
(setq cursor-type nil)
(setq truncate-lines t))
+(define-derived-mode pacmacs-game-over-mode special-mode "Pacmacs Game Over"
+ (define-key pacmacs-game-over-mode-map (kbd "q") 'pacmacs-quit)
+ (setq cursor-type nil)
+ (setq truncate-lines t))
+
;;;###autoload
(defun pacmacs-start ()
(interactive)
@@ -589,7 +594,8 @@
(let ((nickname (widget-value widget)))
(pacmacs--add-entry-to-score-table nickname score)
(widget-value-set widget (pacmacs--align-score-record-nickname nickname))
- (widget-delete widget))))
+ (widget-delete widget)
+ (pacmacs-game-over-mode))))
(defun pacmacs--switch-to-game-over-state ()
(pacmacs--load-map-sign "game-over")
@@ -598,6 +604,7 @@
(pacmacs--render-state)
(fundamental-mode)
+ (setq truncate-lines t)
(read-only-mode 0)
(with-current-buffer pacmacs-buffer-name
@@ -623,11 +630,12 @@
(plist-bind ((height :height))
pacmacs--object-board
(goto-char (point-min))
- (forward-line (+ height pacmacs--score-table-render-offset
new-score-position))))
+ (forward-line (+ height pacmacs--score-table-render-offset
new-score-position)))
+ (use-local-map widget-keymap)
+ (widget-setup))
(pacmacs--render-score-table score-table)
- (goto-char (point-min)))
- (use-local-map widget-keymap)
- (widget-setup))))
+ (goto-char (point-min))
+ (pacmacs-game-over-mode)))))
(defun pacmacs--switch-to-play-state ()
(setq pacmacs-game-state 'play)
- [nongnu] elpa/pacmacs 25e1fc9f85 369/472: Interactive function to clean wall cache (#138), (continued)
- [nongnu] elpa/pacmacs 25e1fc9f85 369/472: Interactive function to clean wall cache (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b8ad3a5421 370/472: Fix game over sign (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 78be23ea40 392/472: Remove make-terrifed-ghost function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1d52833fef 406/472: Add render-score-record function (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs bd030753f0 411/472: Reset pacmacs-score to 0 (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 542e38a612 429/472: Fix README for sprites folder, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 7f980e59a4 435/472: Load game-over sign from signs folder (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b7caafa647 436/472: Merge pull request #200 from codingteam/customize-level-folder-191, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs f174ccb540 438/472: Enable truncate-lines for Game Over page (#201), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs bc62e40d25 444/472: Make rendering more reusable (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 314809f2a7 443/472: Merge branch 'master' into feature/awesome-score-sign-203,
ELPA Syncer <=
- [nongnu] elpa/pacmacs 5f12be8d33 450/472: Move render-object-board to pacmacs-render module, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 929b367fa2 453/472: Make render-score-table more dumb (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 548155de50 456/472: Dash the mode labels (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5e0bcba1ee 468/472: Merge pull request #224 from basil-conto/blc/dash, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b68e557f36 064/472: Refactor pacman-load-anim function. Close #53, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3a3ead9ac1 083/472: Support dash. Close #65, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 6365c3db7b 086/472: Remove ghost-state instead of player-state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3cbd9508d8 089/472: Merge branch 'coverage-broken-68'. Close #68, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2331e2074c 262/472: Automate Pill sprites generating (#26), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d980f5dbe2 454/472: Introduce with-render-target macro (#203), ELPA Syncer, 2022/01/06