| View previous topic :: View next topic |
| Author |
Message |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Mon Jan 12, 2009 1:51 am Post subject: |
|
|
| phobox wrote: | in crt0 file you have called vlfGuiInit(15000, app_main);
where 15000 are the kilos of heap, right?
how do you choose that value? or a least how should it be choosen? how much free space vlf lib needs? |
The value is in KiB. In my test with the first beta, it required around 5.5MB to work properly with the Wave and one of the built in backgrounds.
The size you give will be allocated to the heap for use with malloc and other libc stuff. The remaining will be left free for allocation by SCE alloc functions or other modules.
Negative values are also working, to allocate all EXCEPT that much. |
|
| Back to top |
|
 |
k!rk
Joined: 18 Jul 2008 Posts: 11
|
Posted: Mon Jan 12, 2009 5:37 am Post subject: |
|
|
Much thanks Moonlight!
Btw: Right click download works fine for me. |
|
| Back to top |
|
 |
pspwill
Joined: 17 Nov 2005 Posts: 51
|
Posted: Tue Jan 13, 2009 10:02 am Post subject: |
|
|
Is this the correct way to do an event handler?
| Code: | | vlfGuiAddEventHandler(PSP_CTRL_CROSS, 0, TestFunc, NULL); |
When i do this in PSPLink i get an exception. Im using this on 1.5 withour custom firmware could that be the problem? |
|
| Back to top |
|
 |
raing3
Joined: 09 Nov 2008 Posts: 12
|
Posted: Tue Jan 13, 2009 10:05 am Post subject: |
|
|
| Thanks for the update |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Jan 13, 2009 10:43 am Post subject: |
|
|
Very nice!
Don't know how I missed it for so long.
Does vlf stand for something? _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Tue Jan 13, 2009 7:08 pm Post subject: |
|
|
| Art wrote: | Very nice!
Don't know how I missed it for so long.
Does vlf stand for something? |
vsh look and feel. |
|
| Back to top |
|
 |
phobox
Joined: 24 Mar 2008 Posts: 140
|
Posted: Wed Jan 14, 2009 6:51 am Post subject: |
|
|
here my wishlist:
-vlfGuiSetInputBoxXY
-vlfGuiSetInputBoxVisibility
-vlfGuiSetCheckBoxXY
-vlfGuiSetCheckBoxVisibility
-vlfGuiSetSpinXY
-vlfGuiSetSpinVisibility
-vlfGuiSetRectangleXY
-vlfGuiSetRectangleXYEx(this one with the possibility of an effect on the move, like the xmb menu does)
-vlfGuiSet*XYEx(like above)
-vlfGuiSetTextColor
-what about of a context for focusable items that handles their focus with up/down keypresses? maybe customizable buttons...
-...and a context for pages? like:
-vlfGuiAddPageContext(int numberOfPages)
-vlfGuiAddPageToContext(ctx, void (*showPage)(void), void (*closePage)(void), [int index])
...and this will automatically handle left and right key presses (like now) but without OnNext/previousPage functions.
-intraFont 0.24. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Wed Jan 14, 2009 8:10 am Post subject: |
|
|
| The OOP design of the C++/D wrappers will help me find those missing functions like the ones you mentioned. I didn't know there was a newer version of intrafont. |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Wed Jan 14, 2009 5:04 pm Post subject: |
|
|
Probably the menu clicking sound would be nice if it can be done. _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Wed Jan 14, 2009 5:15 pm Post subject: |
|
|
| pspwill wrote: | Is this the correct way to do an event handler?
| Code: | | vlfGuiAddEventHandler(PSP_CTRL_CROSS, 0, TestFunc, NULL); |
When i do this in PSPLink i get an exception. Im using this on 1.5 withour custom firmware could that be the problem? |
that's odd. vlf should work in 1,5 except for some things like checkbox that are from rco's not found in 1.5. |
|
| Back to top |
|
 |
pspwill
Joined: 17 Nov 2005 Posts: 51
|
Posted: Wed Jan 14, 2009 7:54 pm Post subject: |
|
|
| Im not using any checkboxes. Every time i create an event handler my code crashes, it also crashes when i try to set the progress of a progress bar. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Wed Jan 14, 2009 8:35 pm Post subject: |
|
|
| does the loginscreen sample works for you in 1,5? (except for the checkbox there) |
|
| Back to top |
|
 |
