Life tag testing

For scripts to aid with computation or simulation in cellular automata.
Locked
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

Andrew wrote:
Me wrote:I've written a Lua script that attempts to emulate MCell-like selections.
I've just realized my script doesn't handle Cut/Copy/Paste the way that MCell does. Dave, let me know if you'd like me to make the necessary changes or if you'd like to have a go at doing them yourself.
I don't actually remember exactly how MCell handles Cut/Copy/Paste in the context of floating selections... but there's probably no need for an exact match. This is definitely a very nice implementation already, especially with the Undo functionality.

I'll probably start using this script, just for its ability to grab a selection at any location and align it precisely with landmarks (and then try again immediately if I miss by a cell or two, without Ctrl+Z and Ctrl+V). I know we already had move-object.lua and move-selection.lua that were capable of doing some of that, but this is much better.

Now I'm halfway through a list of cut- and copy-related functionality that would be really handy to have, to go along with these floating selections. It will take me a while to experiment and think about exactly what is missing... but luckily I have a long bus and train ride coming up this afternoon and tomorrow morning, so I'll post something more within a day or so.

-- Thanks for putting this together! I keep intending to dive in and do something more ambitious in Lua with Golly's overlay, but other Life projects keep getting in the way. This script looks like another really good sample to steal code from...
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 292 is now available on the lazyslug server

Enhancements in this build:
  • alternating rule support
    • use a | between two rule names to define even/odd generation rules
    • bounded grid is at the end of the definition as usual
    • [R]History postfix can be in one or both alternate rules
    • examples:
      • rule = Life|HighLife
      • rule = B34/S34|B234/S456
      • rule = 2/34/5|23/456/5
      • rule = B24/S123H|B24/SH:T100
      • rule = LifeHistory|HighLifeHistory
      • rule = Life|HighLifeHistory
    • does not support B0 rules
  • first part of UI customization - test
    • can now define UI colours using [[ COLOR <item> R G B|<name> ]] where <item> is one of:
      • UIFOREGROUND for foreground colour
      • UIBACKGROUND for background colour
      • UIHIGHLIGHT for colour when mouse is over control
      • UISELECT for colour when item is selected
      • UILOCKED for colour when item is locked
    • UI default foreground colour is now white
  • drawing is now disabled when viewing errors or help
Fixes in this build:
  • fixed a couple of LTL alias definitions
This build is a Release Candidate.
User avatar
Nathaniel
Site Admin
Posts: 907
Joined: December 10th, 2008, 3:48 pm
Location: New Brunswick, Canada
Contact:

Re: Life tag testing

Post by Nathaniel »

rowett wrote:Build 291 is now available on the lazyslug server
Build 291 is now live.
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

Nathaniel wrote:Build 291 is now live.
Thanks! And I'm glad we have a reusable release-candidate link now: that was actually Build 292 that made it to the forums.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Nathaniel wrote:
rowett wrote:Build 291 is now available on the lazyslug server
Build 291 is now live.
Firstly - thanks!

Secondly - unfortunately a bug slipped through. Please will you release Build 293 as soon as you get a chance.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 293 is now available on the lazyslug server

Enhancements in this build:
  • reorganised script help
  • can now define UI border colour with [[ COLOR UIBORDER R G B|<name> ]]
Fixes in this build:
  • multi-state HROT/LtL rules were broken
  • fixed Globe alias
  • don't processes unneeded history states
This build is a Release Candidate.
User avatar
Andrew
Moderator
Posts: 1073
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Life tag testing

Post by Andrew »

I wrote:I've just realized my script doesn't handle Cut/Copy/Paste the way that MCell does.
I've updated the script (attached below) to emulate MCell much more closely.

New functions (and their keyboard shortcuts on Windows):
SelectAll (ctrl-A or A)
CutSelection (ctrl-X)
CopySelection (ctrl-C)
ClearSelection (delete)
ClearOutside (shift-delete)

