Search found 6 matches

by VEXED
Mon Apr 19, 2021 11:09 pm
Forum: Support and Development
Topic: String to access nested table value.
Replies: 8
Views: 6988

Re: String to access nested table value.

There isn't a direct route. At best, you can make a function to do this kind of access, but it's not the path I'd recommend to follow: I'd advise you to look for alternatives. It's not immediately clear what your plans are, so I can't suggest any. Hey, thanks a bunch this was very useful. Also than...
by VEXED
Mon Apr 19, 2021 4:31 pm
Forum: Support and Development
Topic: String to access nested table value.
Replies: 8
Views: 6988

Re: String to access nested table value.

local t = {x=0, y=5, other={z=10}} local zprop = "other" -- This prints 10 print(t[zprop].z) Thanks for the reply. This isn't what I'm asking. I want to combine multiple keys into one string and access a nested table key with a single string. That or parse a string to access them. In your...
by VEXED
Mon Apr 19, 2021 3:17 pm
Forum: Support and Development
Topic: String to access nested table value.
Replies: 8
Views: 6988

String to access nested table value.

The question I have is more of a Lua specific question, so hopefully I am alright to ask here. Lua has two main ways of accessing a key in a table that I know of. local t = {x=0, y=5, other={z=10}} -- Both should print "0" print(t["x"]) print(t.x) -- "x" can also be a v...
by VEXED
Thu Apr 01, 2021 8:21 pm
Forum: Support and Development
Topic: Multple Windows (love.window)
Replies: 8
Views: 8592

Re: Multple Windows (love.window)

I did do this thing on the löve discord server as a test, it only uses löve's own modules and it's windows-only, but it might be editable to make it work across most supported OS-es... (iirc you'd only need to modify the non-fused part of the code) no guarantees though ;) CC0 / do whatever you want...
by VEXED
Thu Apr 01, 2021 2:06 pm
Forum: Support and Development
Topic: Multple Windows (love.window)
Replies: 8
Views: 8592

Re: Multple Windows (love.window)

No, it's not possible with Löve (and I'm not sure but I think it's not possible on Windows for GL applications in general to open multiple windows). Some OpenGL-supporting emulators might beg to differ, but i'm not sure about the difference there, if one exists, to allow that kind of thing... Anoth...
by VEXED
Wed Mar 31, 2021 6:40 pm
Forum: Support and Development
Topic: Multple Windows (love.window)
Replies: 8
Views: 8592

Multple Windows (love.window)

Hey, possibly a bit of an oddball question. Is it possible with Love to create multiple widows per application? The reason I ask is because I feel inspired to create a small GameMaker 6-8.0 style game development tool. It had multiple windows for different sub tools, like a sprite tool, object tool,...