Line 6: |
Line 6: |
| | author = [[User:Thav|Thav]] | | | author = [[User:Thav|Thav]] |
| | download = None yet | | | download = None yet |
− | | source = [http://libwsmenu.googlecode.com/files/libwsmenu_and_demo.zip Source and Demo] | + | | source = [http://libwsmenu.googlecode.com/files/libwsmenu_and_demo_v.01.zip Source and Demo] |
| | peripherals = {{Wiimote1}} | | | peripherals = {{Wiimote1}} |
| }} | | }} |
Line 14: |
Line 14: |
| | | |
| ==Project Info== | | ==Project Info== |
| + | ===Status=== |
| + | *I've written some form of all the functions for the button class and am trying to test them now, but I'm having no luck getting the Draw() function to get anything on the screen. The demo includes a pointer using the Wiimote IR which draws, but the button does not, nor can I draw a TextField layer that I've used in other demos. I could use some help understanding what's going on in the Draw() and _Draw() functions, since I just copied them from libwiisprite's Sprite class. |
| + | *Still can't get anything to draw. I've tried cutting the draw function down to just what's in libwiisprite but I still can't get it going. I got some text to display (by scrapping the demo in the source zip above and chopping up one of those other demos) but haven't found a good way to get debug information out. |
| + | *Considering going back and just having the button class wrap around a pair or so of sprites, since I really can't figure out how to get Draw() working, even when I've reduced it to basically all that's in the Sprite class anyway. |
| + | *Went back and started rebuilding the button class, saving the image stuff for last. I got to Draw(), copied EXACTLY what's in wsp::Sprite with all the necessary variables, and it goes from drawing to not drawing. I'll need to get a better idea of how it works. Talking to chaosteil is probably in order. [[User:Thav|Thav]] 01:52, 7 August 2008 (CEST) |
| + | *Uploaded a new demo that actually shows the functionality. I didn't fix the drawing issue; I'm just using the Sprite draw function which limits me to displaying one image at a time, so no button Icon or text included yet. This demo just shows how to use the function pointer and initializing the button. [[User:Thav|Thav]] 02:04, 10 August 2008 (CEST) |
| + | |
| ===Proposed Features=== | | ===Proposed Features=== |
| *Menu object that takes an array of Button objects, which each contain a function pointer, default button image, hover button image, selected button image, foreground icon and foreground text. | | *Menu object that takes an array of Button objects, which each contain a function pointer, default button image, hover button image, selected button image, foreground icon and foreground text. |
Line 22: |
Line 29: |
| *The menu, buttons and all will have to sit in a LayerManager, but LayerManager has no visible option, so where do we put the Menu when not in use? Or is it better to discard the menu from memory and rebuild later? Will look into how this is done on other software. Each menu/function can sit in its own LayerManager and be shoved offscreen when needed. Maybe if the manager is not drawn before a flush it will not appear? Will look into this. | | *The menu, buttons and all will have to sit in a LayerManager, but LayerManager has no visible option, so where do we put the Menu when not in use? Or is it better to discard the menu from memory and rebuild later? Will look into how this is done on other software. Each menu/function can sit in its own LayerManager and be shoved offscreen when needed. Maybe if the manager is not drawn before a flush it will not appear? Will look into this. |
| *When allowing some other function to access video that does not use libwiisprite (say an emulator) then how do we make sure the path is clear, so to speak? | | *When allowing some other function to access video that does not use libwiisprite (say an emulator) then how do we make sure the path is clear, so to speak? |
− |
| |
− | ===Status===
| |
− | *I've written some form of all the functions for the button class and am trying to test them now, but I'm having no luck getting the Draw() function to get anything on the screen. The demo includes a pointer using the Wiimote IR which draws, but the button does not, nor can I draw a TextField layer that I've used in other demos. I could use some help understanding what's going on in the Draw() and _Draw() functions, since I just copied them from libwiisprite's Sprite class.
| |
− | *Still can't get anything to draw. I've tried cutting the draw function down to just what's in libwiisprite but I still can't get it going. I got some text to display (by scrapping the demo in the source zip above and chopping up one of those other demos) but haven't found a good way to get debug information out.
| |
− | *Considering going back and just having the button class wrap around a pair or so of sprites, since I really can't figure out how to get Draw() working, even when I've reduced it to basically all that's in the Sprite class anyway.
| |
− | *Went back and started rebuilding the button class, saving the image stuff for last. I got to Draw(), copied EXACTLY what's in wsp::Sprite with all the necessary variables, and it goes from drawing to not drawing. I'll need to get a better idea of how it works. Talking to chaosteil is probably in order. [[User:Thav|Thav]] 01:52, 7 August 2008 (CEST)
| |
| | | |
| ==Class Member Function Outline== | | ==Class Member Function Outline== |