[Ohrrpgce] SVN: james/12766 You can use a custom menu as a template for the Battle Menu

James Paige Bob at hamsterrepublic.com
Mon Feb 7 17:04:56 PST 2022


On Mon, Feb 7, 2022 at 5:43 PM Ralph Versteegen <teeemcee at gmail.com> wrote:

>
>
> On Tue, 8 Feb 2022 at 10:04, James Paige <Bob at hamsterrepublic.com> wrote:
>
>>
>>
>> On Mon, Feb 7, 2022 at 9:31 AM Ralph Versteegen <teeemcee at gmail.com>
>> wrote:
>>
>>> It wasn't until I tried it out that I realised this is a big deal! Does
>>> the name genDefaultBattleMenu imply per-hero custom menu templates in
>>> future?
>>>
>>
>> Yeah, I picked that name because I thought we might want
>> per-battle-formation or per-hero customization later-- though I don't plan
>> on working on those soon.
>>
>
> It's not super compelling, but does have its uses. Two-player hotseat
> battles? :)
>
>
>>
>>
>>>
>>> I'll go finish that branch where I added a battle system pref bit to run
>>> battles at the game resolution instead of 320x200. The part that wasn't
>>> done yet (but which is easy) was proper positioning of the menu and HUD. Of
>>> course, the battle menu preview should take that bit into account, and
>>> ideally show the HUD too for positioning.
>>> I'm not sure what this means for when we convert the battle HUD to
>>> slices and let people customise it, but that's in the future. Maybe we can
>>> just put a placeholder rect in there and copy its position back out
>>> afterwards. The actual size of it would depend on the menu items.
>>>
>>
>> I have been thinking about how to make the battle hud customizable. I
>> haven't settled exactly how yet, but I hope to tackle it sooner rather than
>> later.
>>
>
> Because the HUD now doesn't contain a menu, it could be made customisable
> first, whereas I think we should create an actual MenuItem slice type (an
> evolution of plankmenus), and probably Menu too, and convert the menu
> collections to those.
> One thing I'd really like to have are slices that can be set to a % of the
> width or height of their parent (actually, of the "support" rect, eg a Grid
> cell), without using panel slices. And x and y as a % of their support too.
>

Using Panel slices for this purpose is not bad though. I was thinking of
rebuilding the ready meters and HP meters in battle using panel slices.


>
>
>>
>>>
>>> Also, fun convergence of the things we were doing! I was also just
>>> working on some similar deduplication, of the textbox drawing code
>>> (actually, the textbox editor didn't use slices yet).
>>>
>>
>> Yay :D
>>
>>
>>>
>>> On Mon, 7 Feb 2022 at 15:09, <subversion at hamsterrepublic.com> wrote:
>>>
>>>> james
>>>> 2022-02-06 18:09:01 -0800 (Sun, 06 Feb 2022)
>>>> 59
>>>> You can use a custom menu as a template for the Battle Menu
>>>> ---
>>>> U   wip/bmod.rbas
>>>> U   wip/common.bi
>>>> U   wip/common.rbas
>>>> U   wip/const.bi
>>>> U   wip/generaledit.rbas
>>>> U   wip/heroedit.rbas
>>>> U   wip/whatsnew.txt
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>> _______________________________________________
>> 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/20220207/731e5ebc/attachment.html>


More information about the Ohrrpgce mailing list