Undo can be invoked via ctrl-Z or Z (as in Golly).
Redo can be invoked via shift-ctrl-Z or shift-Z (as in Golly).

The new Paste function (invoked via ctrl-V or V) now uses the clipboard data to create a floating selection in the upper left corner of the viewport (and clears any previous selection, like MCell does).

I've removed the ability to paste using XOR mode. MCell doesn't seem to support it, and it's not all that useful anyway given the way MCell clears the pattern underneath when making a selection via a mouse click-and-drag.

Let me know if there are any problems. It should be easy enough to add some of the extra MCell functionality I haven't bothered implementing (eg. Invert Selection and Fill Selection).
Attachments
mcell-selection.lua.zip
2nd attempt to emulate MCell selections.
(7.52 KiB) Downloaded 10 times
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife, HatLife, SpectreLife
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

Andrew wrote:I've updated the script (attached below) to emulate MCell much more closely.
...
Let me know if there are any problems. It should be easy enough to add some of the extra MCell functionality I haven't bothered implementing (eg. Invert Selection and Fill Selection).
Looking forward to trying this out -- thanks! It may take a couple of days, though. There's a lot of snow that has to be shoveled in my part of Wisconsin these days.

Back on the LifeViewer editor side of things: I just suggested a trial run at editing a LifeHistory pattern with LifeViewer. But I had to swap the original colors to keep people from running into an apparent bug: clicking on an ON green cell turns it off, but clicking on an ON white cell has no effect. However, if I create a green cell next to the white cell, then click and drag from green to white, I can get both cells to turn OFF.

Code: Select all

x = 55, y = 26, rule = LifeHistory
46.A$45.A.A$44.2A.2A$49.A$44.4A.2A$43.A5.A$3.A39.A6.A$3.A.A36.A6.3A$
4.2A37.3A3.3A$52.A$2.C3.C35.C3.C5.2A$.C5.C33.C5.C3.A2.A$C3.C3.C3.D4.D
4.D3.D4.D4.D3.C3.C3.C4.A$C2.C.C2.C31.C2.C.C2.C$C3.C3.C31.C3.C3.C$.C5.
C33.C5.C$2.C3.C35.C3.C$3.3C37.3C4$3C3.3C31.3C3.3C2$4.C39.C$4.C39.C$4.
C39.C!
The white cell changes from marked-ON to marked-OFF, which is actually kind of nice. Functionally it would be useful to have a "marker pencil" and a "marker eraser", separate from the regular pencil tool (or a different mode of it, anyway) to allow annotations to be drawn or removed with no danger of modifying the actual pattern.

I guess this kind of marked-cell editing isn't likely to be much use in LifeViewer until Ctrl+C is able to copy out the current edited and/or evolved state of the pattern, instead of the start state. I'm used to LifeViewer Ctrl+C giving me the start state so that I don't have to worry about resetting the pattern before copying it, though.

Not sure if there's an easy GUI way to allow either type of copy. Ctrl+Shift+C to copy out the start state, maybe? That doesn't seem to be mapped to anything in Golly... but with Golly-type selections I'm not sure it would really make sense to have a way to copy out the Reset state of the entire pattern anyway.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

dvgrn wrote:But I had to swap the original colors to keep people from running into an apparent bug
No bug. The first version of the editor only supports 2-state patterns. LifeHistory has 7!

However, since your report I've been working on supporting [R]History in the editor. My question is related to your marked-cell editing comments. First some context, the LifeHistory states:
  • 0: dead, as in Conway's Game of Life.
  • 1: alive, as in Conway's Game of Life.
  • 2: history/envelope: shows whether a dead cell was ever alive.
  • 3: marked alive; enters state 4 upon death.
  • 4: marked dead; enters state 3 upon birth.
  • 5: start alive; enters state 4 upon death.
  • 6: boundary; never changes state.
LifeViewer keeps states 0 and 1 in a bit grid and cells 3, 4, and 5 in an overlay grid. States 2 and 6 are handled elsewhere.

