Commit graph

59 commits

Author SHA1 Message Date
5a606a9191 Implement missing cursor tree rendering methods 2019-06-08 09:10:59 +00:00
9c389b64e4 Clean up package imports 2019-06-08 09:10:59 +00:00
dec73f183f Implement tree rendering with cursor 2019-06-08 09:10:59 +00:00
2407377cf1 Implement cache for rendered elements 2019-06-08 09:10:59 +00:00
75a5ae5758 Restructure element classes yet again 2019-06-08 09:10:59 +00:00
c035817ba8 Unit test markup and fix all issues found 2019-06-08 09:10:59 +00:00
052bbfb6d2 Make classes more generic 2019-06-08 09:10:59 +00:00
f4c0416398 Add in-memory message supply 2019-06-08 09:10:59 +00:00
267f419603 Render basic messages 2019-06-08 09:10:59 +00:00
8979d80062 Accommodate scrolling
Change the rendering code to accommodate for scrolling, and clean it up.
2019-06-08 09:10:59 +00:00
1fe8a87d7f Implement parts of the message tree widget 2019-06-08 09:10:59 +00:00
8eaacf1558 Add documentation 2019-06-08 09:10:59 +00:00
f02b8a7791 Test scrolling with the mouse 2019-06-08 09:10:59 +00:00
0a104afd4a Test line-wide attributes 2019-06-08 09:10:59 +00:00
ce73a7d3bf Update mypy config
It now ignores unused imports, because I don't want to write types for
all the libraries I use.
2019-06-08 09:10:59 +00:00
1803a6676e Add small interactive test scripts 2019-06-08 09:10:59 +00:00
32bc9af2d8 Implement basic AttributedLinesWidget 2019-06-08 09:10:59 +00:00
66a67f3f28 Create very basic message tree widget structure
Also, fix some cheuph structuring problems
2019-06-08 09:10:59 +00:00
7e2c802364 Increase spacing in modules 2019-06-08 09:10:59 +00:00
7da4bf36d5 Lay out new client structure 2019-06-08 09:10:59 +00:00
6c4bfe2752 Use new config system 2019-06-08 09:10:59 +00:00
bc203aaff1 Create palette from config and add default config 2019-06-08 09:10:59 +00:00
5cfdb8f8e2 Move config to main package 2019-06-08 09:10:59 +00:00
4dfd31e5fc Simplify config code 2019-06-08 09:10:59 +00:00
31549aa7eb Add ConfigView
with python magic to make this possible:

c = Config({"a.b": "c"})
c.view.a.b == "c"
2019-06-08 09:10:59 +00:00
71ad02d4e1 Create simple config system 2019-06-08 09:10:59 +00:00
c676d71a61 Improve UI
- text no longer jumps around when an error message is displayed
- you can only type valid room names
- esc exits the application
2019-06-08 09:10:59 +00:00
43af84a395 Add basic euphoria single-room application 2019-06-08 09:10:59 +00:00
60d686bfce Implement widget for TreeDisplay 2019-06-08 09:10:59 +00:00
9c3278b48c Allow updating the AttributedTextWidget's text 2019-06-08 09:10:59 +00:00
55cea8ea7f Fix AttributedText types 2019-06-08 09:10:59 +00:00
b44e510dd2 Start using venv 2019-06-08 09:10:59 +00:00
a80f4c3788 Add AttributedTextWidget 2019-06-08 09:10:59 +00:00
f222b6a390 Add split_by and str-like join 2019-06-08 09:10:59 +00:00
4a1db74245 Improve AttributedText constructor usability
The AttributedText constructor now allows setting attributes as a dict
via the "attributes" argument. It also interprets all other named
arguments as attributes, which override the attributes set via the
"attributes" argument.
2019-06-08 09:10:59 +00:00
3a542caac7 Alias AttributedText to AT 2019-06-08 09:10:59 +00:00
0c5369cd9d Fix drawing of non-top-level anchors 2019-06-08 09:10:59 +00:00
6fae53e0c8 Add very basic test script 2019-06-08 09:10:59 +00:00
811933096f Fix downwards fill 2019-06-08 09:10:59 +00:00
2b2270b674 Fix adding initial tree
I just forgot to add it to the deque... Heh
2019-06-08 09:10:59 +00:00
75fd0e7bbc Fix children handling 2019-06-08 09:10:59 +00:00
603f8253cf Remove obsolete attributes 2019-06-08 09:10:59 +00:00
a4a171105b Add basic in-memory element supply 2019-06-08 09:10:59 +00:00
b71e3e15d6 Move ElementSupply to own file and document it 2019-06-08 09:10:59 +00:00
7c89ada5f0 Reorganize files 2019-06-08 09:10:59 +00:00
130da242cc Add missing files to __init__.py 2019-06-08 09:10:59 +00:00
9df8338b0e Implement rendering display lines 2019-06-08 09:10:59 +00:00
01a97c4147 Implement rendering to TreeView 2019-06-08 09:10:59 +00:00
4dbdb8d976 Figure out TreeDisplay structure 2019-06-08 09:10:59 +00:00
795569b917 Document how TreeDisplay will work one day 2019-06-08 09:10:59 +00:00