]> git.lizzy.rs Git - nothing.git/log
nothing.git
4 years agoSplit LevelEditor event handling
rexim [Sun, 28 Jul 2019 17:26:04 +0000 (00:26 +0700)]
Split LevelEditor event handling

4 years agoLEVEL_EDITOR_EDITING -> LEVEL_EDITOR_IDLE
rexim [Sun, 28 Jul 2019 17:20:04 +0000 (00:20 +0700)]
LEVEL_EDITOR_EDITING -> LEVEL_EDITOR_IDLE

4 years agoMake player visible even when PlayerLayer is not active
rexim [Sun, 28 Jul 2019 16:52:54 +0000 (23:52 +0700)]
Make player visible even when PlayerLayer is not active

4 years agoRemove player_layer dtor
rexim [Sun, 28 Jul 2019 16:52:43 +0000 (23:52 +0700)]
Remove player_layer dtor

4 years agoGet rid of Lt from PlayerLayer
rexim [Sun, 28 Jul 2019 16:46:44 +0000 (23:46 +0700)]
Get rid of Lt from PlayerLayer

4 years agoMerge pull request #978 from bepzi/355
Alexey Kutepov [Sun, 28 Jul 2019 11:19:21 +0000 (18:19 +0700)]
Merge pull request #978 from bepzi/355