At pattern load time any odd-numbered state creates a live cell in the bit grid, and any even-numbered state create a dead cell in the bit grid.

At runtime the overlay grid doesn't change (for example from state 3 to 4 when a marked cell dies), the renderer just picks a different cell colour because it can see state 0 in the bit grid and state 3 in the overlay grid (whereas previously it had state 1 in the bit grid and state 3 in the overlay grid):
  • bit grid 0 + overlay grid 3 = draw 4
  • bit grid 1 + overlay grid 3 = draw 3
  • bit grid 0 + overlay grid 4 = draw 4
  • bit grid 1 + overlay grid 4 = draw 3
  • bit grid 0 + overlay grid 5 = draw 4
  • bit grid 1 + overlay grid 5 = draw 5
So the question:
What would you like to happen to the bit grid and overlay grid when drawing with the different states? It's easy to modify the bit grid and/or the overlay grid depending on the drawing state number.
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

rowett wrote:What would you like to happen to the bit grid and overlay grid when drawing with the different states? It's easy to modify the bit grid and/or the overlay grid depending on the drawing state number.
Well... it seems like the obvious thing, which will generalize well to other non-[R]History types of editing, would be pretty much Golly's functionality: pick a color and draw, and you get that color if the cell is not that color, or state 0 if the cell is that color. Drawing with state 0 therefore always turns the cell OFF.

Sometimes I do wish you could switch off the toggle behavior for cell drawing in Golly, so that clicking with state S would always give you state S even if it's there already... seems like it might just be confusing to add a GUI way to enable/disable that option, but I'd appreciate it as a hotkey toggle as long as it was something difficult to hit accidentally.

My above-and-beyond idea would be a few more drawing states that just show up for [R]History rules:

- a "draw marked" state that adds +4 to state 0, +2 to states 1 and 2, -2 to state 3, and -4 to states 4 and 5;
- a "draw special marked" state, the same as the above but adding +4 to state 1;
- a "draw cells" state that adds +1 to state 0 and 3, and -1 to the rest.

-- Except state 6, which is unaffected by any of these hypothetical weird drawing tools.
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

Andrew wrote:New functions (and their keyboard shortcuts on Windows):
SelectAll (ctrl-A or A)
CutSelection (ctrl-X)
CopySelection (ctrl-C)
ClearSelection (delete)
ClearOutside (shift-delete)
I've done a quick trial run with the new script, and these all seem to work well. It looks like some of the math isn't valid for tiled layers, though; mouse clicks specifying selection location tend to have their effects halfway across the screen from where they're supposed to be, when there are two or more tiled layers being displayed.

Lose current selection info, or remember it?
If I remember right, MCell had a setting where it automatically dropped the selection before switching to a different mode. As it stands, starting the Lua script will convert any existing selection into an "mselection" (MCellection?) -- but stopping the Lua script doesn't reverse that. I wonder if it would make sense for that behavior to be symmetrical?

That seems a bit tricky, because sometimes you want the selection back and sometimes you want it to disappear. Maybe holding down Shift while quitting the script could convert the mselection back to a regular selection. Otherwise it's hard to move selection information from MCell mode to Golly mode.

The drop/no-drop part is probably mostly just a training issue: before quitting the script, click outside the selection to drop it back into the universe, or hit [Del] to remove it. That's fine unless you want to also retain the size of the current mselection.

Shrink, Shift-click and Ctrl+Space
Other functions that might be worth importing from regular Golly editing are S to shrink the floating selection, Shift+click to resize it and Ctrl+Space to advance the floating selection's contents by one tick without advancing the rest of the universe. Obviously Shift+Space isn't relevant since that's what regular Space does in this context.
Andrew wrote:The new Paste function (invoked via ctrl-V or V) now uses the clipboard data to create a floating selection in the upper left corner of the viewport (and clears any previous selection, like MCell does).
Might it make sense to paste to the last cut or copy location instead of the upper left corner? Not necessarily, I suppose, if the viewport has moved since then.

