[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 7d4356c92c 445/472: Implement pacmacs-score-awesom
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 7d4356c92c 445/472: Implement pacmacs-score-awesome (#203) |
Date: |
Thu, 6 Jan 2022 21:59:47 -0500 (EST) |
branch: elpa/pacmacs
commit 7d4356c92ca8de1aca42940debc0e182becb3531
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Implement pacmacs-score-awesome (#203)
---
pacmacs.el | 16 ++++++++++------
signs/score.txt | 6 ------
signs/scores.txt | 6 ++++++
3 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/pacmacs.el b/pacmacs.el
index 85e8dd1cdd..17276ceb9b 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -743,17 +743,21 @@
(defun pacmacs-score-awesome ()
(interactive)
- (switch-to-buffer-other-window pacmacs--score-buffer-name)
+ (switch-to-buffer pacmacs--score-buffer-name)
- (pacmacs-game-over-mode)
+ (text-mode)
+ (read-only-mode 1)
- (pacmacs--load-map-sign "score")
- (pacmacs--render-state pacmacs--score-buffer-name)
+ (pacmacs--load-map-sign "scores")
(with-current-buffer pacmacs--score-buffer-name
(let ((inhibit-read-only t))
- (-> (pacmacs--read-score-table)
- (pacmacs--render-score-table)))))
+ (erase-buffer)
+ (pacmacs--render-board)
+ (let ((inhibit-read-only t))
+ (-> (pacmacs--read-score-table)
+ (pacmacs--render-score-table))))
+ (goto-char (point-min))))
(defun pacmacs--wall-tile-at (row column)
(pacmacs--create-wall-tile
diff --git a/signs/score.txt b/signs/score.txt
deleted file mode 100644
index 1f1acff0db..0000000000
--- a/signs/score.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-
- ### ### ### ### ###
- # # # # # # #
- ### # # # #### ###
- # # # # # # #
- ### ### ### # # ###
diff --git a/signs/scores.txt b/signs/scores.txt
new file mode 100644
index 0000000000..34867a145b
--- /dev/null
+++ b/signs/scores.txt
@@ -0,0 +1,6 @@
+
+ ### ### ### ### ### ###
+ # # # # # # # #
+ ### # # # #### ### ###
+ # # # # # # # #
+ ### ### ### # # ### ###
- [nongnu] elpa/pacmacs 54be118510 413/472: Remove pacmacs-game-over-mode (#134), (continued)
- [nongnu] elpa/pacmacs 54be118510 413/472: Remove pacmacs-game-over-mode (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 429294ea94 416/472: Fix render-score-table UT (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d6260cd30c 417/472: Refactor nickname submission action (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 71ffcfb208 419/472: Add UT for align-score-record-nickname func (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 861aa9543e 422/472: Add UT for make-wall-cell func, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2e881d27e0 424/472: Remove commented chunk of code (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1e4cbd5f4f 426/472: Sort score table on reading and writing (#194), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0d62e0346a 427/472: Remove redundant score sorting (#194), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9b2c497eb9 431/472: Handle error during level list loading (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2cf174ca7e 434/472: Create signs folder with game over sign (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 7d4356c92c 445/472: Implement pacmacs-score-awesome (#203),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 0f4eb7aebf 452/472: Decouple score page render from sign render (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a12795e835 455/472: Introduce pacmacs-scores-mode (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs cdae42dba5 461/472: Replace too specific function with composition, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 864fe2b02e 465/472: Bump the copyright year for all the files, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs edadbe5e53 469/472: Bump version to 0.1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs db16fba9cd 470/472: Add missing license statement, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 98ce700143 023/472: Hide cursor in the game's buffer. Close #12, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3070cf0e6a 063/472: Merge branch 'refactor-image-resource-51'. Close #51, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1a678dfee7 110/472: Refactor out pacmacs--object-at-p (#74), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5492ed0a87 118/472: Refactor pacmacs-render-state (#74), ELPA Syncer, 2022/01/06