[Ohrrpgce] Collection root slices Fill Parent

Ralph Versteegen teeemcee at gmail.com
Sun Oct 25 17:56:15 PDT 2020


For completeness of argument: I forgot to mention that it's very common for
people to add a lookup code to a slice in a collection, load the
collection, lookup the slice, reparent it where they want it, and maybe
forget to delete the empty collection slice. The reason to do this is
because of root slices, which IIRC originally were not editable in the
editor. It should actually perfectly fine to modify the root slice for use
directly, eg turn it into a sprite and give it a nonzero x,y.

However the slice editor doesn't save a slice collection if the root slice
has no children, so that would need to be changed, which is tricky. I guess
I could make use of the code that already exists to check whether the
collection has been modified (which works by comparing the old and new
RELOAD serialisations).

On Mon, 26 Oct 2020 at 12:07, James Paige <Bob at hamsterrepublic.com> wrote:

> I enthusiastically endorse all of this plan :)
>
> ---
> James Paige
>
> On Sun., Oct. 25, 2020, 6:23 p.m. Ralph Versteegen, <teeemcee at gmail.com>
> wrote:
>
>> Visibility of the root slice of a collection can be toggled with F5.
>> I feel like they should maybe be visible by default, because the root
>> slice is the slice you get a handle to from "load collection", and so
>> they're pretty important, but many people don't understand what they are or
>> that they can be edited in the editor.
>>
>> Also, root slices are set to Fill Parent by default, to ensure that
>> they're the same size of the screen, even if you change the game
>> resolution. But I think that in most ways this is a bad thing and I suggest
>> we change the default for newly created collections.
>>
>> The problem with having the root set to fill is that you can't move or
>> reposition the collection slice after loading it!! How many people have
>> wondered why "put slice" didn't work? As Bena told me, "it seemed natural
>> that I'd be able to do that; didn't give it a second thought until it
>> didn't work". Plus if you try to reparent your collection to some slice
>> that isn't the same size as the screen it will change size... although
>> you're only going to align something to right or bottom edges of the root
>> if its some kind of UI.
>>
>> However, changing the default Fill Parent setting would be add a new
>> source of confusion because you can't tell just by looking at a collection
>> whether the root is set to fill or not. Maybe we should just add "(fill)"
>> (or an icon! I'm planning to add lots of icons to the slice editor, and
>> kylekrack has drawn me some!) in the root slice description line. Actually,
>> yes, all filling slices should have a little Fill Parent icon.
>> _______________________________________________
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20201026/e8826811/attachment.html>


More information about the Ohrrpgce mailing list