I think maybe the center of the viewport might be a less awkward default location, though -- I keep having to go and get each new pasted copy, way off in the corner... just because I haven't adjusted my standard Location for Editing Things to that upper left corner yet!
Andrew wrote:It should be easy enough to add some of the extra MCell functionality I haven't bothered implementing (eg. Invert Selection and Fill Selection).
I'm not likely to ask for either of those. Inverted patterns and filled rectangles don't tend to do anything that I'm very interested in... except in Day and Night-type patterns, anyway.

Keyboard control of selection?
"Nudge" and "move" keyboard functionality could be pretty handy, though -- arrow keys move selection one cell, and maybe Shift+arrow keys move the selection by the current scroll distance?

Selection size readout
I like having the status bar showing the selection size reliably. Come to think of it, it seems like there might be a very minor display bug in Golly: you get to see the selection size when you first click-and-drag, but not when you use Shift+click to alter the selection size. The new size flashes on the status bar for just a moment, then disappears again.

Another readout that could be really useful in the Lua script might be the selection's current offset from the last location where the mouse (or arrow-key movements, possibly?) picked it up.

-----------------------

Several of these items I could certainly work on adding myself -- once I'm past my current extended time crunch, which unfortunately may take another month or two.
User avatar
Andrew
Moderator
Posts: 1073
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Life tag testing

Post by Andrew »

dvgrn wrote:It looks like some of the math isn't valid for tiled layers, though; mouse clicks specifying selection location tend to have their effects halfway across the screen from where they're supposed to be.
Oops, I just forgot to pass in the current layer to the g.getview() calls. Well spotted!
If I remember right, MCell had a setting where it automatically dropped the selection before switching to a different mode.
The only setting like that is the "Drop selection before running" tick box in the general settings. (This was initially ticked by the way, so I had to untick it to get the behavior that allows MCell to run a pattern without affecting the selection.)
As it stands, starting the Lua script will convert any existing selection into an "mselection" (MCellection?) -- but stopping the Lua script doesn't reverse that. I wonder if it would make sense for that behavior to be symmetrical?
I think that's a good idea -- if only to provide visual feedback that you're back in Golly mode. Easy to do before the final ov("delete") call so I'll go ahead and implement that.
I think maybe the center of the viewport might be a less awkward default location
Upper left corner is what MCell does, but if you prefer center of viewport then just comment out the shifting code in GetPastePos().
it seems like there might be a very minor display bug in Golly: you get to see the selection size when you first click-and-drag, but not when you use Shift+click to alter the selection size. The new size flashes on the status bar for just a moment, then disappears again.
I can't reproduce this on any of my Win/Linux systems (Chris, do you see this bug?). What if you take your finger off the shift key while still holding down the mouse? Does that prevent the size message from disappearing? (If so it could be that holding down the shift key is sending repeat key-down events on Windows but not on my Mac or my Win VMs.)

I think I'll go ahead and make the above minor changes to the script and then make it available in the Scripts forum in case anybody might find it useful. I'm not really all that keen on spending more time improving it -- it was really just an exercise in showing how the overlay can be used to enhance/replace Golly's normal editing behavior.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife, HatLife, SpectreLife
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

