Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Fix colour of subgroups. | 8e16f02cbc7ef08943a1642e8f986c6eb90f10a3 | Jan Allersma | 2018-11-14 10:51:01 |
Fix File I/O for EntityOrnaments. | e38712e53a13ba2bbb0a0b792688cfff29689826 | Jan Allersma | 2018-11-13 17:46:45 |
Allow multiple Ornaments to be aligned at the same Entity. | b01673996a5b4a589b8e6c6d9dee0dc9b3c1cc60 | Jan Allersma | 2018-11-09 21:46:01 |
Allow multiple Ornaments to be added to an Entity. | db1ce677fbcbba757c18ea645b76bb1688594d04 | Jan Allersma | 2018-11-09 17:23:02 |
Change Entity.group as variable into a property. | bbda7fe1dd4528b9396bff03fcb669e4c6ff2ad5 | Jan Allersma | 2018-11-08 16:37:41 |
Load nested Entities with Ornaments properly. | 8da015e6fd4f43cc873a5ae330caefab73b8f5fc | Jan Allersma | 2018-11-08 13:56:36 |
Save nested Entities with Ornaments properly. | 645cf4ae287fd2511b4c1404d0d9559372e5e10b | Jan Allersma | 2018-11-08 12:04:40 |
Fix bug: activate group after movement with cloning. | 482c53ecab43cdee03590949669c22227d104475 | Jan Allersma | 2018-11-08 10:35:27 |
Include Groups in Commands, removing dp.groups.groups. | 699f767ac316edd481630a943f7a1884c5bc16f2 | Jan Allersma | 2018-11-07 11:27:15 |
Fix ability to nest in Groups. | fd546a42ef54bdf5d2966eb7facbbf21a6b72e1b | Jan Allersma | 2018-11-06 17:49:11 |
Fix file I/O for single entities. | 093b7d31a215067212927b1d92bdbbee306ea345 | Jan Allersma | 2018-11-06 16:49:55 |
Fix file I/O issue. | 25c0b40db223c806eb3ea8bd28238dedc38ca8b5 | Jan Allersma | 2018-11-02 16:22:59 |
Cleanup commenting. | 445aea4a5115c9110a097bfc7ac9f7d5ad48a9e7 | Jan Allersma | 2018-11-02 14:33:08 |
Show Ornaments on Canvas. | d8456f15d69550c4cb0aa615cccb96b45a77f6a6 | Jan Allersma | 2018-11-02 14:08:47 |
Support Entities for Create & Destruct commands. | cc900579eedf9c6288ce1c1883122856794e05a0 | Jan Allersma | 2018-11-02 13:25:43 |
Use entities instead of shapes when constructing ornaments. | 13f08847624489f60a37db55c2aedbba6b021f98 | Jan Allersma | 2018-11-01 17:02:47 |
Remove obsolete 'calcBounds' function. | 475ec330736b5800d12d091415480b163dd244e2 | Jan Allersma | 2018-11-01 14:28:29 |
Setup for decorator pattern. | 762914dec31b1fb1d4cf6bb0cef2e148010652a4 | Jan Allersma | 2018-11-01 14:12:51 |
Revert commit '5678eb6'. | 6225242719b2cfc5ee0de9f8d05edbc7a69007a7 | Jan Allersma | 2018-11-01 14:10:27 |
Make groups movable and resizable. | 1ca7c18ab103a8d1055b27f63192038fd75aef3e | Jan Allersma | 2018-10-17 14:51:32 |
File | Lines added | Lines deleted |
---|---|---|
README.md | 0 | 3 |
source/entities/group.d | 0 | 14 |
source/entities/shape.d | 12 | 4 |
source/globals.d | 1 | 1 |
File README.md changed (mode: 100644) (index e8544d6..e3ba8dc) | |||
... | ... | all it's members. | |
17 | 17 | ||
18 | 18 | # Roadmap | # Roadmap |
19 | 19 | ||
20 | - Grafische indicatie van een groep. De groepen worden wel goed weergegeven, | ||
21 | maar subgroepen niet. | ||
22 | |||
23 | 20 | - Kan een `Global.Brush.clone` niet gewoon een Entity zijn? Dan hoef je | - Kan een `Global.Brush.clone` niet gewoon een Entity zijn? Dan hoef je |
24 | 21 | denk ik niet `Global.Brush.cloneGroup` te gebruiken. | denk ik niet `Global.Brush.cloneGroup` te gebruiken. |
File source/entities/group.d changed (mode: 100644) (index a744a24..0786cff) | |||
... | ... | class Group : Entity { | |
89 | 89 | } | } |
90 | 90 | ||
91 | 91 | public override void render() { | public override void render() { |
92 | double[3] tmp = [ | ||
93 | Global.Brush.red, | ||
94 | Global.Brush.green, | ||
95 | Global.Brush.blue | ||
96 | ]; | ||
97 | |||
98 | Global.Brush.red = colour[0]; | ||
99 | Global.Brush.green = colour[1]; | ||
100 | Global.Brush.blue = colour[2]; | ||
101 | |||
102 | 92 | foreach(e; entities) | foreach(e; entities) |
103 | 93 | e.render(); | e.render(); |
104 | |||
105 | Global.Brush.red = tmp[0]; | ||
106 | Global.Brush.green = tmp[1]; | ||
107 | Global.Brush.blue = tmp[2]; | ||
108 | 94 | } | } |
109 | 95 | ||
110 | 96 | public override void checkBounds(int x, int y) { | public override void checkBounds(int x, int y) { |
File source/entities/shape.d changed (mode: 100644) (index 037586c..2e36f6b) | |||
... | ... | class Shape : Entity { | |
87 | 87 | ||
88 | 88 | public override void render() { | public override void render() { |
89 | 89 | if(active) { | if(active) { |
90 | c.setSourceRgba ( | ||
91 | Global.Brush.red, Global.Brush.green, | ||
92 | Global.Brush.blue, Global.Brush.alpha | ||
93 | ); | ||
90 | if(group is null) { | ||
91 | c.setSourceRgba ( | ||
92 | Global.Brush.red, Global.Brush.green, | ||
93 | Global.Brush.blue, Global.Brush.alpha | ||
94 | ); | ||
95 | } else { | ||
96 | c.setSourceRgba ( | ||
97 | group.colour[0], group.colour[1], | ||
98 | group.colour[2], Global.Brush.alpha | ||
99 | ); | ||
100 | } | ||
101 | |||
94 | 102 | strat.draw(this); | strat.draw(this); |
95 | 103 | c.fill(); | c.fill(); |
96 | 104 | } | } |
File source/globals.d changed (mode: 100644) (index d85e2e9..87ec7d9) | |||
... | ... | public static void init() { | |
22 | 22 | Brush.red = 0.5; | Brush.red = 0.5; |
23 | 23 | Brush.green = 0.9; | Brush.green = 0.9; |
24 | 24 | Brush.blue = 0.5; | Brush.blue = 0.5; |
25 | Brush.alpha = 0.8; | ||
25 | Brush.alpha = 1.0; | ||
26 | 26 | Brush.group = null; | Brush.group = null; |
27 | 27 | } | } |