Log In  

Cart #enview-3 | 2024-03-29 | Embed ▽ | License: CC4-BY-NC-SA
2

The largest part of this work is based on pancelor's api explorer

It has some improvements like sub-tables being sorted, and not printing text above/below the screen.
Also I made some style changes to try and get it to gel with the OS as a windowed app.

I'd like to have it so clicking on a function shows you what parameters it expects, but honestly I have no idea if that's a thing you can even query in lua.

I may hard-code stuff so it gives an authored explanation of each item and how to use it, but right now it just lists the stuff and nothing else.

anyway I'm still very much learning picotron (which is why I wanted a nice API list I can quickly check in the GUI) so things might not be ideal.

P#143554 2024-03-17 18:58 ( Edited 2024-03-18 18:44)

3

it looks super clean! I think it would be cool if the first table (_ENV) was already unfolded, one less click when starting it!
Another things that would be very useful is a text filter at the top of the window, so you type the name of the function you want and it only display matching results
I released earlier a little test cart to find the parameters of the functions (it only works on lua defined ones, so not everything, but it's a start) also it can show the source code
https://www.lexaloffle.com/bbs/?tid=140783
My interface is a lot less clean than yours and I don't think I will continue working on it, so feel free to check how it uses hooks to get the parameters if you want to integrate that

P#143580 2024-03-17 22:03 ( Edited 2024-03-17 22:11)

Thank you so much Sophie! Having this as a desktop app really helps.

P#143583 2024-03-17 23:06

Just a heads up for anyone having trouble loading the app: rename it from "enview-0.p64.png" to "enview0.p64.png". For some reason picotron fails to load carts with a "-"

Amazing application, thank you so much 🌟🌻

P#143598 2024-03-17 23:54
1

Cart #enview-1 | 2024-03-18 | Embed ▽ | License: CC4-BY-NC-SA
1

Update!

  • Arguments listed for Lua functions
  • clicking an item shows simple info about it
  • slightly tidier UI
  • _ENV starts opened
  • no longer lists its own functions

I did start adding a search bar but then commented it out - I really don't want to have to code typing stuff rn lol

Being able to display the arguments is 100% thanks to NuSan, no way I'd have any idea how to have made that work myself!

as for what next:

  • Search/filter if I can find the energy
  • option to view source of lua functions/properties like in NuSan's function tool (maybe in a pop-out window, if possible)
P#143741 2024-03-18 18:43

It works really great!
Some functions takes a variable number of arguments, and you have the info in the variable "isvararg", so for example you can display the function "stop(txt, ...)"
I can't take full credits for the code to get the arguments, I mostly searched online for lua examples around this topic and messed around with it until it worked. I was super surprised to find the source code there, that was a nice bonus :D

P#143759 2024-03-18 21:01
1

Thanks for mentioning variable arguments, I hadn't even thought of that. I'm starting to think I'm missing the wood for the trees with that kind of oversight lol.

anyway, there's an update!

Cart #enview-2 | 2024-03-19 | Embed ▽ | License: CC4-BY-NC-SA
1

  • Variable arguments are now listed (thx NuSan!)
  • Added menu item to refresh tables
  • Window has title and opens centered
  • Mouse and scroll inputs ignored if window isn't focused
  • List sorting ignores case (unless items are equivalent)
  • Attempts to display source

it's a little embarrasing that after all this work I've still not got all the functionality of the apps I'm basing it off (and modifying the code of). I think I'm just way out of my comfort zone working on something like this.

As for what next, I think either I'll try to come up with a way to get info on the C functions (like pulling it from pico-8 docs somewhere) or... I'll just stop. I should be doing other things tbh!

P#143892 2024-03-19 20:27

Hello, I have a suggestion for a possible improvement: the argument workspace allows you to determine in some way where to place the workspace. current will make the window pop in the current workspace (the current screen or fullscreen app).

For instance I edited your cart to add workspace="current", in the window's arguments and placed it in the tooltray. Thus, if I need to check the API, I can just drop the tray, open ENView and it'll just pop over my code and not on the desktop!

For reference, the window creation looks now like that

    window {
        x=flr(0.5*(480-enview.display_w)),
        y=flr(0.5*(270+20-enview.display_h)),
        width = enview.display_w,
        height = enview.display_h,
        workspace = "current",
        title = "ENView",
        resizeable = true
    }
P#143894 2024-03-19 20:39
2

Cart #enview-3 | 2024-03-29 | Embed ▽ | License: CC4-BY-NC-SA
2

Quick update to add Eiyeron's suggestion, and fix broken fetch() stuff since I was using the wrong function for it.

P#144968 2024-03-29 10:49

I can't seem to get it to open in the tooltray/desktop2.
Not sure if this is a linux specific difference (or broken in the 0.1.0d version in general). I'm noticing several slight differences in functionality when switching between my windows computer and Steam Deck.

P#144973 2024-03-29 12:21

This is amazing! Great job!

P#145133 2024-03-30 16:19 ( Edited 2024-04-24 00:20)
1

If only there was a way to see what functions do and whether or not they are deprecated...

P#147218 2024-04-24 00:06

very cool tool to have. :)

anyway i got an error, while browsing through the "string" list:

In Picotron 0.1.0f on Windows 10
and if it's relevant, i've set PicoPhone on desktop2 and a slightly altered version of pong set as wallpaper.

P#147235 2024-04-24 09:08

Hi! I made a GUI library, and it has a very simple text input box if you want to use it: https://www.lexaloffle.com/bbs/?tid=141913

P#147381 2024-04-26 15:40

[Please log in to post a comment]