Andrew wrote:
it seems like there might be a very minor display bug in Golly: you get to see the selection size when you first click-and-drag, but not when you use Shift+click to alter the selection size. The new size flashes on the status bar for just a moment, then disappears again.
I can't reproduce this on any of my Win/Linux systems (Chris, do you see this bug?). What if you take your finger off the shift key while still holding down the mouse? Does that prevent the size message from disappearing? (If so it could be that holding down the shift key is sending repeat key-down events on Windows but not on my Mac or my Win VMs.)
It's not quite like that, but something similar. I can get the size message to remain if I pick up the Shift key at just the right time, just as I'm starting the click. Otherwise it always disappears after just a tiny fraction of a second, just barely long enough for it to be visible at all (and sometimes it actually doesn't become visible even for a flicker).
Andrew wrote:I think I'll go ahead and make the above minor changes to the script and then make it available in the Scripts forum in case anybody might find it useful. I'm not really all that keen on spending more time improving it -- it was really just an exercise in showing how the overlay can be used to enhance/replace Golly's normal editing behavior.
Sounds like a good plan. Thanks very much for putting that script together! I like having the floating-selection functionality, and also the script seems like a perfect starting point to borrow code from, for various information-collecting GUIs that might someday rise to the top of my project list.
User avatar
Andrew
Moderator
Posts: 1073
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Life tag testing

Post by Andrew »

dvgrn wrote:I can get the size message to remain if I pick up the Shift key at just the right time, just as I'm starting the click. Otherwise it always disappears after just a tiny fraction of a second, just barely long enough for it to be visible at all (and sometimes it actually doesn't become visible even for a flicker).
Very odd. I've looked at the code (in wxview.cpp) and I don't see anything that would explain this.

How about the XY position in the top line of the status bar? Is the mouse location getting updated as you resize the selection?
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife, HatLife, SpectreLife
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Andrew wrote:
dvgrn wrote:I can get the size message to remain if I pick up the Shift key at just the right time, just as I'm starting the click. Otherwise it always disappears after just a tiny fraction of a second, just barely long enough for it to be visible at all (and sometimes it actually doesn't become visible even for a flicker).
Very odd. I've looked at the code (in wxview.cpp) and I don't see anything that would explain this.

How about the XY position in the top line of the status bar? Is the mouse location getting updated as you resize the selection?
I can reproduce it on Windows 64bit. When you make the initial select all is well. Both the "XY" position and "Selection wd x ht" message work as intended.

When you then hold down shift and drag to resize the selection the "XY" continues to behave. However the "Selection wd x ht" message only appears each time the selection size changes (i.e grows or shrinks by a row or column). It only appears for one frame as it does so. So as you drag you get a flashing "Selection wd x ht" message with the message briefly appearing each time a row or column is added or removed from the selection.

On Linux everything works as intended.
User avatar
Andrew
Moderator
Posts: 1073
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Life tag testing

Post by Andrew »

rowett wrote:I can reproduce it on Windows 64bit.
Good! A couple of things you can try:

1. At the bottom of PatternView::SelectCells in wxview.cpp, change the mainptr->UpdatePatternAndStatus() call to mainptr->UpdatePatternAndStatus(true). I'll be surprised if it solves the problem but worth trying.

2. More likely is that somewhere there is a piece of code calling statusptr->ClearMessage().
There's not a lot of those calls, so try adding a wxBell() call after each one until you find the culprit. The only places I can see that are even possible are in PatternView::OnKeyDown or PatternView::OnMouseDown.
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife, HatLife, SpectreLife
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Andrew wrote:... are in PatternView::OnKeyDown
This function appears to be the culprit.

Windows is repeatedly sending a Shift key event during the drag.

event.GetKeyCode() = WXK_SHIFT
event.GetModifiers() = wxMOD_SHIFT

Is there a flag set somewhere so we can tell there is a selection going on?
User avatar
Andrew
Moderator
Posts: 1073
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Life tag testing

Post by Andrew »

rowett wrote:Is there a flag set somewhere so we can tell there is a selection going on?
Yep. Try replacing this code:

Code: Select all

    statusptr->ClearMessage();
    
    realkey = event.GetKeyCode();
    int mods = event.GetModifiers();
with something like this:

Code: Select all

    realkey = event.GetKeyCode();
    int mods = event.GetModifiers();

#ifdef __WXMSW__
    // avoid selection size message being cleared
    if (selectingcells && realkey == WXK_SHIFT) return;
#endif

    statusptr->ClearMessage();
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife, HatLife, SpectreLife
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Andrew wrote:Yep. Try replacing this code...
Looks good - all working now.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 294 is now available on the lazyslug server