(#355) Add common Emacs keybindings to `Edit_field`

4 years agoMerge pull request #987 from tsoding/985
Alexey Kutepov [Sat, 27 Jul 2019 21:37:21 +0000 (04:37 +0700)]
Merge pull request #987 from tsoding/985

(#985) Implement POINT_LAYER_MOVE

4 years ago(#985) Implement POINT_LAYER_MOVE
rexim [Sat, 27 Jul 2019 19:35:28 +0000 (02:35 +0700)]
(#985) Implement POINT_LAYER_MOVE

4 years agoMerge pull request #986 from tsoding/855
Alexey Kutepov [Sat, 27 Jul 2019 19:21:44 +0000 (02:21 +0700)]
Merge pull request #986 from tsoding/855

(#855) Draw id edit field inside of the world for PointLayer

4 years ago(#855) Draw id edit field inside of the world for PointLayer
rexim [Sat, 27 Jul 2019 18:27:30 +0000 (01:27 +0700)]
(#855) Draw id edit field inside of the world for PointLayer

4 years agoMerge pull request #984 from tsoding/854
Alexey Kutepov [Sat, 27 Jul 2019 18:59:50 +0000 (01:59 +0700)]
Merge pull request #984 from tsoding/854

 (#854) Display ids of selected point in PointLayer

4 years agoAdd TODO(#985)
rexim [Sat, 27 Jul 2019 18:19:04 +0000 (01:19 +0700)]
Add TODO(#985)

4 years ago(#854) points -> positions
rexim [Sat, 27 Jul 2019 18:17:46 +0000 (01:17 +0700)]
(#854) points -> positions

4 years ago(#864) Don't render point id in id editing state
rexim [Sat, 27 Jul 2019 18:10:05 +0000 (01:10 +0700)]
(#864) Don't render point id in id editing state

4 years ago(#854) Display ids of selected point in PointLayer
rexim [Sat, 27 Jul 2019 18:05:10 +0000 (01:05 +0700)]
(#854) Display ids of selected point in PointLayer

4 years agoMerge pull request #979 from tsoding/963
Alexey Kutepov [Sat, 27 Jul 2019 18:11:17 +0000 (01:11 +0700)]
Merge pull request #979 from tsoding/963

(#963) Implement adding a label

4 years agoAdd TODO(#983)
rexim [Sat, 27 Jul 2019 17:51:26 +0000 (00:51 +0700)]
Add TODO(#983)

4 years agoAdd TODO(#982)
rexim [Sat, 27 Jul 2019 17:51:25 +0000 (00:51 +0700)]
Add TODO(#982)

4 years agoAdd TODO(#981)
rexim [Sat, 27 Jul 2019 17:51:24 +0000 (00:51 +0700)]
Add TODO(#981)

4 years agoAdd TODO(#980)
rexim [Sat, 27 Jul 2019 17:51:24 +0000 (00:51 +0700)]
Add TODO(#980)

4 years ago(#963) Handle changed ColorPicker properly
rexim [Sat, 27 Jul 2019 17:48:41 +0000 (00:48 +0700)]
(#963) Handle changed ColorPicker properly

4 years ago(#963) More details for a TODO
rexim [Sat, 27 Jul 2019 17:45:11 +0000 (00:45 +0700)]
(#963) More details for a TODO

4 years ago(#963) Deselect label after deleting it.
rexim [Sat, 27 Jul 2019 17:36:56 +0000 (00:36 +0700)]
(#963) Deselect label after deleting it.

4 years ago(#963) make label_layer_element_at include id into bound checking
rexim [Sat, 27 Jul 2019 17:34:05 +0000 (00:34 +0700)]
(#963) make label_layer_element_at include id into bound checking

4 years ago(#963) Implement edit cancelling for id editing
rexim [Sat, 27 Jul 2019 17:24:46 +0000 (00:24 +0700)]
(#963) Implement edit cancelling for id editing

4 years ago(#963) Implement Edit Text cancelling for LabelLayer
rexim [Sat, 27 Jul 2019 17:12:15 +0000 (00:12 +0700)]
(#963) Implement Edit Text cancelling for LabelLayer

4 years ago(#963) Implement adding labels
rexim [Sat, 27 Jul 2019 17:06:27 +0000 (00:06 +0700)]
(#963) Implement adding labels

4 years ago(#963) Don't render edit_field on non-selected labels
rexim [Sat, 27 Jul 2019 17:06:05 +0000 (00:06 +0700)]
(#963) Don't render edit_field on non-selected labels

4 years ago(#963) Implement dynarray_push_empty
rexim [Sat, 27 Jul 2019 17:05:26 +0000 (00:05 +0700)]
(#963) Implement dynarray_push_empty

4 years agoMerge pull request #977 from tsoding/976
Alexey Kutepov [Sat, 27 Jul 2019 14:04:20 +0000 (21:04 +0700)]
Merge pull request #977 from tsoding/976

(#976) Impelent Label deletion

4 years ago(#355) Generify deleting words/characters with memmove
bepzi [Tue, 23 Jul 2019 03:32:42 +0000 (22:32 -0500)]
(#355) Generify deleting words/characters with memmove

Calling `delete_char()` in a loop is wasteful, as it calls `memmove()`
internally over and over. This is especially inefficient for large
words.

Adds a generic `kill_region_and_move_cursor()` method, which destroys
characters between [start, end] (inclusive), taking into account when
to move with `memmove()` and when to simply kill to the end of the
line. The cursor is then moved to `start`. Now, deleting a single
character is simply deleting a region of size 1.

4 years ago(#355) Use `memmove` for character insertions and deletions
bepzi [Mon, 22 Jul 2019 22:42:27 +0000 (17:42 -0500)]
(#355) Use `memmove` for character insertions and deletions

4 years ago(#355) Use curly braces around `switch` cases, remove macro
bepzi [Mon, 22 Jul 2019 22:40:45 +0000 (17:40 -0500)]
(#355) Use curly braces around `switch` cases, remove macro

4 years ago(#355) Implement C-p and C-n for moving through history
bepzi [Sun, 21 Jul 2019 23:40:14 +0000 (18:40 -0500)]
(#355) Implement C-p and C-n for moving through history

4 years ago(#355) Add common Emacs keybindings to `Edit_field`
bepzi [Sun, 21 Jul 2019 22:19:14 +0000 (17:19 -0500)]
(#355) Add common Emacs keybindings to `Edit_field`

`static` helper methods are named according to the GNU Emacs
terminology:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Moving-Point.html

Implementing "C-p" and "C-n" for traversing history still needs to be
done.

4 years ago(#976) Impelent Label deletion
rexim [Sun, 21 Jul 2019 19:27:00 +0000 (02:27 +0700)]
(#976) Impelent Label deletion

4 years agoMerge pull request #975 from tsoding/964
Alexey Kutepov [Sun, 21 Jul 2019 19:27:13 +0000 (02:27 +0700)]
Merge pull request #975 from tsoding/964

 (#964) Implement Edit ID state for Label Layer

4 years agoMerge pull request #973 from zhiayang/master
Alexey Kutepov [Sun, 21 Jul 2019 19:20:29 +0000 (02:20 +0700)]
Merge pull request #973 from zhiayang/master

Add home and end key support to `Edit_field`

4 years ago(#964) Make Label Layer selection include the id
rexim [Sun, 21 Jul 2019 19:03:52 +0000 (02:03 +0700)]
(#964) Make Label Layer selection include the id

4 years ago(#964) Implement Edit ID state for Label Layer
rexim [Sun, 21 Jul 2019 18:46:43 +0000 (01:46 +0700)]
(#964) Implement Edit ID state for Label Layer

4 years ago(#964) Implement Edit_field style customization
rexim [Sun, 21 Jul 2019 18:46:24 +0000 (01:46 +0700)]
(#964) Implement Edit_field style customization

4 years ago(#964) Add more fonts
rexim [Sun, 21 Jul 2019 18:33:39 +0000 (01:33 +0700)]
(#964) Add more fonts

4 years ago(#964) Make LabelLayer display the ids
rexim [Sun, 21 Jul 2019 18:02:08 +0000 (01:02 +0700)]
(#964) Make LabelLayer display the ids

4 years agoadd home and end key support to edit_field
zhiayang [Sun, 21 Jul 2019 18:17:35 +0000 (02:17 +0800)]
add home and end key support to edit_field

4 years agoMerge pull request #970 from TheKnarf/fix/trying-to-get-travis-mac-working
Alexey Kutepov [Sun, 21 Jul 2019 18:16:22 +0000 (01:16 +0700)]
Merge pull request #970 from TheKnarf/fix/trying-to-get-travis-mac-working

(#909) Trying to get Travis build working

4 years agoMerge pull request #972 from tsoding/965
Alexey Kutepov [Sun, 21 Jul 2019 18:11:01 +0000 (01:11 +0700)]
Merge pull request #972 from tsoding/965

 (#965) Make LabelLayer render edit_field inside of the world

4 years ago(#909) Testing without -DSDL2_INCLUDE_DIR
Frank Lyder Bredland [Sun, 21 Jul 2019 17:52:11 +0000 (19:52 +0200)]
(#909) Testing without -DSDL2_INCLUDE_DIR

4 years ago(#965) Make LabelLayer render edit_field inside of the world
rexim [Sun, 21 Jul 2019 17:47:42 +0000 (00:47 +0700)]
(#965) Make LabelLayer render edit_field inside of the world

4 years ago(#965) edit_field_render -> edit_field_render_screen
rexim [Sun, 21 Jul 2019 17:44:09 +0000 (00:44 +0700)]
(#965) edit_field_render -> edit_field_render_screen

4 years agoMerge pull request #971 from tsoding/966
Alexey Kutepov [Sun, 21 Jul 2019 17:42:17 +0000 (00:42 +0700)]
Merge pull request #971 from tsoding/966

(#966) Improve edit_field interface

4 years ago(#909) Trying to update Homebrew packages
Frank Lyder Bredland [Sun, 21 Jul 2019 17:33:35 +0000 (19:33 +0200)]
(#909) Trying to update Homebrew packages

According to the doc one can force homebrew to update:
https://docs.travis-ci.com/user/installing-dependencies/#installing-packages-on-macos
However it will slow down the build.

4 years ago(#909) Debugging broken CI
Frank Lyder Bredland [Sun, 21 Jul 2019 17:28:13 +0000 (19:28 +0200)]
(#909) Debugging broken CI

4 years agoMerge pull request #969 from TheKnarf/fix/title-screen-size
Alexey Kutepov [Sun, 21 Jul 2019 17:26:44 +0000 (00:26 +0700)]
Merge pull request #969 from TheKnarf/fix/title-screen-size

(#967) Fix for title screen looking weird without resizing

4 years ago(#966) Improve edit_field interface
rexim [Sun, 21 Jul 2019 17:20:44 +0000 (00:20 +0700)]
(#966) Improve edit_field interface

4 years ago(#909) Trying to get Travis build working
Frank Lyder Bredland [Sun, 21 Jul 2019 17:20:24 +0000 (19:20 +0200)]
(#909) Trying to get Travis build working

4 years ago(#967) Fix for title screen looking weird without resizing
Frank Lyder Bredland [Sun, 21 Jul 2019 17:09:03 +0000 (19:09 +0200)]
(#967) Fix for title screen looking weird without resizing

4 years agoMerge pull request #962 from tsoding/892
Alexey Kutepov [Sun, 21 Jul 2019 11:55:54 +0000 (18:55 +0700)]
Merge pull request #962 from tsoding/892

(#892) Label Layer enhancements

4 years agoAdd TODO(#966)
rexim [Sat, 20 Jul 2019 19:54:35 +0000 (02:54 +0700)]
Add TODO(#966)

4 years agoAdd TODO(#965)
rexim [Sat, 20 Jul 2019 19:54:35 +0000 (02:54 +0700)]
Add TODO(#965)

4 years agoAdd TODO(#964)
rexim [Sat, 20 Jul 2019 19:54:34 +0000 (02:54 +0700)]
Add TODO(#964)

4 years agoAdd TODO(#963)
rexim [Sat, 20 Jul 2019 19:54:33 +0000 (02:54 +0700)]
Add TODO(#963)

4 years ago(#892) Introduce Edit Text state for Label Layer
rexim [Sat, 20 Jul 2019 19:53:06 +0000 (02:53 +0700)]
(#892) Introduce Edit Text state for Label Layer

4 years ago(#892) Remove refactoring leftovers
rexim [Sat, 20 Jul 2019 19:33:17 +0000 (02:33 +0700)]
(#892) Remove refactoring leftovers

4 years ago(#892) Store label's texts continuously
rexim [Sat, 20 Jul 2019 19:22:48 +0000 (02:22 +0700)]
(#892) Store label's texts continuously

4 years ago(#892) Add color changing to Label Layer
rexim [Sat, 20 Jul 2019 18:51:50 +0000 (01:51 +0700)]
(#892) Add color changing to Label Layer

4 years ago(#892) Make slider correctly identify its changes
rexim [Sat, 20 Jul 2019 18:51:29 +0000 (01:51 +0700)]
(#892) Make slider correctly identify its changes

4 years ago(#892) Render selection in Label Layer
rexim [Sat, 20 Jul 2019 18:27:06 +0000 (01:27 +0700)]
(#892) Render selection in Label Layer

4 years ago(#892) Introduce move_anchor for LabelLayer
rexim [Sat, 20 Jul 2019 18:09:25 +0000 (01:09 +0700)]
(#892) Introduce move_anchor for LabelLayer

4 years ago(#892) Add ColorPicker to LabelLayer
rexim [Sat, 20 Jul 2019 17:57:56 +0000 (00:57 +0700)]
(#892) Add ColorPicker to LabelLayer

4 years ago(#892) Implement label relocation in label layer
rexim [Sat, 20 Jul 2019 17:51:39 +0000 (00:51 +0700)]
(#892) Implement label relocation in label layer

4 years ago(#892) Hide WASD tutorial label
rexim [Sat, 20 Jul 2019 16:51:05 +0000 (23:51 +0700)]
(#892) Hide WASD tutorial label

4 years agoMerge pull request #961 from tsoding/960
Alexey Kutepov [Sat, 20 Jul 2019 23:30:25 +0000 (06:30 +0700)]
Merge pull request #961 from tsoding/960

(#960) Exit id editing state on Escape

4 years ago(#960) Exit id editing state on Escape
rexim [Sat, 20 Jul 2019 16:47:09 +0000 (23:47 +0700)]
(#960) Exit id editing state on Escape

4 years agoMerge pull request #959 from tsoding/957
Alexey Kutepov [Sat, 20 Jul 2019 16:48:25 +0000 (23:48 +0700)]
Merge pull request #959 from tsoding/957

(#957) Don't reload levels that have no associated filename

4 years ago(#957) Don't reload levels that have no associated filename
rexim [Sat, 20 Jul 2019 16:30:46 +0000 (23:30 +0700)]
(#957) Don't reload levels that have no associated filename

4 years agoMerge pull request #954 from tsoding/950
Alexey Kutepov [Mon, 15 Jul 2019 13:34:10 +0000 (20:34 +0700)]
Merge pull request #954 from tsoding/950

(#950) Improve RectLayer selection overlay

4 years agoAdd TODO(#956)
rexim [Mon, 15 Jul 2019 13:24:14 +0000 (20:24 +0700)]
Add TODO(#956)

4 years agoAdd TODO(#955)
rexim [Mon, 15 Jul 2019 13:24:13 +0000 (20:24 +0700)]
Add TODO(#955)

4 years ago(#950) Additional work
rexim [Mon, 15 Jul 2019 13:23:40 +0000 (20:23 +0700)]
(#950) Additional work

4 years ago(#950) Extract camera_draw_thicc_rect_screen
rexim [Sun, 14 Jul 2019 19:44:32 +0000 (02:44 +0700)]
(#950) Extract camera_draw_thicc_rect_screen

4 years ago(#950) Make overlay thiccness the same regardless of the zoom
rexim [Sun, 14 Jul 2019 19:37:14 +0000 (02:37 +0700)]
(#950) Make overlay thiccness the same regardless of the zoom

4 years ago(#950) Draw the overlay always on top
rexim [Sun, 14 Jul 2019 18:00:04 +0000 (01:00 +0700)]
(#950) Draw the overlay always on top

4 years agoMerge pull request #952 from tsoding/948
Alexey Kutepov [Sun, 14 Jul 2019 17:32:58 +0000 (00:32 +0700)]
Merge pull request #952 from tsoding/948

 (#948) Split rect_layer_event into several functions

4 years ago(#948) Get rid of event_handlers array
rexim [Sun, 14 Jul 2019 17:20:17 +0000 (00:20 +0700)]
(#948) Get rid of event_handlers array

4 years ago(#948) Split rect_layer_event into several functions
rexim [Sun, 14 Jul 2019 17:06:03 +0000 (00:06 +0700)]
(#948) Split rect_layer_event into several functions

4 years agoRemove TODO(#886)
rexim [Sun, 14 Jul 2019 11:47:26 +0000 (18:47 +0700)]
Remove TODO(#886)

4 years agoRemove TODO(#943)
rexim [Sun, 14 Jul 2019 11:47:26 +0000 (18:47 +0700)]
Remove TODO(#943)

4 years agoMerge pull request #947 from tsoding/886
Alexey Kutepov [Sat, 13 Jul 2019 23:24:44 +0000 (06:24 +0700)]
Merge pull request #947 from tsoding/886

 (#886) introduce RECT_LAYER_ID_RENAME state

4 years agoAdd TODO(#948)
rexim [Sat, 13 Jul 2019 19:45:43 +0000 (02:45 +0700)]
Add TODO(#948)

4 years ago(#886) introduce RECT_LAYER_ID_RENAME state
rexim [Sat, 13 Jul 2019 19:44:32 +0000 (02:44 +0700)]
(#886) introduce RECT_LAYER_ID_RENAME state

4 years ago(#886) Make RectLayer display the ids
rexim [Sat, 13 Jul 2019 18:57:44 +0000 (01:57 +0700)]
(#886) Make RectLayer display the ids

4 years agoRemove TODO(#920)
rexim [Sat, 13 Jul 2019 17:51:11 +0000 (00:51 +0700)]
Remove TODO(#920)

4 years agoRemove TODO(#942)
rexim [Sat, 13 Jul 2019 17:51:11 +0000 (00:51 +0700)]
Remove TODO(#942)

4 years agoRemove TODO(#933)
rexim [Sat, 13 Jul 2019 17:51:08 +0000 (00:51 +0700)]
Remove TODO(#933)

4 years agoRemove TODO(#930)
rexim [Sat, 13 Jul 2019 17:51:08 +0000 (00:51 +0700)]
Remove TODO(#930)

4 years agoRemove TODO(#931)
rexim [Sat, 13 Jul 2019 17:51:08 +0000 (00:51 +0700)]
Remove TODO(#931)

4 years agoMerge pull request #945 from tsoding/rect-layer-refactor
Alexey Kutepov [Sat, 13 Jul 2019 17:47:53 +0000 (00:47 +0700)]
Merge pull request #945 from tsoding/rect-layer-refactor

Rect Layer refactor

4 years agoPROTO -> CREATE
rexim [Sat, 13 Jul 2019 17:37:34 +0000 (00:37 +0700)]
PROTO -> CREATE

4 years agoRefactor IDLE state dispatching
rexim [Sat, 13 Jul 2019 17:34:58 +0000 (00:34 +0700)]
Refactor IDLE state dispatching

4 years agoMerge pull request #944 from tsoding/942
Alexey Kutepov [Sat, 13 Jul 2019 17:12:53 +0000 (00:12 +0700)]
Merge pull request #944 from tsoding/942

(#942) Introduce RECT_LAYER_MOVE state