pspwill
Joined: 17 Nov 2005 Posts: 51
|
Posted: Thu Jan 15, 2009 3:27 am Post subject: |
|
|
the compiled sample that is included with vlf 1.0 does not work on my psp. im using 1.5 on Time Machine if that makes any difference.
*EDIT*
Also i have noticed that when i load it from the XMB the PSP does its normal crash response and turns off but when i load it using PSPLink no exception is generated even though it is crashing. |
|
| Back to top |
|
 |
phobox
Joined: 24 Mar 2008 Posts: 140
|
Posted: Thu Jan 15, 2009 7:52 am Post subject: |
|
|
| moonlight wrote: | | I didn't know there was a newer version of intrafont. |
http://www.psp-programming.com/benhur
..and now there is 0.25... _________________ Ciao! from Italy |
|
| Back to top |
|
 |
raing3
Joined: 09 Nov 2008 Posts: 12
|
Posted: Thu Jan 15, 2009 9:51 am Post subject: |
|
|
Just a few questions about some problems I'm having with this release:
- Is it possible to make an array of the various VLF controls (eg. VlfText vlf_texts[10];) to create 10 VlfText items. I'm having trouble doing this and the program is crashing whereas when I erase them. Back in the beta when I was doing it them as integers it was alright.
- Is it possible to show no buttons (I use to call vlfGuiCancelBottomDialog() but now it just crashes if the cross button is only shown, would it be possible to make it so when that is called it doesn't crash and removes the cross. I'm probably doing something wrong)
- Make it possible to try and remove controls which have no pointer without crashing like when you use to return an ID of the control it was possible to remove controls that don't exist (if thats possible)
- When removing a VlfText (and other VLF controls) set the value back to NULL
- Don't crash if removing items which aren't added (this would be extremely helpful)
Anyway good work with 1.0 I'm still sticking to the beta until I can fix the problems but the new controls look sweet and so does the skype example. I hope you get the new wave added soon. Bet Sony added the wave just to screw with you.
Most of the problems are because I'm sort of lazy and do not want to have a whole lot of VlfText items. And I need to have nothing as the bottom dialog. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Fri Jan 16, 2009 12:19 am Post subject: |
|
|
Some minor issues:
1) When using rectangle fade and it covers part of a central menu, it fades away only few items that are completely in the rectangle and not the whole menu.
I guess it might be better to add a separate fade function for the menus instead of being forced to use rectangle fade. Sometimes there might be other objects in the same area that we don't want to fade.
2) When rectangle fade out around 15 items, it lags a bit. Fade in of 15 items doesn't lag. |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Sat Jan 17, 2009 3:39 pm Post subject: |
|
|
Moonlight, do vlf support any type of menu to save a file? Something like whats in the internet browser to download files?
And will it support the menu type the internet browser menu uses. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Wed Jan 21, 2009 6:55 pm Post subject: |
|
|
| Do you have some kind of license for this? I want to use it for my project GUI. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Wed Jan 21, 2009 11:45 pm Post subject: |
|
|
| Torch wrote: | | Do you have some kind of license for this? I want to use it for my project GUI. |
Well you can use it as you want, I'm not gonna bother to make a license xD |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Thu Jan 22, 2009 6:49 am Post subject: |
|
|
| moonlight wrote: | | Torch wrote: | | Do you have some kind of license for this? I want to use it for my project GUI. |
Well you can use it as you want, I'm not gonna bother to make a license xD |
They are reluctant to accept closed source stuff as public domain. You could just use BSD license. Basically means do what you want no strings attached. |
|
| Back to top |
|
 |