Enhancements in this build:
  • added Help section UI to each topic
  • added alternating rule aliases
  • new hotkey Shift "F1" to toggle smart drawing (default is on)
    • smart drawing automatically deletes cells if you start drawing on a cell whose state is the current drawing state
  • added pick state control to editor
  • added toggle states display control to editor
  • [R]History patterns can now be edited
Fixes in this build:
  • always create overlay for LifeHistory patterns since states can be created by the editor
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

rowett wrote:Build 294 is now available on the lazyslug server...
Looks good! Thanks for the smart-editing toggle, it seems to work very nicely.

It's especially nice to have the option to scribble wildly while running a pattern. Keeps things from getting boring, you know... Scribbling in state 3 or state 5 LifeHistory makes a particularly wonderful mess, just as it should.

The only hiccup that I've seen so far is that if I accidentally scribble off the edge of the screen, I have to click again to keep scribbling when I get the mouse back to the viewer edge. I suppose that's a feature not a bug, having to do with losing the focus and having to click to get it back again.

I take it this is not a release candidate partly because the color picker and Pan tool aren't completely implemented yet? Can't get either of them to do much yet, except I can select them and they get highlighted appropriately.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

dvgrn wrote:The only hiccup that I've seen so far is that if I accidentally scribble off the edge of the screen, I have to click again to keep scribbling when I get the mouse back to the viewer edge. I suppose that's a feature not a bug, having to do with losing the focus and having to click to get it back again.
Indeed, it's a focus issue.
dvgrn wrote:I take it this is not a release candidate partly because the color picker and Pan tool aren't completely implemented yet? Can't get either of them to do much yet, except I can select them and they get highlighted appropriately.
It's not a release candidate because I haven't tested it enough. I'm still waiting on Nathaniel to surface and release Build 293.

As for the Pan control and Picker they should both work. Pan mode just means dragging the background pans the display (like before the editor existed). The Picker you click on once and then you click on a cell and that cell colour gets selected as the drawing colour, at which point the Picker is de-selected so you can draw. Should work fine.
User avatar
dvgrn
Moderator
Posts: 12053
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Life tag testing

Post by dvgrn »

rowett wrote:As for the Pan control and Picker they should both work. Pan mode just means dragging the background pans the display (like before the editor existed). The Picker you click on once and then you click on a cell and that cell colour gets selected as the drawing colour, at which point the Picker is de-selected so you can draw. Should work fine.
Okay, the second time around I didn't have any trouble with the color picker -- must have been user error somehow. It took me a while to notice that the state number's background color changes from dark gray to dark blue when a different color is selected. I might have been subconsciously expecting a visible change to the selected color swatch itself, like in Golly where the selected state number and color are both circled, or rectangled, with a black outline.

Oddly enough, I can't get click-and-drag to do anything in Build 294 when the Pan tool is selected (or any other time, really). Big or small pattern doesn't seem to matter, so for example:

Code: Select all

x = 10, y = 13, rule = B3/S23
4b2o$3b4o2$2b6o$3b4o2$2b2o2b2o$2obo2bob2o$3bo2bo3$4b2o$4b2o!
[[ THEME 8 ]]
Clicking and dragging moves the copperhead around just fine in Build 292 here on the forums, but in my test HTML page with Build 294 I can't get click-and-drag to do anything. Have to change the viewport by zooming out then in again.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

Build 295 is now available on the lazyslug server

Enhancements in this build:
  • added notifications when using the Pick control or selecting drawing state
  • added multi-state drawing (but colour selection limited to 7 currently)
This build is a Release Candidate.
User avatar
rowett
Moderator
Posts: 4597
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Life tag testing

Post by rowett »

dvgrn wrote:Oddly enough, I can't get click-and-drag to do anything in Build 294 when the Pan tool is selected (or any other time, really).
Try Build 295. If it works do you think you could see if Nathaniel can release it please. I've made it a Release Candidate!
Locked