These are chat archives for Spring-Chobby/Chobby

18th
Sep 2016
L.J. Lim
@KingRaptor
Sep 18 2016 04:52
is there a call to pop up a dialog box with text and one button ("OK")?
would be useful for error messages and such
GoogleFrog
@GoogleFrog
Sep 18 2016 05:17
yes
WG.Chobby.InformationPopup("text")
GoogleFrog
@GoogleFrog
Sep 18 2016 05:37
@KingRaptor what do you need for missions?
L.J. Lim
@KingRaptor
Sep 18 2016 05:40
I don't think I need any further chobby changes right now, need to test first implementation using existing codebase
L.J. Lim
@KingRaptor
Sep 18 2016 05:58
hmm, right, campaign/missions probably want a way to tell chobby "download these maps if you don't have them already" ahead of time
GoogleFrog
@GoogleFrog
Sep 18 2016 07:05
yes
doing that looks like the button of gui_queue_list_window
L.J. Lim
@KingRaptor
Sep 18 2016 07:12
hmm io.open only works on the write dir?
guess I'll have to store my startscripts in lua files
GoogleFrog
@GoogleFrog
Sep 18 2016 07:44
why not VFS?
VFS can load files to strings
L.J. Lim
@KingRaptor
Sep 18 2016 07:46
okay
L.J. Lim
@KingRaptor
Sep 18 2016 08:35
apparently VFS.MapArchive doesn't actually let you load archives from arbitrary places within datadir
GoogleFrog
@GoogleFrog
Sep 18 2016 09:36
no, don't do MapArchive
L.J. Lim
@KingRaptor
Sep 18 2016 10:32
why does translating my same-size-as-parent Chili image by (x,y) shrink it by (x,y)?
Gajo Petrovic
@gajop
Sep 18 2016 10:33
'translatng'?
can you give code
L.J. Lim
@KingRaptor
Sep 18 2016 10:33
(and then it returns to its correct size just by calling SetLayer on its parent apparently, but not if I do it right after the shake animation)
(the immediate setting of image's x and y is in 389-395)
Gajo Petrovic
@gajop
Sep 18 2016 10:36
i'd suggest changing size stuff using the method instead
SetPos i think
L.J. Lim
@KingRaptor
Sep 18 2016 10:40
wow that fixed it
thanks!
Gajo Petrovic
@gajop
Sep 18 2016 10:40
yey, i'm useful :p
L.J. Lim
@KingRaptor
Sep 18 2016 13:47
is there a difference between SetVisibility() and Show()/Hide() in Chili?
GoogleFrog
@GoogleFrog
Sep 18 2016 13:49
Show and Hide will give an error sometimes
L.J. Lim
@KingRaptor
Sep 18 2016 13:51
I thought I still had that with SetVisibility, but maybe it's because I didn't actually edit the widget file in Chobby folder
hmm still getting the "tried to hide a non-child" thing
GoogleFrog
@GoogleFrog
Sep 18 2016 13:54
that means it is not he child of anything
L.J. Lim
@KingRaptor
Sep 18 2016 13:59
I am somewhat puzzled tbh, I thought the point of using Show/Hide was to avoid screwing with the silliness of manually adding/removing children
but it seems to work just that way under the hood
Gajo Petrovic
@gajop
Sep 18 2016 14:52
you cannot hide something that's already hidden
that's probably the issue
you also cannot make something visible that's already visible
the error is a bit not user friendly