raing3
Joined: 09 Nov 2008 Posts: 12
|
Posted: Sat Jan 31, 2009 9:20 am Post subject: |
|
|
I have just a couple more requests/problems.
- Allow PSP_CTRL_HOME to be used with vlfGuiAddEventHandler (or do you know how I can prevent the exit dialog come up and replace it with a vlf message dialog.
- I'm having an issue running programs which utilize vlf on a 1.50 PSP. I have tried with and without the permanent kxploit patcher and I've also tried with and without the CFW POC installed. The programs run on 150 and 150_340 under time machine but do not work on the proper firmware. The applications don't crash they just don't continue to app_main. Do you know any workaround for this or even why it is happening?
I finally figured out what I was doing wrong with the 1.0 vlf library a couple of days ago so its working properly now (I think I was removing the bottom dialog when it didn't exist and I wasn't removing the array of text variables correctly). I can even get more than 2 pages now. BTW are you still working on Time Machine its one of my favourite apps and theres only been one release. I'd like to see 1.00 and hopefully converting the Datel PSPAR IPL to be TM compatible.
Thanks. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sat Jan 31, 2009 9:25 am Post subject: |
|
|
| raing3 wrote: |
- Allow PSP_CTRL_HOME to be used with vlfGuiAddEventHandler (or do you know how I can prevent the exit dialog come up and replace it with a vlf message dialog.
Thanks. |
Eh...Don't register the exit callback?? Then the Home screen won't show up.
You can only detect Home button from a kernel PRX that you must load...Unless moonlight adds sceCtrl* stuff to kubridge then updates vlf to use that function so you can add an event handler directly from your EBOOT.
Otherwise you need to load your own kernel PRX that reads the buttons for Home button. |
|
| Back to top |
|
 |
raing3
Joined: 09 Nov 2008 Posts: 12
|
Posted: Sat Jan 31, 2009 9:26 am Post subject: |
|
|
| Ok thanks. |
|
| Back to top |
|
 |
Cruiserx
Joined: 23 Oct 2008 Posts: 8
|
Posted: Tue Feb 03, 2009 3:18 pm Post subject: |
|
|
| Hi. I was just wondering, is it possible to have a Menu scroll? |
|
| Back to top |
|
 |
Zer01ne
Joined: 08 Sep 2008 Posts: 29
|
Posted: Mon Feb 09, 2009 5:35 am Post subject: |
|
|
| Hello i have a question how to focus a picture if rco ressource ? |
|
| Back to top |
|
 |
victorprosa
Joined: 14 Jan 2009 Posts: 38
|
Posted: Sat Feb 21, 2009 4:19 pm Post subject: |
|
|
Sorry for asking a so basic thing, but i am having some trouble with the progress bar...
X and Y must be set in what? Pixels?
I am trying to keep the progress bar in the center of the screen, can someone tell me the position i must use?
PS: I am asking this, because text is set in "0x200" for example, but VLF default X align, is "3" second vlf.h, this making me a bit confusing... |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sat Feb 21, 2009 4:39 pm Post subject: |
|
|
I don't understand exactly what your question is. The position is given in pixels X,Y.
Use the ordinary add progress bar function, not the Ex one. In the ordinary add progress bar function you just give the vertical Y coordinate in pixels. It is automatically centered horizontally. |
|
| Back to top |
|
 |
victorprosa
Joined: 14 Jan 2009 Posts: 38
|
Posted: Sat Feb 21, 2009 5:09 pm Post subject: |
|
|
Thanks for anwering, just one more question...
for centralized height, i must use:
| Code: | | VlfProgressBar vlfGuiAddProgressBar(136); |
(range from 0 to 272)
or
| Code: | | VlfProgressBar vlfGuiAddProgressBar(0); |
(range from -136 to 136)
I am asking this, because i've never defined a X,Y position in PSP, and don't know the range of it in PSP... |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sat Feb 21, 2009 5:13 pm Post subject: |
|
|
| Its from 0. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Mon Mar 09, 2009 8:58 pm Post subject: |
|
|
I'm having this same problem:
| Quote: | | - Is it possible to show no buttons (I use to call vlfGuiCancelBottomDialog() but now it just crashes if the cross button is only shown, would it be possible to make it so when that is called it doesn't crash and removes the cross. I'm probably doing something wrong) |
When bottom dialog is created with vlfGuiBottomDialog(-1, VLF_DI_ENTER, 1, 0, VLF_DEFAULT, NULL); then vlfGuiCancelBottomDialog(); instantly crashes.
Whereas vlfGuiBottomDialog(VLF_DI_ENTER, VLF_DI_CANCEL, 1, 0, VLF_DEFAULT, NULL); can be cancelled. |
|
| Back to top |
|
 |
|